Esempio n. 1
0
    //
    public void Print(ViTupleInterface tuple)
    {
        if (_type < ViDebuger.LogLevel)
        {
            return;
        }
        StringBuilder logStr = new StringBuilder(1024, 1024);
        UInt32        idx    = 0;

        for (; idx < (UInt32)Description.Length; ++idx)
        {
            logStr.Append(Description[idx]);
            Object value = tuple.Value(idx);
            if (value != null)
            {
                logStr.Append("(");
                logStr.Append(tuple.Value(idx));
                logStr.Append(")");
            }
            else
            {
                //Console.Write("(参数不足)");
            }
        }
        for (; idx < tuple.Size; ++idx)
        {
            Object value = tuple.Value(idx);
            ViDebuger.AssertError(value);
            logStr.Append("(");
            logStr.Append(tuple.Value(idx));
            logStr.Append(")");
        }
        logStr.AppendLine();
        Print(logStr.ToString(), tuple);
    }