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


C# XmlBContext.lookAhead1方法代码示例

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


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

示例1: parse

        /// <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 override void parse(XmlBContext ctxt,  string  endingTag)
        {
            #pragma warning disable 0168, 0219
            int indicator = 0;
            char quoteChar;
             string  tempStr = null;
            bool fl720;
            bool fl721;
            bool fl722;
            bool fl723;
            bool fl724;
            bool fl725;
            bool fl726;
            bool fl727;
            bool fl728;
            #pragma warning restore 0168, 0219

            ctxt.skipWhiteSpace();
            {
            // Accept Attributes
            fl720 = false ;
            fl721 = false ;
            fl722 = false ;
            fl723 = false ;
            fl724 = false ;
            fl725 = false ;
            fl726 = false ;
            fl727 = false ;
            fl728 = true ;
            while (fl728) { // BeginLoop
            switch (ctxt.current()) {
            case 'Y':
            {
            ctxt.advance();
            if (ctxt.lookAhead1('=')){
            indicator = 721;
            } else {
            indicator = 729;
            } // If
            break;
            } // Case
            case 'X':
            {
            ctxt.advance();
            if (ctxt.lookAhead1('=')){
            indicator = 720;
            } else {
            indicator = 729;
            } // If
            break;
            } // Case
            case 'W':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("idth=")){
            indicator = 722;
            } else {
            indicator = 729;
            } // If
            break;
            } // Case
            case 'V':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("erified=")){
            indicator = 725;
            } else {
            indicator = 729;
            } // If
            break;
            } // Case
            case 'N':
            {
            ctxt.advance();
            switch (ctxt.current()) {
            case 'e':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("edsRequirement=")){
            indicator = 726;
            } else {
            indicator = 729;
            } // If
            break;
            } // Case
            case 'a':
            {
            ctxt.advance();
            if (ctxt.lookAhead3('m','e','=')){
            indicator = 727;
            } else {
            indicator = 729;
            } // If
            break;
            } // Case
            default:
//.........这里部分代码省略.........
开发者ID:Assmann-Siemens,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例2: lAcceptEnum_ST_INTERFACE

 /// <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_INTERFACE lAcceptEnum_ST_INTERFACE(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       ST_INTERFACE res = ST_INTERFACE.defaultST_INTERFACE;
     switch (ctxt.current()) {
     case 'T':
     {
     ctxt.advance();
     if (ctxt.lookAhead2('I','U')){
     res = ST_INTERFACE.StInterface_TIU;
     } else {
     ctxt.moveBack(1);
     res = ST_INTERFACE.StInterface_NA;
     } // If
     break;
     } // Case
     case 'R':
     {
     ctxt.advance();
     if (ctxt.lookAhead2('T','M')){
     res = ST_INTERFACE.StInterface_RTM;
     } else {
     ctxt.moveBack(1);
     res = ST_INTERFACE.StInterface_NA;
     } // If
     break;
     } // Case
     case 'N':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('A')){
     res = ST_INTERFACE.StInterface_NA;
     } else {
     ctxt.moveBack(1);
     res = ST_INTERFACE.StInterface_NA;
     } // If
     break;
     } // Case
     case 'J':
     {
     ctxt.advance();
     if (ctxt.lookAhead2('R','U')){
     res = ST_INTERFACE.StInterface_JRU;
     } else {
     ctxt.moveBack(1);
     res = ST_INTERFACE.StInterface_NA;
     } // If
     break;
     } // Case
     case 'D':
     {
     ctxt.advance();
     if (ctxt.lookAhead2('M','I')){
     res = ST_INTERFACE.StInterface_DMI;
     } else {
     ctxt.moveBack(1);
     res = ST_INTERFACE.StInterface_NA;
     } // If
     break;
     } // Case
     default:
     res = ST_INTERFACE.StInterface_NA;
     break;
     } // Switch
     return res;
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:72,代码来源:DataDictionary.Generated.cs

示例3: parse

        /// <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 override void parse(XmlBContext ctxt,  string  endingTag)
        {
            #pragma warning disable 0168, 0219
            int indicator = 0;
            char quoteChar;
             string  tempStr = null;
            bool fl1086;
            bool fl1087;
            bool fl1088;
            bool fl1089;
            bool fl1090;
            bool fl1091;
            bool fl1092;
            bool fl1093;
            bool fl1094;
            bool fl1095;
            bool fl1096;
            bool fl1097;
            bool fl1098;
            bool fl1099;
            bool fl1100;
            bool fl1101;
            bool fl1102;
            #pragma warning restore 0168, 0219

            ctxt.skipWhiteSpace();
            {
            // Accept Attributes
            fl1086 = false ;
            fl1087 = false ;
            fl1088 = false ;
            fl1089 = false ;
            fl1090 = false ;
            fl1091 = false ;
            fl1092 = false ;
            fl1093 = false ;
            fl1094 = false ;
            fl1095 = false ;
            fl1096 = false ;
            fl1097 = false ;
            fl1098 = false ;
            fl1099 = false ;
            fl1100 = false ;
            fl1101 = false ;
            fl1102 = true ;
            while (fl1102) { // BeginLoop
            switch (ctxt.current()) {
            case 'Y':
            {
            ctxt.advance();
            if (ctxt.lookAhead1('=')){
            indicator = 1090;
            } else {
            indicator = 1103;
            } // If
            break;
            } // Case
            case 'X':
            {
            ctxt.advance();
            if (ctxt.lookAhead1('=')){
            indicator = 1089;
            } else {
            indicator = 1103;
            } // If
            break;
            } // Case
            case 'W':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("idth=")){
            indicator = 1091;
            } else {
            indicator = 1103;
            } // If
            break;
            } // Case
            case 'V':
            {
            ctxt.advance();
            switch (ctxt.current()) {
            case 'e':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("rified=")){
            indicator = 1096;
            } else {
            indicator = 1103;
            } // If
            break;
            } // Case
            case 'a':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("riableMode=")){
            indicator = 1088;
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例4: lAccept_Poly_ReqRelated

 /// <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 ReqRelated lAccept_Poly_ReqRelated(XmlBContext ctxt, 
                   string  endingTag)
 {
     char quoteChar;
     ReqRelated res = null;
     ctxt.skipWhiteSpace();
     ctxt.acceptString ("xsi:type=");
     quoteChar = ctxt.acceptQuote();
     switch (ctxt.current()) {
     case 'V':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ariable")){
     ctxt.accept(quoteChar);
     res = lAccept_Variable(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'T':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("estCase")){
     ctxt.accept(quoteChar);
     res = lAccept_TestCase(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'S':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('t')){
     switch (ctxt.current()) {
     case 'r':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ucture")){
     switch (ctxt.current()) {
     case 'E':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("lement")){
     ctxt.accept(quoteChar);
     res = lAccept_StructureElement(ctxt, endingTag);
     } else {
     ctxt.accept(quoteChar);
     res = lAccept_Structure(ctxt, endingTag);
     } // If
     break;
     } // Case
     default:
     ctxt.accept(quoteChar);
     res = lAccept_Structure(ctxt, endingTag);
     break;
     } // Switch
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'a':
     {
     ctxt.advance();
     if (ctxt.lookAhead2('t','e')){
     switch (ctxt.current()) {
     case 'M':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("achine")){
     ctxt.accept(quoteChar);
     res = lAccept_StateMachine(ctxt, endingTag);
     } else {
     ctxt.accept(quoteChar);
     res = lAccept_State(ctxt, endingTag);
     } // If
     break;
     } // Case
     default:
     ctxt.accept(quoteChar);
     res = lAccept_State(ctxt, endingTag);
     break;
     } // Switch
     } else {
     res = null;
     } // If
     break;
     } // Case
     default:
     res = null;
     break;
     } // Switch
     } else {
     res = null;
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例5: lAcceptEnum_VariableModeEnumType

 /// <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 VariableModeEnumType lAcceptEnum_VariableModeEnumType(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       VariableModeEnumType res = VariableModeEnumType.defaultVariableModeEnumType;
     switch (ctxt.current()) {
     case 'O':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("utgoing")){
     res = VariableModeEnumType.aOutgoing;
     } else {
     ctxt.moveBack(1);
     res = VariableModeEnumType.aInternal;
     } // If
     break;
     } // Case
     case 'I':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('n')){
     switch (ctxt.current()) {
     case 't':
     {
     ctxt.advance();
     ctxt.acceptString ("ernal");
     res = VariableModeEnumType.aInternal;
     break;
     } // Case
     case 'c':
     {
     ctxt.advance();
     ctxt.acceptString ("oming");
     res = VariableModeEnumType.aIncoming;
     break;
     } // Case
     case 'O':
     {
     ctxt.advance();
     ctxt.accept2('u','t');
     res = VariableModeEnumType.aInOut;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2310)");
     break;
     } // Switch
     } else {
     ctxt.moveBack(1);
     res = VariableModeEnumType.aInternal;
     } // If
     break;
     } // Case
     case 'C':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("onstant")){
     res = VariableModeEnumType.aConstant;
     } else {
     ctxt.moveBack(1);
     res = VariableModeEnumType.aInternal;
     } // If
     break;
     } // Case
     default:
     res = VariableModeEnumType.aInternal;
     break;
     } // Switch
     return res;
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:75,代码来源:DataDictionary.Generated.cs

示例6: lAcceptEnum_MessageEnumType


//.........这里部分代码省略.........
     ctxt.recoverableFail ("Other character expected (2344)");
     break;
     } // Switch
     break;
     } // Case
     case 'R':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'e':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'v':
     {
     ctxt.advance();
     ctxt.acceptString ("ocationOfEmergencyStop");
     res = MessageEnumType.aRevocationOfEmergencyStop;
     break;
     } // Case
     case 'q':
     {
     ctxt.advance();
     ctxt.acceptString ("uest");
     switch (ctxt.current()) {
     case 'T':
     {
     ctxt.advance();
     ctxt.acceptString ("oShortenMA");
     switch (ctxt.current()) {
     case 'I':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('s')){
     switch (ctxt.current()) {
     case 'R':
     {
     ctxt.advance();
     ctxt.acceptString ("ejected");
     res = MessageEnumType.aRequestToShortenMAIsRejected;
     break;
     } // Case
     case 'G':
     {
     ctxt.advance();
     ctxt.acceptString ("ranted");
     res = MessageEnumType.aRequestToShortenMAIsGranted;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2353)");
     break;
     } // Switch
     } else {
     ctxt.moveBack(1);
     res = MessageEnumType.aRequestToShortenMA;
     } // If
     break;
     } // Case
     default:
     res = MessageEnumType.aRequestToShortenMA;
     break;
     } // Switch
     break;
     } // Case
     case 'F':
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:67,代码来源:DataDictionary.Generated.cs

示例7: 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

示例8: 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

示例9: 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

示例10: lAcceptBoolean

 /// <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 bool lAcceptBoolean(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator = 0;
     #pragma warning restore 0168, 0219
       bool res = false;
     switch (ctxt.current()) {
     case 'y':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'e':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('s')){
     res = true;
     } else {
     res = true;
     } // If
     break;
     } // Case
     default:
     res = true;
     break;
     } // Switch
     break;
     } // Case
     case 't':
     {
     ctxt.advance();
     ctxt.accept3('r','u','e');
     res = true;
     break;
     } // Case
     case 'o':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'n':
     {
     ctxt.advance();
     res = true;
     break;
     } // Case
     case 'f':
     {
     ctxt.advance();
     ctxt.accept('f');
     res = false;
     break;
     } // Case
     default:
     ctxt.recoverableFail ("Other character expected (2463)");
     break;
     } // Switch
     break;
     } // Case
     case 'n':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'o':
     {
     ctxt.advance();
     res = false;
     break;
     } // Case
     default:
     res = false;
     break;
     } // Switch
     break;
     } // Case
     case 'f':
     {
     ctxt.advance();
     ctxt.acceptString ("alse");
     res = false;
     break;
     } // Case
     case 'Y':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'E':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('S')){
     res = true;
     } else {
     res = true;
     } // If
     break;
     } // Case
     default:
     res = true;
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例11: lAcceptEnum_ST_IO

 /// <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_IO lAcceptEnum_ST_IO(XmlBContext ctxt)
 {
     #pragma warning disable 0168, 0219
       int indicator=0;
     #pragma warning restore 0168, 0219
       ST_IO res = ST_IO.defaultST_IO;
     switch (ctxt.current()) {
     case 'O':
     {
     ctxt.advance();
     if (ctxt.lookAhead2('u','t')){
     res = ST_IO.StIO_Out;
     } else {
     ctxt.moveBack(1);
     res = ST_IO.StIO_NA;
     } // If
     break;
     } // Case
     case 'N':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('A')){
     res = ST_IO.StIO_NA;
     } else {
     ctxt.moveBack(1);
     res = ST_IO.StIO_NA;
     } // If
     break;
     } // Case
     case 'I':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('n')){
     res = ST_IO.StIO_In;
     } else {
     ctxt.moveBack(1);
     res = ST_IO.StIO_NA;
     } // If
     break;
     } // Case
     default:
     res = ST_IO.StIO_NA;
     break;
     } // Switch
     return res;
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:50,代码来源:DataDictionary.Generated.cs

示例12: 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

示例13: 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

示例14: 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

示例15: 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


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