Ejemplo n.º 1
0
        //────────────────────────────────────────

        /// <summary>
        /// このデータは、ファイルパス型だ、と想定して、ファイルパスを取得します。
        /// </summary>
        /// <returns></returns>
        public static Expression_Node_Filepath Execute4_OnExpressionString_AsFilepath_Impl(
            Expression_Node_String ec_Caller,
            EnumHitcount request,
            Log_Reports log_Reports
            )
        {
            Log_Method log_Method = new Log_MethodImpl();

            log_Method.BeginMethod(Info_Syntax.Name_Library, ec_Caller, "Execute4_OnExpressionString_AsFilepath_Impl", log_Reports);
            //
            //
            //
            //

            Expression_Node_Filepath ec_Fpath_result;

            //
            // ファイルパス。
            string sFpath = ec_Caller.Execute5_Main(log_Reports);

            {
                Configurationtree_NodeFilepath cf_Fpath = new Configurationtree_NodeFilepathImpl("ファイルパス出典未指定L01_1", ec_Caller.Cur_Configuration);
                cf_Fpath.InitPath(sFpath, log_Reports);
                if (!log_Reports.Successful)
                {
                    // 既エラー。
                    ec_Fpath_result = null;
                    goto gt_EndMethod;
                }

                ec_Fpath_result = new Expression_Node_FilepathImpl(cf_Fpath);
            }

            goto gt_EndMethod;
            //
            //
gt_EndMethod:
            log_Method.EndMethod(log_Reports);
            return(ec_Fpath_result);
        }
Ejemplo n.º 2
0
        //────────────────────────────────────────
        /// <summary>
        /// このデータは、ファイルパス型だ、と想定して、ファイルパスを取得します。
        /// </summary>
        /// <returns></returns>
        public static Expression_Node_Filepath Execute4_OnExpressionString_AsFilepath_Impl(
            Expression_Node_String ec_Caller,
            EnumHitcount request,
            Log_Reports log_Reports
            )
        {
            Log_Method log_Method = new Log_MethodImpl();
            log_Method.BeginMethod(Info_Syntax.Name_Library, ec_Caller, "Execute4_OnExpressionString_AsFilepath_Impl", log_Reports);
            //
            //
            //
            //

            Expression_Node_Filepath ec_Fpath_result;

            //
            // ファイルパス。
            string sFpath = ec_Caller.Execute5_Main(log_Reports);
            {
                Configurationtree_NodeFilepath cf_Fpath = new Configurationtree_NodeFilepathImpl("ファイルパス出典未指定L01_1", ec_Caller.Cur_Configuration);
                cf_Fpath.InitPath(sFpath, log_Reports);
                if (!log_Reports.Successful)
                {
                    // 既エラー。
                    ec_Fpath_result = null;
                    goto gt_EndMethod;
                }

                ec_Fpath_result = new Expression_Node_FilepathImpl(cf_Fpath);
            }

            goto gt_EndMethod;
            //
            //
            gt_EndMethod:
            log_Method.EndMethod(log_Reports);
            return ec_Fpath_result;
        }