Exemplo n.º 1
0
 public void PrintText()
 {
     if (LobbyText != null &&
         vidObj != null)
     {
         LobbyText.text = vidObj.ToString();
     }
     if (BrowserText != null &&
         vidObj != null)
     {
         BrowserText.text = vidObj.ToString();
     }
     if (QueryText != null &&
         vidObj != null)
     {
         QueryText.text = vidObj.ToString();
     }
     if (AnalyticText != null &&
         vidObj != null)
     {
         AnalyticText.text = vidObj.ToString();
     }
     if (panelText != null &&
         vidObj != null)
     {
         panelText.text = vidObj.ToString();
     }
 }
Exemplo n.º 2
0
    public override string ToString()
    {
        StringBuilder sb    = new StringBuilder();
        Vid_Object    table = inputs.getInput_atIndex(0);

        switch (colMode)
        {
        case ColState.NAME:
            if (asFlag)
            {
                if (table != null)
                {
                    return(table.ToString() + "." + colName + " As" + asName);
                }
                else
                {
                    return(colName + " As " + asName);
                }
            }
            else
            {
                if (table != null)
                {
                    return(table.ToString() + "." + colName);
                }
                else
                {
                    return(colName);
                }
            }
        }
        return("");
    }
Exemplo n.º 3
0
    /*Helper functions*/
    private string writeInputs()
    {
        StringBuilder sb = new StringBuilder();

        for (int i = 0; i < inputs.getSize(); i++)
        {
            Vid_Object obj = inputs.getInput_atIndex(i);
            if (obj != null)
            {
                if (i == 0)
                {
                    sb.Append(obj.ToString());
                    if (0 < inputs.getSize())
                    {
                        sb.AppendLine(",");
                    }
                }
                else
                {
                    sb.Append(TabTool.TabCount() + obj.ToString());
                    if (i < inputs.getSize() - 1)
                    {
                        sb.AppendLine(",");
                    }
                }
            }
        }
        return(sb.ToString());
    }
Exemplo n.º 4
0
 public void updateText(GameObject go)
 {
     vidObj = go.GetComponentInChildren <Vid_Object>();
     if (vidObj == null)
     {
         Debug.Log("this is a test");
     }
     else
     {
         terminalText.text = vidObj.ToString();
     }
 }
Exemplo n.º 5
0
    public override string ToString()
    {
        StringBuilder sb        = new StringBuilder();
        Vid_Object    condirion = inputs.getInput_atIndex(0);
        Vid_Object    statment  = inputs.getInput_atIndex(0);

        if (condirion != null &&
            statment != null)
        {
            sb.Append("if( " + condirion.ToString() + " { " + statment.ToString() + " }");
        }
        return(sb.ToString());
    }
Exemplo n.º 6
0
    public override string ToString()
    {
        StringBuilder sb       = new StringBuilder();
        Vid_Object    statment = inputs.getInput_atIndex(0);

        if (statment != null)
        {
            sb.Append(statment.ToString() + ";");
        }
        else
        {
            sb.Append("");
        }
        return(sb.ToString());
    }
Exemplo n.º 7
0
    public override string ToString()
    {
        Vid_Object index1 = inputs.getInput_atIndex(0);

        if (index1 != null)
        {
            if (isREGX)
            {
                return(index1.ToString() + " REGXP \'" + data + "\'");
            }
            else
            {
                if (isNOT)
                {
                    return(index1.ToString() + "NOT LIKE \'" + data + "\'");
                }
                else
                {
                    return(index1.ToString() + "LIKE \'" + data + "\'");
                }
            }
        }
        return("error");
    }
Exemplo n.º 8
0
    public override string ToString()
    {
        StringBuilder sb         = new StringBuilder();
        Vid_Object    ident      = inputs.getInput_atIndex(0);
        Vid_Object    expression = inputs.getInput_atIndex(1);

        if (ident != null &&
            expression != null)
        {
            sb.Append(ident.ToString() + "= " + expression.ToString());
        }
        else
        {
            sb.Append("");
        }
        return(sb.ToString());
    }
Exemplo n.º 9
0
    public override string ToString()
    {
        StringBuilder sb     = new StringBuilder();
        Vid_Object    ident  = inputs.getInput_atIndex(0);
        Vid_Object    number = inputs.getInput_atIndex(1);

        if (ident != null &&
            number != null)
        {
            sb.Append(ident.ToString() + "= " + number.ToString() + ";");
        }
        else
        {
            sb.Append("");
        }

        return(sb.ToString());
    }
Exemplo n.º 10
0
    /*Helper functions*/
    private string writeInputs()
    {
        StringBuilder sb = new StringBuilder("");

        for (int i = 0; i < inputs.getSize(); i++)
        {
            Vid_Object obj = inputs.getInput_atIndex(i);
            if (obj != null)
            {
                sb.Append(obj.ToString());
                if (i < inputs.getSize() - 1)
                {
                    sb.Append(", ");
                }
            }
        }
        return(sb.ToString());
    }
Exemplo n.º 11
0
    public override string ToString()
    {
        StringBuilder sb = new StringBuilder();
        Vid_Object    declarationConst = inputs.getInput_atIndex(0);
        Vid_Object    declarationVar   = inputs.getInput_atIndex(1);
        Vid_Object    statment         = inputs.getInput_atIndex(2);

        if (declarationConst != null)
        {
            sb.Append(declarationConst.ToString() + "\n");
        }
        if (inputs.getInput_atIndex(1) != null)
        {
            sb.Append(declarationVar.ToString() + "\n");
        }
        if (inputs.getInput_atIndex(2) != null)
        {
            sb.Append(statment.ToString() + "\n");
        }
        return(sb.ToString());
    }
Exemplo n.º 12
0
 public void updateText()
 {
     vidObj            = holding.GetComponentInChildren <Vid_Object>();
     terminalText.text = vidObj.ToString();
 }
Exemplo n.º 13
0
    public override string ToString()
    {
        StringBuilder sb  = new StringBuilder();
        Vid_Object    obj = inputs.getInput_atIndex(0);

        switch (colMode)
        {
        case ColState.NAME:
            if (asFlag)
            {
                if (obj != null)
                {
                    return(obj.ToString() + "." + colName + " As" + asName);
                }
                else
                {
                    return(colName + " As " + asName);
                }
            }
            else
            {
                if (obj != null)
                {
                    return(obj.ToString() + "." + colName);
                }
                else
                {
                    return(colName);
                }
            }

        case ColState.EXPRESSION:
            if (obj != null)
            {
                return(obj.ToString() + "." + colName + " = " + cellName);
            }
            else
            {
                return(colName + " = " + cellName);
            }

        case ColState.DATA:
            switch (type)
            {
            case MySql_colTypes.MYSQL_INT:
                sb.Append(colName + " int ");
                if (notNull)
                {
                    sb.Append("NOT NULL");
                }
                break;

            case MySql_colTypes.MYSQL_FLOAT:
                sb.Append(colName + " float ");
                if (notNull)
                {
                    sb.Append("NOT NULL");
                }
                break;

            case MySql_colTypes.MYSQL_DOUBLE:
                sb.Append(colName + " double ");
                if (notNull)
                {
                    sb.Append("NOT NULL");
                }
                break;

            case MySql_colTypes.MYSQL_TIMESTAMP:
                sb.Append(colName + " TIMESTAMP  ");
                if (notNull)
                {
                    sb.Append("NOT NULL");
                }
                break;

            case MySql_colTypes.MYSQL_CHAR:
                sb.Append(colName + " VARCHAR(" + charvar_Number + ")");
                if (notNull)
                {
                    sb.Append("NOT NULL");
                }
                break;

            case MySql_colTypes.MYSQL_BLOB:
                sb.Append(colName + " BLOB ");
                if (notNull)
                {
                    sb.Append("NOT NULL");
                }
                break;

            case MySql_colTypes.MYSQL_ENUM:
                break;
            }
            return(sb.ToString());
        }
        return("");
    }