Пример #1
0
        //────────────────────────────────────────

        /// <summary>
        ///
        /// </summary>
        private void ToConfigStack(Log_TextIndented txt)
        {
            txt.Increment();


            txt.Append("・");
            txt.Append(this.GetType().Name);
            txt.Append("クラス");
            txt.Newline();

            if (null != this.parent_Usercontrol)
            {
                txt.Append("コントロールのfcName=[");
                txt.Append(this.parent_Usercontrol.ControlCommon.Expression_Name_Control);
                txt.Append("]");
            }
            else
            {
                txt.Append("(ソース不明)");
            }



            txt.Decrement();
        }
Пример #2
0
        //────────────────────────────────────────
        #endregion



        #region アクション
        //────────────────────────────────────────

        private void ToDescription(Log_TextIndented txt)
        {
            txt.Increment();


            txt.AppendI(0, "<");
            txt.Append(this.GetType().Name);
            txt.Append("クラス>");
            txt.Newline();

            //
            txt.AppendI(0, "<data>(データソース)のExplainは省略。");//コールスタックがオーバーフローするので。
            txt.Newline();

            //
            txt.AppendI(0, "<data>(データターゲット)のExplainは省略。");//コールスタックがオーバーフローするので。
            txt.Newline();

            txt.AppendI(0, "</");
            txt.Append(this.GetType().Name);
            txt.Append("クラス>");
            txt.Newline();


            txt.Decrement();
        }
Пример #3
0
        //────────────────────────────────────────
        #endregion



        #region アクション
        //────────────────────────────────────────

        /// <summary>
        ///
        /// </summary>
        public void ToText_Snapshot(Log_TextIndented s)
        {
            Log_Method  log_Method = new Log_MethodImpl(0);
            Log_Reports log_Reports_ForSnapshot = new Log_ReportsImpl(log_Method);

            log_Method.BeginMethod(Info_Syntax.Name_Library, this, "ToText_Snapshot", log_Reports_ForSnapshot);

            log_Reports_ForSnapshot.BeginCreateReport(EnumReport.Dammy);
            s.Increment();

            s.AppendI(0, "L01(葉):" + "「E■[");
            s.Append(this.Conf.Name);
            s.Append("] ");
            s.Append(this.Lv4Execute_OnImplement(EnumHitcount.Unconstraint, log_Reports_ForSnapshot));
            s.Append("」");
            s.Newline();


            goto gt_EndMethod;
            //
            //
gt_EndMethod:
            s.Decrement();
            log_Reports_ForSnapshot.EndCreateReport();
            log_Method.EndMethod(log_Reports_ForSnapshot);
        }
Пример #4
0
        //────────────────────────────────────────
        #endregion



        #region アクション
        //────────────────────────────────────────

        /// <summary>
        ///
        /// </summary>
        public void ToText_Snapshot(Log_TextIndented s)
        {
            Log_Method  log_Method = new Log_MethodImpl(0);
            Log_Reports log_Reports_ForSnapshot = new Log_ReportsImpl(log_Method);

            log_Method.BeginMethod(Info_Syntax.Name_Library, this, "ToText_Snapshot", log_Reports_ForSnapshot);

            log_Reports_ForSnapshot.BeginCreateReport(EnumReport.Dammy);
            s.Increment();


            // ノード名
            s.AppendI(0, "「E■[");
            s.Append(this.Cur_Configuration.Name);
            s.Append("] ");

            // クラス名
            s.Append("[");
            s.Append(this.GetType().Name);
            s.Append("]クラス ");

            s.Append("子値=[");
            s.Append(this.Execute4_OnExpressionString(EnumHitcount.Unconstraint, log_Reports_ForSnapshot));
            s.Append("]");

            s.Append("」");
            s.Newline();

            // 属性リスト
            this.Dictionary_Expression_Attribute.ToText_Snapshot(s);

            // 子リスト
            if (this.List_Expression_Child.Count < 1)
            {
                s.AppendI(0, "子無し");
                s.Newline();
            }
            else
            {
                s.AppendI(0, "┌────────┐子数=[");
                s.Append(this.List_Expression_Child.Count);
                s.Append("]");
                s.Newline();
                this.List_Expression_Child.ForEach(delegate(Expression_Node_String e_Child, ref bool bRemove, ref bool bBreak)
                {
                    e_Child.ToText_Snapshot(s);
                });
                s.AppendI(0, "└────────┘");
                s.Newline();
            }

            goto gt_EndMethod;
            //
            //
gt_EndMethod:
            s.Decrement();
            log_Reports_ForSnapshot.EndCreateReport();
            log_Method.EndMethod(log_Reports_ForSnapshot);
        }
Пример #5
0
        //────────────────────────────────────────

        /// <summary>
        /// デバッグするのに使う内容を取得します。
        /// </summary>
        /// <param name="s"></param>
        /// <param name="log_Reports"></param>
        public void ToText_Debug(Log_TextIndented s, Log_Reports log_Reports)
        {
            s.Append(this.GetType().Name + "#DebugWrite:項目数=[" + this.map.Count + "]");
            s.Newline();
            s.Append(this.GetType().Name + "#DebugWrite:──────────ここから");
            s.Newline();
            foreach (KeyValuePair <string, Expr_String> kvp in this.map)
            {
                s.Append("key=[" + kvp.Key + "] value=[" + kvp.Value.Lv4Execute_OnImplement(EnumHitcount.Unconstraint, log_Reports) + "]");
                s.Newline();
            }
            s.Append(this.GetType().Name + "#DebugWrite:──────────ここまで");
            s.Newline();
        }
Пример #6
0
        //────────────────────────────────────────

        /// <summary>
        /// デバッグするのに使う内容を取得します。
        /// </summary>
        /// <param name="s"></param>
        /// <param name="log_Reports"></param>
        public void ToText_Debug(Log_TextIndented s, Log_Reports log_Reports)
        {
            s.Append(this.GetType().Name + "#DebugWrite:項目数=[" + this.dicExpression_Item.Count + "]");
            s.Newline();
            s.Append(this.GetType().Name + "#DebugWrite:──────────ここから");
            s.Newline();
            foreach (KeyValuePair <string, Expression_Node_String> kvp in this.dicExpression_Item)
            {
                s.Append("key=[" + kvp.Key + "] value=[" + kvp.Value.Execute4_OnExpressionString(EnumHitcount.Unconstraint, log_Reports) + "]");
                s.Newline();
            }
            s.Append(this.GetType().Name + "#DebugWrite:──────────ここまで");
            s.Newline();
        }
Пример #7
0
        //────────────────────────────────────────

        /// <summary>
        /// デバッグするのに使う内容を取得します。
        /// </summary>
        /// <param name="s"></param>
        /// <param name="log_Reports"></param>
        public void ToText_Debug(Log_TextIndented s, Log_Reports log_Reports)
        {
            s.Append(this.GetType().Name + "#DebugWrite:E_String項目数=[" + this.items.Count + "]");
            s.Newline();
            s.Append(this.GetType().Name + "#DebugWrite:──────────ここから");
            s.Newline();
            foreach (Expr_String e_Str in this.items)
            {
                s.Append("E_String=[" + e_Str.Lv4Execute_OnImplement(EnumHitcount.Unconstraint, log_Reports) + "]");
                s.Newline();
            }
            s.Append(this.GetType().Name + "#DebugWrite:──────────ここまで");
            s.Newline();
        }
Пример #8
0
        //────────────────────────────────────────
        /// <summary>
        /// テーブル名を出したい。
        /// </summary>
        /// <param name="txt"></param>
        public void ToDescription(Log_TextIndented txt)
        {
            txt.Increment();

            txt.AppendI(0, "<OLcnf_ConfigImpl");

            txt.AppendI(1, "テーブル名=[");
            txt.Append(this.name_Table);
            txt.Append("]");

            txt.AppendI(0, ">");

            txt.Decrement();
        }
Пример #9
0
        //────────────────────────────────────────

        /// <summary>
        /// デバッグするのに使う内容を取得します。
        /// </summary>
        /// <param name="s"></param>
        /// <param name="log_Reports"></param>
        public void ToText_Debug(Log_TextIndented s, Log_Reports log_Reports)
        {
            s.Append(this.GetType().Name + "#DebugWrite:E_String項目数=[" + this.listExpression_Item.Count + "]");
            s.Newline();
            s.Append(this.GetType().Name + "#DebugWrite:──────────ここから");
            s.Newline();
            foreach (Expression_Node_String e_Str in this.listExpression_Item)
            {
                s.Append("E_String=[" + e_Str.Execute4_OnExpressionString(EnumHitcount.Unconstraint, log_Reports) + "]");
                s.Newline();
            }
            s.Append(this.GetType().Name + "#DebugWrite:──────────ここまで");
            s.Newline();
        }
Пример #10
0
        //────────────────────────────────────────
        #endregion



        #region アクション
        //────────────────────────────────────────

        /// <summary>
        /// テーブル名を出したい。
        /// </summary>
        /// <param name="txt"></param>
        public void ToDescription(Log_TextIndented txt)
        {
            txt.Increment();

            txt.AppendI(0, "<OLcnf_ConfigImpl");

            txt.AppendI(1, "テーブル名=[");
            txt.Append(this.name_Table);
            txt.Append("]");

            txt.AppendI(0, ">");

            txt.Decrement();
        }
Пример #11
0
        //────────────────────────────────────────
        #endregion



        #region アクション
        //────────────────────────────────────────

        public virtual void ToText_Content(Log_TextIndented s)
        {
            s.Increment();


            //
            // 子要素
            foreach (Conf_String cElm in this.items)
            {
                cElm.ToText_Content(s);
            }

            // 子要素しかありません。

            s.Decrement();
        }
Пример #12
0
        //────────────────────────────────────────
        #endregion



        #region アクション
        //────────────────────────────────────────

        public virtual void ToText_Content(Log_TextIndented s)
        {
            s.Increment();


            //
            // 子要素
            foreach (Configuration_Node cur_Conf in this.list_Configurationtree_Node)
            {
                cur_Conf.ToText_Content(s);
            }

            // 子要素しかありません。

            s.Decrement();
        }
Пример #13
0
        //────────────────────────────────────────
        #endregion



        #region アクション
        //────────────────────────────────────────

        public override void ToText_Content(Log_TextIndented txt)
        {
            txt.Increment();


            txt.AppendI(0, "<");
            txt.Append(this.GetType().Name);
            txt.Append("クラス");

            txt.AppendI(1, "humanInputString=[");
            txt.Append(this.Text);
            txt.Append("]");

            txt.AppendI(0, ">");
            txt.Newline();


            txt.Decrement();
        }
Пример #14
0
        //────────────────────────────────────────
        #endregion



        #region アクション
        //────────────────────────────────────────

        /// <summary>
        ///
        /// </summary>
        public void ToText_Snapshot(Log_TextIndented txt)
        {
            txt.Increment();


            txt.Append("<" + this.GetType().Name + "クラス>");
            txt.Newline();

            foreach (Expression_Node_String ec_Item in this.listExpression_Item)
            {
                ec_Item.Cur_Configuration.ToText_Content(txt);
            }

            txt.Append("</" + this.GetType().Name + "クラス>");
            txt.Newline();


            txt.Decrement();
        }
Пример #15
0
        //────────────────────────────────────────
        #endregion



        #region アクション
        //────────────────────────────────────────

        /// <summary>
        ///
        /// </summary>
        public void ToText_Snapshot(Log_TextIndented txt)
        {
            txt.Increment();


            txt.Append("<" + this.GetType().Name + "クラス>");
            txt.Newline();

            foreach (Expr_String eItem in this.items)
            {
                eItem.Conf.ToText_Content(txt);
            }

            txt.Append("</" + this.GetType().Name + "クラス>");
            txt.Newline();


            txt.Decrement();
        }
Пример #16
0
        //────────────────────────────────────────
        #endregion



        #region アクション
        //────────────────────────────────────────

        public override void ToText_Content(Log_TextIndented s)
        {
            s.Increment();

            // ノード名
            s.AppendI(0, "<");
            s.Append(this.Name);
            s.Append(" ");

            //
            // 属性
            //
            this.Dictionary_Attribute.ForEach(delegate(string sKey, string sValue, ref bool bBreak)
            {
                s.Append(sKey);
                s.Append("=[");
                s.Append(sValue);
                s.Append("] ");
            });


            if (0 < this.list_Child.Count)
            {
                s.Append(">");
                s.Newline();

                // 子要素
                this.list_Child.ToText_Content(s);

                s.AppendI(0, "</");
                s.Append(this.Name);
                s.Append(">");
                s.Newline();
            }
            else
            {
                s.Append("/>");
                s.Newline();
            }


            s.Decrement();
        }
Пример #17
0
        //────────────────────────────────────────
        #endregion



        #region アクション
        //────────────────────────────────────────

        public virtual void ToText_Content(Log_TextIndented s)
        {
            s.Increment();

            // ノード名
            s.AppendI(0, "<");
            s.Append(this.Name);
            s.Append(" ");

            //
            // 属性
            //
            this.Attributes.ForEach(delegate(string sKey, string sValue, ref bool bBreak)
            {
                s.Append(sKey);
                s.Append("=[");
                s.Append(sValue);
                s.Append("] ");
            });


            if (0 < this.childNodes.Count)
            {
                s.Append(">");
                s.Newline();

                // 子要素
                this.childNodes.ToText_Content(s);

                s.AppendI(0, "</");
                s.Append(this.Name);
                s.Append(">");
                s.Newline();
            }
            else
            {
                s.Append("/>");
                s.Newline();
            }


            s.Decrement();
        }
Пример #18
0
        //────────────────────────────────────────

        public override void ToText_Content(Log_TextIndented s)
        {
            s.Increment();

            int cur_IndexColumn = 0;

            foreach (object obj in this.DataRow.ItemArray)
            {
                Value_Humaninput valueH = (Value_Humaninput)obj;

                s.Append("[");
                s.Append(cur_IndexColumn);
                s.Append(":");
                s.Append(valueH.Text);
                s.Append("]");

                cur_IndexColumn++;
            }

            s.Decrement();
        }
Пример #19
0
        //────────────────────────────────────────

        /// <summary>
        /// 問題箇所ヒント。
        ///
        /// 問題が起こったときに、設定ファイル等の修正箇所を示す説明などに利用。
        /// </summary>
        public virtual void ToText_Locationbreadcrumbs(Log_TextIndented s)
        {
            s.Increment();

            // 親のノード名を追加。
            if (null != this.Parent)
            {
                this.Parent.ToText_Locationbreadcrumbs(s);
                s.Append("/");
            }
            else
            {
                // このクラスがトップ・ノードだった場合。
                s.Append("問題個所ヒント(トップノード):");
            }

            // 自分のノード名を追加。
            s.Append(this.Name);

            s.Decrement();
        }
Пример #20
0
        //────────────────────────────────────────
        #endregion



        #region アクション
        //────────────────────────────────────────

        /// <summary>
        ///
        /// </summary>
        public void ToText_Snapshot(Log_TextIndented s)
        {
            Log_Method  log_Method = new Log_MethodImpl(0);
            Log_Reports log_Reports_ForSnapshot = new Log_ReportsImpl(log_Method);

            log_Method.BeginMethod(Info_Syntax.Name_Library, this, "ToText_Snapshot", log_Reports_ForSnapshot);

            log_Reports_ForSnapshot.BeginCreateReport(EnumReport.Dammy);
            //


            if (this.dicExpression_Item.Count < 1)
            {
                s.AppendI(0, "属性なし");
                s.Newline();
            }
            else
            {
                s.AppendI(0, "┌────────┐属性数=[");
                s.Append(this.dicExpression_Item.Count);
                s.Append("]");
                s.Newline();


                foreach (Expression_Node_String ec_Item in this.dicExpression_Item.Values)
                {
                    ec_Item.ToText_Snapshot(s);
                }

                s.AppendI(0, "└────────┘");
                s.Newline();
            }

            goto gt_EndMethod;
            //
            //
gt_EndMethod:
            log_Reports_ForSnapshot.EndCreateReport();
            log_Method.EndMethod(log_Reports_ForSnapshot);
        }
Пример #21
0
        //────────────────────────────────────────
        /// <summary>
        /// 
        /// </summary>
        private void ToConfigStack(Log_TextIndented txt)
        {
            txt.Increment();

            txt.Append("・");
            txt.Append(this.GetType().Name);
            txt.Append("クラス");
            txt.Newline();

            if (null != this.parent_Usercontrol)
            {
                txt.Append("コントロールのfcName=[");
                txt.Append(this.parent_Usercontrol.ControlCommon.Expression_Name_Control);
                txt.Append("]");
            }
            else
            {
                txt.Append("(ソース不明)");
            }

            txt.Decrement();
        }
Пример #22
0
        //────────────────────────────────────────

        public override void ToText_Content(Log_TextIndented s)
        {
            s.Increment();

            int cur_IndexColumn = 0;

            foreach (object obj in this.DataRow.ItemArray)
            {
                Cell valueH = (Cell)obj;

                if ("" != valueH.Text)
                {
                    s.Append("[");
                    s.Append(cur_IndexColumn);
                    s.Append("]");
                    s.Append(valueH.Text);
                }

                cur_IndexColumn++;
            }

            s.Decrement();
        }
Пример #23
0
        //────────────────────────────────────────
        #endregion



        #region アクション
        //────────────────────────────────────────

        public override void ToText_Content(Log_TextIndented s)
        {
            s.Increment();


            s.AppendI(0, "<");
            s.Append(this.Name);
            s.Append(">");
            s.Newline();

            //
            // 子要素なし。
            //

            //
            // メンバ変数
            //

            s.Append("directory_Base=[");
            s.Append(this.directory_Base);
            s.Append("]");
            s.Newline();

            s.Append("humaninput=[");
            s.Append(this.humaninput);
            s.Append("]");
            s.Newline();


            s.AppendI(0, "</");
            s.Append(this.Name);
            s.Append(">");
            s.Newline();


            s.Decrement();
        }
Пример #24
0
        //────────────────────────────────────────
        /// <summary>
        /// 
        /// </summary>
        public void ToText_Snapshot(Log_TextIndented s)
        {
            Log_Method log_Method = new Log_MethodImpl(0);
            Log_Reports log_Reports_ForSnapshot = new Log_ReportsImpl(log_Method);
            log_Method.BeginMethod(Info_Syntax.Name_Library, this, "ToText_Snapshot",log_Reports_ForSnapshot);

            log_Reports_ForSnapshot.BeginCreateReport(EnumReport.Dammy);
            s.Increment();

            s.AppendI(0,"葉「E■[");
            s.Append(this.Cur_Configuration.Name);
            s.Append("] ");
            s.Append(this.Execute4_OnExpressionString(EnumHitcount.Unconstraint, log_Reports_ForSnapshot));
            s.Append("」");
            s.Newline();

            goto gt_EndMethod;
            //
            //
            gt_EndMethod:
            s.Decrement();
            log_Reports_ForSnapshot.EndCreateReport();
            log_Method.EndMethod(log_Reports_ForSnapshot);
        }
Пример #25
0
 //────────────────────────────────────────
 public abstract void ToText_Content(Log_TextIndented s);
Пример #26
0
        //────────────────────────────────────────
        public virtual void ToText_Content(Log_TextIndented s)
        {
            s.Increment();

            //
            // 子要素
            foreach (Configuration_Node cur_Conf in this.list_Configurationtree_Node)
            {
                cur_Conf.ToText_Content(s);
            }

            // 子要素しかありません。

            s.Decrement();
        }
Пример #27
0
        //────────────────────────────────────────

        /// <summary>
        /// 各属性を出したい。
        /// </summary>
        /// <param name="txt"></param>
        public void ToDescription(Log_TextIndented txt)
        {
            txt.Increment();


            txt.Append("<" + this.GetType().Name + "クラス");
            txt.Newline();

            txt.AppendI(1, "no=[");
            txt.Append(this.No);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "tree=[");
            txt.Append(this.tree);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "] type=[");
            txt.Append(this.name_Type);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "text=[");
            txt.Append(this.text);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "enabled=[");
            txt.Append(this.isEnabled);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "visible=[");
            txt.Append(this.isVisibled);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "readOnly=[");
            txt.Append(this.isReadonly);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "wordWrap=[");
            txt.Append(this.isWordwrapped);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "newLine=[");
            txt.Append(this.newline);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "scrollBars=[");
            txt.Append(this.scrollbars);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "fontSizePt=[");
            txt.Append(this.fontsizePt);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "itemHeightPx=[");
            txt.Append(this.itemheightPx);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "itemDisplayFormat=[");
            txt.Append(this.itemDisplayFormat);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "picZoom=[");
            txt.Append(this.piczoom);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "absXLt=[");
            txt.Append(this.left_Abstract);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "absYLt=[");
            txt.Append(this.top_Absolute);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "width=[");
            txt.Append(this.width);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "height=[");
            txt.Append(this.height);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "tabIndex=[");
            txt.Append(this.tabindex);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "backColor=[");
            txt.Append(this.backcolor);
            txt.Append("]");
            txt.Newline();

            txt.Append("/>");
            txt.Newline();


            txt.Decrement();
        }
        //────────────────────────────────────────
        public override void ToText_Content(Log_TextIndented s)
        {
            s.Increment();

            s.AppendI(0, "<");
            s.Append(this.Name);
            s.Append(">");
            s.Newline();

            //
            // 子要素なし。
            //

            //
            // メンバ変数
            //

            s.Append("directory_Base=[");
            s.Append(this.directory_Base);
            s.Append("]");
            s.Newline();

            s.Append("humaninput=[");
            s.Append(this.humaninput);
            s.Append("]");
            s.Newline();

            s.AppendI(0, "</");
            s.Append(this.Name);
            s.Append(">");
            s.Newline();

            s.Decrement();
        }
        //────────────────────────────────────────
        /// <summary>
        /// 
        /// </summary>
        public void ToText_Snapshot(Log_TextIndented s)
        {
            Log_Method log_Method = new Log_MethodImpl(0);
            Log_Reports log_Reports_ForSnapshot = new Log_ReportsImpl(log_Method);
            log_Method.BeginMethod(Info_Syntax.Name_Library, this, "ToText_Snapshot", log_Reports_ForSnapshot);

            log_Reports_ForSnapshot.BeginCreateReport(EnumReport.Dammy);
            //

            if (this.dicExpression_Item.Count < 1)
            {
                s.AppendI(0, "属性なし");
                s.Newline();
            }
            else
            {
                s.AppendI(0, "┌────────┐属性数=[");
                s.Append(this.dicExpression_Item.Count);
                s.Append("]");
                s.Newline();

                foreach (Expression_Node_String ec_Item in this.dicExpression_Item.Values)
                {
                    ec_Item.ToText_Snapshot(s);
                }

                s.AppendI(0, "└────────┘");
                s.Newline();
            }

            goto gt_EndMethod;
            //
            //
            gt_EndMethod:
            log_Reports_ForSnapshot.EndCreateReport();
            log_Method.EndMethod(log_Reports_ForSnapshot);
        }
Пример #30
0
        //────────────────────────────────────────
        /// <summary>
        /// 問題箇所ヒント。
        /// 
        /// 問題が起こったときに、設定ファイル等の修正箇所を示す説明などに利用。
        /// </summary>
        public virtual void ToText_Locationbreadcrumbs(Log_TextIndented s)
        {
            s.Increment();

            // 親のノード名を追加。
            if (null != this.Parent)
            {
                this.Parent.ToText_Locationbreadcrumbs(s);
                s.Append("/");
            }
            else
            {
                // このクラスがトップ・ノードだった場合。
                s.Append("問題個所ヒント(トップノード):");
            }

            // 自分のノード名を追加。
            s.Append(this.Name);

            s.Decrement();
        }
Пример #31
0
        //────────────────────────────────────────
        #endregion



        #region アクション
        //────────────────────────────────────────

        /// <summary>
        /// デバッグ用情報。
        /// </summary>
        abstract public override void ToText_Content(Log_TextIndented txt);
Пример #32
0
        //────────────────────────────────────────
        //
        //
        //
        public override void ToText_Content(Log_TextIndented s)
        {
            Log_Method log_Method = new Log_MethodImpl();
            Log_Reports log_Reports_ThisMethod = new Log_ReportsImpl(log_Method);
            log_Method.BeginMethod(Info_Table.Name_Library, this, "ToText_Content", log_Reports_ThisMethod);

            s.Increment();
            s.AppendI(0, "[table]");
            s.Append(Environment.NewLine);

            s.Increment();
            s.AppendI(0, "[プログラム]");
            s.Append(log_Method.Fullname);
            s.Append(Environment.NewLine);

            this.Expression_Filepath_ConfigStack.Cur_Configuration.ToText_Content(s);

            s.AppendI(0, "[/プログラム]");
            s.Append(log_Method.Fullname);
            s.Append(Environment.NewLine);
            s.Decrement();

            s.AppendI(0, "[/table]");
            s.Append(Environment.NewLine);
            s.Decrement();

            log_Method.EndMethod(log_Reports_ThisMethod);
        }
Пример #33
0
 //────────────────────────────────────────
 /// <summary>
 /// デバッグ用情報。
 /// </summary>
 public abstract override void ToText_Content(Log_TextIndented txt);
Пример #34
0
        //────────────────────────────────────────
        public override void ToText_Content(Log_TextIndented s)
        {
            s.Increment();

            // ノード名
            s.AppendI(0, "<");
            s.Append(this.Name);
            s.Append(" ");

            //
            // 属性
            //
            this.Dictionary_Attribute.ForEach(delegate(string sKey, string sValue, ref bool bBreak)
            {
                s.Append(sKey);
                s.Append("=[");
                s.Append(sValue);
                s.Append("] ");
            });

            if (0 < this.list_Child.Count)
            {
                s.Append(">");
                s.Newline();

                // 子要素
                this.list_Child.ToText_Content(s);

                s.AppendI(0, "</");
                s.Append(this.Name);
                s.Append(">");
                s.Newline();
            }
            else
            {
                s.Append("/>");
                s.Newline();
            }

            s.Decrement();
        }
Пример #35
0
        //────────────────────────────────────────
        public override void ToText_Content(Log_TextIndented txt)
        {
            txt.Increment();

            txt.AppendI(0, "<");
            txt.Append(this.GetType().Name);
            txt.Append("クラス");

            txt.AppendI(1, "humanInputString=[");
            txt.Append(this.Text);
            txt.Append("]");

            txt.AppendI(0, ">");
            txt.Newline();

            txt.Decrement();
        }
Пример #36
0
        //────────────────────────────────────────
        /// <summary>
        /// 
        /// </summary>
        public void ToText_Snapshot(Log_TextIndented txt)
        {
            txt.Increment();

            txt.Append("<" + this.GetType().Name + "クラス>");
            txt.Newline();

            foreach (Expression_Node_String ec_Item in this.listExpression_Item)
            {
                ec_Item.Cur_Configuration.ToText_Content(txt);
            }

            txt.Append("</" + this.GetType().Name + "クラス>");
            txt.Newline();

            txt.Decrement();
        }
Пример #37
0
        //────────────────────────────────────────
        /// <summary>
        /// 各属性を出したい。
        /// </summary>
        /// <param name="txt"></param>
        public void ToDescription(Log_TextIndented txt)
        {
            txt.Increment();

            txt.Append("<" + this.GetType().Name + "クラス");
            txt.Newline();

            txt.AppendI(1, "no=[");
            txt.Append(this.No);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "tree=[");
            txt.Append(this.tree);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "] type=[");
            txt.Append(this.name_Type);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "text=[");
            txt.Append(this.text);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "enabled=[");
            txt.Append(this.isEnabled);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "visible=[");
            txt.Append(this.isVisibled);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "readOnly=[");
            txt.Append(this.isReadonly);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "wordWrap=[");
            txt.Append(this.isWordwrapped);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "newLine=[");
            txt.Append(this.newline);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "scrollBars=[");
            txt.Append(this.scrollbars);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "fontSizePt=[");
            txt.Append(this.fontsizePt);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "itemHeightPx=[");
            txt.Append(this.itemheightPx);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "itemDisplayFormat=[");
            txt.Append(this.itemDisplayFormat);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "picZoom=[");
            txt.Append(this.piczoom);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "absXLt=[");
            txt.Append(this.left_Abstract);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "absYLt=[");
            txt.Append(this.top_Absolute);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "width=[");
            txt.Append(this.width);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "height=[");
            txt.Append(this.height);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "tabIndex=[");
            txt.Append(this.tabindex);
            txt.Append("]");
            txt.Newline();

            txt.AppendI(1, "backColor=[");
            txt.Append(this.backcolor);
            txt.Append("]");
            txt.Newline();

            txt.Append("/>");
            txt.Newline();

            txt.Decrement();
        }
 //────────────────────────────────────────
 /// <summary>
 /// デバッグするのに使う内容を取得します。
 /// </summary>
 /// <param name="s"></param>
 /// <param name="log_Reports"></param>
 public void ToText_Debug(Log_TextIndented s, Log_Reports log_Reports)
 {
     s.Append(this.GetType().Name + "#DebugWrite:項目数=[" + this.dicExpression_Item.Count + "]");
     s.Newline();
     s.Append(this.GetType().Name + "#DebugWrite:──────────ここから");
     s.Newline();
     foreach (KeyValuePair<string, Expression_Node_String> kvp in this.dicExpression_Item)
     {
         s.Append("key=[" + kvp.Key + "] value=[" + kvp.Value.Execute4_OnExpressionString(EnumHitcount.Unconstraint, log_Reports) + "]");
         s.Newline();
     }
     s.Append(this.GetType().Name + "#DebugWrite:──────────ここまで");
     s.Newline();
 }
Пример #39
0
        //────────────────────────────────────────
        #endregion



        #region アクション
        //────────────────────────────────────────

        abstract public void ToText_Content(Log_TextIndented s);
Пример #40
0
        //────────────────────────────────────────
        /// <summary>
        /// 
        /// </summary>
        public void ToText_Snapshot(Log_TextIndented s)
        {
            Log_Method log_Method = new Log_MethodImpl(0);
            Log_Reports log_Reports_ForSnapshot = new Log_ReportsImpl(log_Method);
            log_Method.BeginMethod(Info_Syntax.Name_Library, this, "ToText_Snapshot",log_Reports_ForSnapshot);

            log_Reports_ForSnapshot.BeginCreateReport(EnumReport.Dammy);
            s.Increment();

            // ノード名
            s.AppendI(0,"「E■[");
            s.Append(this.Cur_Configuration.Name);
            s.Append("] ");

            // クラス名
            s.Append("[");
            s.Append(this.GetType().Name);
            s.Append("]クラス ");

            s.Append("子値=[");
            s.Append(this.Execute4_OnExpressionString(EnumHitcount.Unconstraint, log_Reports_ForSnapshot));
            s.Append("]");

            s.Append("」");
            s.Newline();

            // 属性リスト
            this.Dictionary_Expression_Attribute.ToText_Snapshot(s);

            // 子リスト
            if (this.List_Expression_Child.Count < 1)
            {
                s.AppendI(0, "子無し");
                s.Newline();
            }
            else
            {
                s.AppendI(0, "┌────────┐子数=[");
                s.Append(this.List_Expression_Child.Count);
                s.Append("]");
                s.Newline();
                this.List_Expression_Child.ForEach(delegate(Expression_Node_String e_Child, ref bool bRemove, ref bool bBreak)
                {
                    e_Child.ToText_Snapshot(s);
                });
                s.AppendI(0, "└────────┘");
                s.Newline();
            }

            goto gt_EndMethod;
            //
            //
            gt_EndMethod:
            s.Decrement();
            log_Reports_ForSnapshot.EndCreateReport();
            log_Method.EndMethod(log_Reports_ForSnapshot);
        }
Пример #41
0
        //────────────────────────────────────────
        public override void ToText_Content(Log_TextIndented s)
        {
            s.Increment();

            int cur_IndexColumn = 0;
            foreach (object obj in this.DataRow.ItemArray)
            {
                Value_Humaninput valueH = (Value_Humaninput)obj;

                if ("" != valueH.Text)
                {
                    s.Append("[");
                    s.Append(cur_IndexColumn);
                    s.Append("]");
                    s.Append(valueH.Text);
                }

                cur_IndexColumn++;
            }

            s.Decrement();
        }
Пример #42
0
 //────────────────────────────────────────
 /// <summary>
 /// デバッグするのに使う内容を取得します。
 /// </summary>
 /// <param name="s"></param>
 /// <param name="log_Reports"></param>
 public void ToText_Debug(Log_TextIndented s, Log_Reports log_Reports)
 {
     s.Append(this.GetType().Name + "#DebugWrite:E_String項目数=[" + this.listExpression_Item.Count + "]");
     s.Newline();
     s.Append(this.GetType().Name + "#DebugWrite:──────────ここから");
     s.Newline();
     foreach (Expression_Node_String e_Str in this.listExpression_Item)
     {
         s.Append("E_String=[" + e_Str.Execute4_OnExpressionString(EnumHitcount.Unconstraint, log_Reports) + "]");
         s.Newline();
     }
     s.Append(this.GetType().Name + "#DebugWrite:──────────ここまで");
     s.Newline();
 }
Пример #43
0
        //────────────────────────────────────────
        private void ToDescription(Log_TextIndented txt)
        {
            txt.Increment();

            txt.AppendI(0, "<");
            txt.Append(this.GetType().Name);
            txt.Append("クラス>");
            txt.Newline();

            //
            txt.AppendI(0, "<data>(データソース)のExplainは省略。");//コールスタックがオーバーフローするので。
            txt.Newline();

            //
            txt.AppendI(0, "<data>(データターゲット)のExplainは省略。");//コールスタックがオーバーフローするので。
            txt.Newline();

            txt.AppendI(0, "</");
            txt.Append(this.GetType().Name);
            txt.Append("クラス>");
            txt.Newline();

            txt.Decrement();
        }