当前位置: 首页>>代码示例>>C#>>正文


C# XmlBContext.recoverableFail方法代码示例

本文整理汇总了C#中XmlBooster.XmlBContext.recoverableFail方法的典型用法代码示例。如果您正苦于以下问题:C# XmlBContext.recoverableFail方法的具体用法?C# XmlBContext.recoverableFail怎么用?C# XmlBContext.recoverableFail使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XmlBooster.XmlBContext的用法示例。


在下文中一共展示了XmlBContext.recoverableFail方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: lAcceptEnum_ST_LEVEL

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public static ST_LEVEL lAcceptEnum_ST_LEVEL(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       ST_LEVEL res = ST_LEVEL.defaultST_LEVEL;
     switch (ctxt.current()) {
     case 'N':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('A')){
     res = ST_LEVEL.StLevel_NA;
     } else {
     ctxt.moveBack(1);
     res = ST_LEVEL.StLevel_NA;
     } // If
     break;
     } // Case
     case 'L':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'N':
     {
     ctxt.advance();
     ctxt.accept2('T','C');
     res = ST_LEVEL.StLevel_LNTC;
     break;
     } // Case
     case '3':
     {
     ctxt.advance();
     res = ST_LEVEL.StLevel_L3;
     break;
     } // Case
     case '2':
     {
     ctxt.advance();
     res = ST_LEVEL.StLevel_L2;
     break;
     } // Case
     case '1':
     {
     ctxt.advance();
     res = ST_LEVEL.StLevel_L1;
     break;
     } // Case
     case '0':
     {
     ctxt.advance();
     res = ST_LEVEL.StLevel_L0;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2414)");
     break;
     } // Switch
     break;
     } // Case
     default:
     res = ST_LEVEL.StLevel_NA;
     break;
     } // Switch
     return res;
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:69,代码来源:DataDictionary.Generated.cs

示例2: lAcceptEnum_ST_MODE

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public static ST_MODE lAcceptEnum_ST_MODE(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       ST_MODE res = ST_MODE.defaultST_MODE;
     switch (ctxt.current()) {
     case 'U':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('N')){
     res = ST_MODE.Mode_UN;
     } else {
     ctxt.moveBack(1);
     res = ST_MODE.Mode_NA;
     } // If
     break;
     } // Case
     case 'T':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('R')){
     res = ST_MODE.Mode_TR;
     } else {
     ctxt.moveBack(1);
     res = ST_MODE.Mode_NA;
     } // If
     break;
     } // Case
     case 'S':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'R':
     {
     ctxt.advance();
     res = ST_MODE.Mode_SR;
     break;
     } // Case
     case 'N':
     {
     ctxt.advance();
     res = ST_MODE.Mode_SN;
     break;
     } // Case
     case 'L':
     {
     ctxt.advance();
     res = ST_MODE.Mode_SL;
     break;
     } // Case
     case 'H':
     {
     ctxt.advance();
     res = ST_MODE.Mode_SH;
     break;
     } // Case
     case 'F':
     {
     ctxt.advance();
     res = ST_MODE.Mode_SF;
     break;
     } // Case
     case 'B':
     {
     ctxt.advance();
     res = ST_MODE.Mode_SB;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2424)");
     break;
     } // Switch
     break;
     } // Case
     case 'R':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('E')){
     res = ST_MODE.Mode_RE;
     } else {
     ctxt.moveBack(1);
     res = ST_MODE.Mode_NA;
     } // If
     break;
     } // Case
     case 'P':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'T':
     {
     ctxt.advance();
     res = ST_MODE.Mode_PT;
     break;
     } // Case
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例3: lAcceptEnum_RulePriority

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public static RulePriority lAcceptEnum_RulePriority(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       RulePriority res = RulePriority.defaultRulePriority;
     switch (ctxt.current()) {
     case 'V':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("erification")){
     res = RulePriority.aVerification;
     } else {
     ctxt.moveBack(1);
     res = RulePriority.aProcessing;
     } // If
     break;
     } // Case
     case 'U':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("pdate")){
     switch (ctxt.current()) {
     case 'O':
     {
     ctxt.advance();
     ctxt.accept2('U','T');
     res = RulePriority.aUpdateOUT;
     break;
     } // Case
     case 'I':
     {
     ctxt.advance();
     ctxt.acceptString ("NTERNAL");
     res = RulePriority.aUpdateINTERNAL;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2443)");
     break;
     } // Switch
     } else {
     ctxt.moveBack(1);
     res = RulePriority.aProcessing;
     } // If
     break;
     } // Case
     case 'P':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("rocessing")){
     res = RulePriority.aProcessing;
     } else {
     ctxt.moveBack(1);
     res = RulePriority.aProcessing;
     } // If
     break;
     } // Case
     case 'C':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("leanUp")){
     res = RulePriority.aCleanUp;
     } else {
     ctxt.moveBack(1);
     res = RulePriority.aProcessing;
     } // If
     break;
     } // Case
     default:
     res = RulePriority.aProcessing;
     break;
     } // Switch
     return res;
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:79,代码来源:DataDictionary.Generated.cs

示例4: lAcceptEnum_SPEC_IMPLEMENTED_ENUM

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public static SPEC_IMPLEMENTED_ENUM lAcceptEnum_SPEC_IMPLEMENTED_ENUM(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       SPEC_IMPLEMENTED_ENUM res = SPEC_IMPLEMENTED_ENUM.defaultSPEC_IMPLEMENTED_ENUM;
     switch (ctxt.current()) {
     case 'N':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'o':
     {
     ctxt.advance();
     ctxt.acceptString ("tImplementable");
     res = SPEC_IMPLEMENTED_ENUM.Impl_NotImplementable;
     break;
     } // Case
     case 'e':
     {
     ctxt.advance();
     ctxt.acceptString ("wRevisionAvailable");
     res = SPEC_IMPLEMENTED_ENUM.Impl_NewRevisionAvailable;
     break;
     } // Case
     case 'A':
     {
     ctxt.advance();
     res = SPEC_IMPLEMENTED_ENUM.Impl_NA;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2397)");
     break;
     } // Switch
     break;
     } // Case
     case 'I':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("mplemented")){
     res = SPEC_IMPLEMENTED_ENUM.Impl_Implemented;
     } else {
     ctxt.moveBack(1);
     res = SPEC_IMPLEMENTED_ENUM.Impl_NA;
     } // If
     break;
     } // Case
     default:
     res = SPEC_IMPLEMENTED_ENUM.Impl_NA;
     break;
     } // Switch
     return res;
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:58,代码来源:DataDictionary.Generated.cs

示例5: lAcceptEnum_DBMessageType

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public static DBMessageType lAcceptEnum_DBMessageType(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       DBMessageType res = DBMessageType.defaultDBMessageType;
     switch (ctxt.current()) {
     case 'E':
     {
     ctxt.advance();
     if (ctxt.lookAhead3('U','R','O')){
     switch (ctxt.current()) {
     case 'R':
     {
     ctxt.advance();
     ctxt.acceptString ("ADIO");
     res = DBMessageType.aEURORADIO;
     break;
     } // Case
     case 'L':
     {
     ctxt.advance();
     ctxt.accept3('O','O','P');
     res = DBMessageType.aEUROLOOP;
     break;
     } // Case
     case 'B':
     {
     ctxt.advance();
     ctxt.acceptString ("ALISE");
     res = DBMessageType.aEUROBALISE;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2452)");
     break;
     } // Switch
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     default:
     res = 0;
     break;
     } // Switch
     return res;
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:53,代码来源:DataDictionary.Generated.cs

示例6: lAcceptEnum_resolution_formula_Value

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public static resolution_formula_Value lAcceptEnum_resolution_formula_Value(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       resolution_formula_Value res = resolution_formula_Value.defaultresolution_formula_Value;
     switch (ctxt.current()) {
     case 'i':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ntegers")){
     res = resolution_formula_Value.aintegers;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'N':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("umber")){
     switch (ctxt.current()) {
     case 's':
     {
     ctxt.advance();
     res = resolution_formula_Value.aNumbers;
     break;
     } // Case
     default:
     res = resolution_formula_Value.aNumber;
     break;
     } // Switch
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'B':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('i')){
     switch (ctxt.current()) {
     case 't':
     {
     ctxt.advance();
     ctxt.accept3('s','e','t');
     res = resolution_formula_Value.aBitset;
     break;
     } // Case
     case 'n':
     {
     ctxt.advance();
     ctxt.acceptString ("ary Coded Decimal");
     res = resolution_formula_Value.aBinary_Coded_Decimal;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2297)");
     break;
     } // Switch
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case '5':
     {
     ctxt.advance();
     res = resolution_formula_Value.aC_5;
     break;
     } // Case
     case '1':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case '0':
     {
     ctxt.advance();
     res = resolution_formula_Value.a10;
     break;
     } // Case
     default:
     res = resolution_formula_Value.aC_1;
     break;
     } // Switch
     break;
     } // Case
     case '0':
     {
     ctxt.advance();
     if (ctxt.lookAhead2('.','0')){
     switch (ctxt.current()) {
     case '5':
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例7: lAcceptEnum_Message_media

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public static Message_media lAcceptEnum_Message_media(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       Message_media res = Message_media.defaultMessage_media;
     switch (ctxt.current()) {
     case 'R':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'I':
     {
     ctxt.advance();
     ctxt.accept('U');
     res = Message_media.aRIU;
     break;
     } // Case
     case 'B':
     {
     ctxt.advance();
     ctxt.accept('C');
     switch (ctxt.current()) {
     case ',':
     {
     ctxt.advance();
     if (ctxt.lookAheadString(" RIU")){
     res = Message_media.aRBC_RIU;
     } else {
     ctxt.moveBack(1);
     res = Message_media.aRBC;
     } // If
     break;
     } // Case
     default:
     res = Message_media.aRBC;
     break;
     } // Switch
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2232)");
     break;
     } // Switch
     break;
     } // Case
     case 'L':
     {
     ctxt.advance();
     if (ctxt.lookAhead3('o','o','p')){
     res = Message_media.aLoop;
     } else {
     ctxt.moveBack(1);
     res = Message_media.aAny_;
     } // If
     break;
     } // Case
     case 'B':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("alise")){
     switch (ctxt.current()) {
     case ',':
     {
     ctxt.advance();
     if (ctxt.lookAhead1(' ')){
     switch (ctxt.current()) {
     case 'l':
     {
     ctxt.advance();
     ctxt.acceptString ("oop, RIU");
     res = Message_media.aBalise_loop_RIU;
     break;
     } // Case
     case 'R':
     {
     ctxt.advance();
     ctxt.accept2('B','C');
     switch (ctxt.current()) {
     case ',':
     {
     ctxt.advance();
     if (ctxt.lookAheadString(" RIU")){
     res = Message_media.aBalise_RBC_RIU;
     } else {
     ctxt.moveBack(1);
     res = Message_media.aBalise_RBC;
     } // If
     break;
     } // Case
     default:
     res = Message_media.aBalise_RBC;
     break;
     } // Switch
     break;
     } // Case
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例8: lAcceptPcData

        /// <summary>Utility function which parse a PCDATA component 
        /// from a context. It takes the entities defined in the
        /// in the configuration into account.</summary>
        /// <param name="ctxt">the context from which the data must be 
        ///        parsed</param>
        /// <param name="maxLen">the maximal number of characters that 
        ///        can be read.</param>
        /// <param name="closingCh">a character on which parsing must stop
        ///        in addition to the standard &lt; character.</param>
        /// <param name="wsMode">indicates PRESERVE (default), REPLACE or COLLAPSE.</param>
        public static string lAcceptPcData(XmlBContext ctxt, 
                                   int maxLen,
                                   char closingCh,
                                   int wsMode)
        {
            char ch;
            char lastch = '.';
            System.Text.StringBuilder buff;
             string  res;

              buff = new System.Text.StringBuilder();
              bool go_on = true;
              while (go_on)
            {
              go_on = false;
              while ((ctxt.current() != '<') && (ctxt.current() != closingCh)) // while 1
            {
            ch = ctxt.current();
            ctxt.advance();
            if (ch == '&'){
            ch = lAcceptPcDataChr(ctxt);
            } else {
            if (wsMode >= WS_REPLACE){
            if (ch == '\t' || ch == '\n' || ch == '\r'){
            ch = ' ';
            } // If
            if (wsMode == WS_COLLAPSE){
            if ((ch == ' ') && ((lastch == ' ') || (buff.Length == 0))){
            ch = (char)0;
            } else {
            lastch = ch;
            } // If
            } else {
            lastch = ch;
            } // If
            } // If
            } // If
            if (ch != '\0'){
            buff.Append (ch);
            } // If
            }
            // end while
            if (ctxt.current() == '<'){
            if (ctxt.lookAheadString("<![CDATA[")){
             string  cdata = ctxt.acceptUntil("]]>", true);
            buff.Append (cdata);
            go_on = true;
            } else {
            if (ctxt.lookAhead2('<','?')){
            ctxt.skipTill ('?');
            ctxt.accept2('?','>');
            go_on = true;
            } else {
            } // If
            } // If
            } // If
            }
            if (wsMode == WS_COLLAPSE && lastch == ' ' && buff. Length > 0){
            res = buff.ToString (0, buff.Length -1);
            } else {
            res = buff.ToString();
            } // If
            if ((maxLen > 0) && (res.Length > maxLen)){
            ctxt.recoverableFail ("Maximum length exceeded");
            } // If
            return res;
        }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:77,代码来源:DataDictionary.Generated.cs

示例9: lAcceptEnum_MessageDirectionEnumType

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public static MessageDirectionEnumType lAcceptEnum_MessageDirectionEnumType(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       MessageDirectionEnumType res = MessageDirectionEnumType.defaultMessageDirectionEnumType;
     switch (ctxt.current()) {
     case 'T':
     {
     ctxt.advance();
     if (ctxt.lookAhead2('r','a')){
     switch (ctxt.current()) {
     case 'i':
     {
     ctxt.advance();
     ctxt.acceptString ("nToTrack");
     res = MessageDirectionEnumType.aTrainToTrack;
     break;
     } // Case
     case 'c':
     {
     ctxt.advance();
     ctxt.acceptString ("kToTrain");
     res = MessageDirectionEnumType.aTrackToTrain;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2392)");
     break;
     } // Switch
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     default:
     res = 0;
     break;
     } // Switch
     return res;
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:46,代码来源:DataDictionary.Generated.cs

示例10: lAcceptEnum_MessageEnumType

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public static MessageEnumType lAcceptEnum_MessageEnumType(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       MessageEnumType res = MessageEnumType.defaultMessageEnumType;
     switch (ctxt.current()) {
     case 'V':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("alidatedTrainData")){
     res = MessageEnumType.aValidatedTrainData;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'U':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("nconditionalEmergencyStop")){
     res = MessageEnumType.aUnconditionalEmergencyStop;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'T':
     {
     ctxt.advance();
     if (ctxt.lookAhead2('r','a')){
     switch (ctxt.current()) {
     case 'i':
     {
     ctxt.advance();
     ctxt.accept('n');
     switch (ctxt.current()) {
     case '_':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'T':
     {
     ctxt.advance();
     ctxt.acceptString ("erminationOfACommunicationSession");
     res = MessageEnumType.aTrain_TerminationOfACommunicationSession;
     break;
     } // Case
     case 'S':
     {
     ctxt.advance();
     ctxt.acceptString ("essionEstablished");
     res = MessageEnumType.aTrain_SessionEstablished;
     break;
     } // Case
     case 'N':
     {
     ctxt.advance();
     ctxt.acceptString ("oCompatibleVersionSupported");
     res = MessageEnumType.aTrain_NoCompatibleVersionSupported;
     break;
     } // Case
     case 'I':
     {
     ctxt.advance();
     ctxt.acceptString ("nitiationOfACommunicationSession");
     res = MessageEnumType.aTrain_InitiationOfACommunicationSession;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2321)");
     break;
     } // Switch
     break;
     } // Case
     case 'R':
     {
     ctxt.advance();
     ctxt.acceptString ("ejected");
     res = MessageEnumType.aTrainRejected;
     break;
     } // Case
     case 'P':
     {
     ctxt.advance();
     ctxt.acceptString ("ositionReport");
     res = MessageEnumType.aTrainPositionReport;
     break;
     } // Case
     case 'A':
     {
     ctxt.advance();
     ctxt.acceptString ("ccepted");
     res = MessageEnumType.aTrainAccepted;
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例11: accept

 public static IXmlBBase accept(XmlBContext ctxt)
 {
     IXmlBBase res = null;
     ctxt.skipWhiteSpace();
     switch (ctxt.current()) {
     case '<':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'V':
     {
     ctxt.advance();
     ctxt.acceptString ("ariable");
       res =  lAccept_Variable(ctxt, "</Variable>");
     break;
     } // Case
     case 'T':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'r':
     {
     ctxt.advance();
     ctxt.acceptString ("anslation");
     switch (ctxt.current()) {
     case 'D':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ictionary")){
       res =  lAccept_TranslationDictionary(ctxt, "</TranslationDictionary>");
     } else {
       res =  lAccept_Translation(ctxt, "</Translation>");
     } // If
     break;
     } // Case
     default:
       res =  lAccept_Translation(ctxt, "</Translation>");
     break;
     } // Switch
     break;
     } // Case
     case 'e':
     {
     ctxt.advance();
     ctxt.acceptString ("stCase");
       res =  lAccept_TestCase(ctxt, "</TestCase>");
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2672)");
     break;
     } // Switch
     break;
     } // Case
     case 'S':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'u':
     {
     ctxt.advance();
     ctxt.accept2('b','S');
     switch (ctxt.current()) {
     case 't':
     {
     ctxt.advance();
     ctxt.accept2('e','p');
       res =  lAccept_SubStep(ctxt, "</SubStep>");
     break;
     } // Case
     case 'e':
     {
     ctxt.advance();
     ctxt.acceptString ("quence");
       res =  lAccept_SubSequence(ctxt, "</SubSequence>");
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2677)");
     break;
     } // Switch
     break;
     } // Case
     case 't':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'r':
     {
     ctxt.advance();
     ctxt.acceptString ("ucture");
     switch (ctxt.current()) {
     case 'R':
     {
     ctxt.advance();
     if (ctxt.lookAhead2('e','f')){
       res =  lAccept_StructureRef(ctxt, "</StructureRef>");
     } else {
       res =  lAccept_Structure(ctxt, "</Structure>");
     } // If
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例12: lAcceptEnum_meaning_type

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public static meaning_type lAcceptEnum_meaning_type(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       meaning_type res = meaning_type.defaultmeaning_type;
     switch (ctxt.current()) {
     case 'u':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("nknown")){
     res = meaning_type.aunknown;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'i':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('n')){
     switch (ctxt.current()) {
     case 'v':
     {
     ctxt.advance();
     ctxt.acceptString ("alid");
     res = meaning_type.ainvalid;
     break;
     } // Case
     case 'f':
     {
     ctxt.advance();
     ctxt.acceptString ("inite");
     res = meaning_type.ainfinite;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2259)");
     break;
     } // Switch
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'e':
     {
     ctxt.advance();
     if (ctxt.lookAhead3('n','u','m')){
     res = meaning_type.aenum;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     default:
     res = 0;
     break;
     } // Switch
     return res;
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:68,代码来源:DataDictionary.Generated.cs

示例13: lAcceptEnum_maximum_Value

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public static maximum_Value lAcceptEnum_maximum_Value(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       maximum_Value res = maximum_Value.defaultmaximum_Value;
     switch (ctxt.current()) {
     case 'E':
     {
     ctxt.advance();
     res = maximum_Value.aE;
     break;
     } // Case
     case '7':
     {
     ctxt.advance();
     res = maximum_Value.aC_7;
     break;
     } // Case
     case '2':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('5')){
     switch (ctxt.current()) {
     case '5':
     {
     ctxt.advance();
     res = maximum_Value.a255;
     break;
     } // Case
     case '4':
     {
     ctxt.advance();
     res = maximum_Value.a254;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2266)");
     break;
     } // Switch
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case '1':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case '5':
     {
     ctxt.advance();
     res = maximum_Value.a15;
     break;
     } // Case
     case '2':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case '7':
     {
     ctxt.advance();
     res = maximum_Value.a127;
     break;
     } // Case
     case '6':
     {
     ctxt.advance();
     res = maximum_Value.a126;
     break;
     } // Case
     case '5':
     {
     ctxt.advance();
     res = maximum_Value.a125;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2273)");
     break;
     } // Switch
     break;
     } // Case
     case '1':
     {
     ctxt.advance();
     res = maximum_Value.a11;
     break;
     } // Case
     case '0':
     {
     ctxt.advance();
     ctxt.accept2('2','2');
     res = maximum_Value.a1022;
     break;
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例14: lAcceptEnum_TypeSpec_ertms_type

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public static TypeSpec_ertms_type lAcceptEnum_TypeSpec_ertms_type(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       TypeSpec_ertms_type res = TypeSpec_ertms_type.defaultTypeSpec_ertms_type;
     switch (ctxt.current()) {
     case 't':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'i':
     {
     ctxt.advance();
     ctxt.acceptString ("me-or-date");
     res = TypeSpec_ertms_type.atime_or_date;
     break;
     } // Case
     case 'e':
     {
     ctxt.advance();
     ctxt.accept2('x','t');
     res = TypeSpec_ertms_type.atext;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2246)");
     break;
     } // Switch
     break;
     } // Case
     case 's':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("peed")){
     res = TypeSpec_ertms_type.aspeed;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'q':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ualifier")){
     res = TypeSpec_ertms_type.aqualifier;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'm':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("iscellaneous")){
     res = TypeSpec_ertms_type.amiscellaneous;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'l':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ength")){
     res = TypeSpec_ertms_type.alength;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'i':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("dentity-number")){
     res = TypeSpec_ertms_type.aidentity_number;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
     } // Case
     case 'g':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("radient")){
     res = TypeSpec_ertms_type.agradient;
     } else {
     ctxt.moveBack(1);
     res = 0;
     } // If
     break;
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例15: lAcceptEnum_Paragraph_type

 /// <remarks>This method is used by XMLBooster-generated code
 /// internally. Please refrain from using it, as it
 /// might produce unexpected results, and might change
 /// or even disappear in the future.</remarks>
 public static Paragraph_type lAcceptEnum_Paragraph_type(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       Paragraph_type res = Paragraph_type.defaultParagraph_type;
     switch (ctxt.current()) {
     case 'T':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'I':
     {
     ctxt.advance();
     ctxt.accept3('T','L','E');
     res = Paragraph_type.aTITLE;
     break;
     } // Case
     case 'A':
     {
     ctxt.advance();
     ctxt.acceptString ("BLE_HEADER");
     res = Paragraph_type.aTABLE_HEADER;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2215)");
     break;
     } // Switch
     break;
     } // Case
     case 'R':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("EQUIREMENT")){
     res = Paragraph_type.aREQUIREMENT;
     } else {
     ctxt.moveBack(1);
     res = Paragraph_type.aREQUIREMENT;
     } // If
     break;
     } // Case
     case 'P':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ROBLEM")){
     res = Paragraph_type.aPROBLEM;
     } else {
     ctxt.moveBack(1);
     res = Paragraph_type.aREQUIREMENT;
     } // If
     break;
     } // Case
     case 'N':
     {
     ctxt.advance();
     if (ctxt.lookAhead3('O','T','E')){
     res = Paragraph_type.aNOTE;
     } else {
     ctxt.moveBack(1);
     res = Paragraph_type.aREQUIREMENT;
     } // If
     break;
     } // Case
     case 'D':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('E')){
     switch (ctxt.current()) {
     case 'L':
     {
     ctxt.advance();
     ctxt.acceptString ("ETED");
     res = Paragraph_type.aDELETED;
     break;
     } // Case
     case 'F':
     {
     ctxt.advance();
     ctxt.acceptString ("INITION");
     res = Paragraph_type.aDEFINITION;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2222)");
     break;
     } // Switch
     } else {
     ctxt.moveBack(1);
     res = Paragraph_type.aREQUIREMENT;
     } // If
     break;
     } // Case
     default:
     res = Paragraph_type.aREQUIREMENT;
     break;
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs


注:本文中的XmlBooster.XmlBContext.recoverableFail方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。