示例#1
0
        //---------------------------------------------------------------------------
        // Execute

        public override void execute(CmdLineCmd aCmd)
        {
            // Read Members
            if (aCmd.isCmd("WriteFilePathCSMessage"))
            {
                mInputData.mWriteFilePathCSMessage = aCmd.argString(1);
            }
            if (aCmd.isCmd("WriteFilePathCSBody"))
            {
                mInputData.mWriteFilePathCSBody = aCmd.argString(1);
            }
            if (aCmd.isCmd("WriteFilePathCH"))
            {
                mInputData.mWriteFilePathCH = aCmd.argString(1);
            }
            if (aCmd.isCmd("WriteFilePathCP"))
            {
                mInputData.mWriteFilePathCP = aCmd.argString(1);
            }

            if (aCmd.isCmd("Using"))
            {
                processUsing(aCmd);
            }
            if (aCmd.isCmd("Define_CH"))
            {
                processDefineCH(aCmd);
            }
            if (aCmd.isCmd("Include_CH"))
            {
                processIncludeCH(aCmd);
            }
            if (aCmd.isCmd("Include_CP"))
            {
                processIncludeCP(aCmd);
            }
            if (aCmd.isCmd("NameSpace"))
            {
                processNameSpace(aCmd);
            }

            if (aCmd.isCmd("Message"))
            {
                processBlock(Defs.cBlockT_Message, aCmd);
            }
            if (aCmd.isCmd("Record"))
            {
                processBlock(Defs.cBlockT_Record, aCmd);
            }
            if (aCmd.isCmd("{"))
            {
                processBegin(aCmd);
            }
            if (aCmd.isCmd("}"))
            {
                processEnd(aCmd);
            }

            if (aCmd.isCmd("const"))
            {
                processConst(aCmd);
            }

            if (aCmd.isCmd("uchar"))
            {
                processMember(Defs.cMemberT_UChar, aCmd);
            }
            if (aCmd.isCmd("ushort"))
            {
                processMember(Defs.cMemberT_UInt16, aCmd);
            }
            if (aCmd.isCmd("uint"))
            {
                processMember(Defs.cMemberT_UInt32, aCmd);
            }
            if (aCmd.isCmd("uint64"))
            {
                processMember(Defs.cMemberT_UInt64, aCmd);
            }
            if (aCmd.isCmd("char"))
            {
                processMember(Defs.cMemberT_Char, aCmd);
            }
            if (aCmd.isCmd("short"))
            {
                processMember(Defs.cMemberT_Int16, aCmd);
            }
            if (aCmd.isCmd("int"))
            {
                processMember(Defs.cMemberT_Int32, aCmd);
            }
            if (aCmd.isCmd("int64"))
            {
                processMember(Defs.cMemberT_Int64, aCmd);
            }
            if (aCmd.isCmd("bool"))
            {
                processMember(Defs.cMemberT_Bool, aCmd);
            }
            if (aCmd.isCmd("float"))
            {
                processMember(Defs.cMemberT_Float, aCmd);
            }
            if (aCmd.isCmd("double"))
            {
                processMember(Defs.cMemberT_Double, aCmd);
            }
            if (aCmd.isCmd("string"))
            {
                processString(aCmd);
            }

            if (aCmd.isComment())
            {
                processPreComment(aCmd);
            }

            if (aCmd.isBadCmd() && mBlockValid)
            {
                processRecord(aCmd);
            }
        }