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


C# XmlBContext.lookAheadOpeningTag方法代码示例

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


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

示例1: parseBody

        /// <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 parseBody(XmlBContext ctxt)
        {
            #pragma warning disable 0168, 0219
            int indicator=0;
            char quoteChar;
             string  tempStr;
            #pragma warning restore 0168, 0219
            bool fl114;
            Change fl116;

            ctxt.skipWhiteSpace();
            ctxt.skipWhiteSpace();
            // Optional Enclosed
            if (ctxt.lookAheadOpeningTag("<Message")){
            ctxt.skipWhiteSpace();
            fl114 = true ;
            while (fl114) { // BeginLoop
            ctxt.skipWhiteSpace();
            if (ctxt.isAlNum()){
            ctxt.skipTill ('=');
            ctxt.advance();
            ctxt.skipWhiteSpace();
            quoteChar = ctxt.acceptQuote();
            ctxt.skipTill (quoteChar);
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            } else {
            fl114 = false ;
            } // If
            } // While
            ctxt.accept('>');
            // Indicator
            // Parse PC data
            this.setMessage(acceptor.lAcceptPcData(ctxt, -1, '<',XmlBContext.WS_PRESERVE));
            // Regexp
            ctxt.skipWhiteSpace();
            ctxt.acceptString ("</Message>");
            } // If
            // End enclosed
            // Repeat
            ctxt.skipWhiteSpace();
            fl116 = null;
            while(ctxt.lookAheadOpeningTag ("<Change")) {
            fl116 = acceptor.lAccept_Change(ctxt, null);
            appendChanges(fl116);
            ctxt.skipWhiteSpace();
            } // -- monomorphic Loop
            // EndRepeat
            ctxt.skipWhiteSpace();
        }
开发者ID:nikiforovandrey,项目名称:ERTMSFormalSpecs,代码行数:54,代码来源:HistoricalData.Generated.cs

示例2: parseBody

        /// <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 parseBody(XmlBContext ctxt)
        {
            #pragma warning disable 0168, 0219
            int indicator=0;
            char quoteChar;
             string  tempStr;
            #pragma warning restore 0168, 0219
            int fl2150;

            ctxt.skipWhiteSpace();
            // Element Ref : resolution-formula
            ctxt.skipWhiteSpace();
            // If optional...
            if (ctxt.lookAheadOpeningTag("<resolution-formula")){
            // Parsing sub element
            this.setResolution_formula_1(acceptor.lAccept_resolution_formula(ctxt,null));
            setSon(this.getResolution_formula_1());
            // Endif optional...
            } // If
            ctxt.skipWhiteSpace();
            // Disjunct
            ctxt.skipWhiteSpace();
            // Nullable formula
            fl2150 = ctxt.getPtr();
            switch (ctxt.current()) {
            case '<':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("special-or-reserved-value")){
            switch (ctxt.current()) {
            case 's':
            {
            ctxt.advance();
            indicator = 2148;
            break;
            } // Case
            default:
            indicator = 2149;
            break;
            } // Switch
            } else {
            ctxt.moveBack(1);
            indicator = 2151;
            } // If
            break;
            } // Case
            default:
            indicator = 2151;
            break;
            } // Switch
            switch (indicator) {
            // Dispatch Lablel
            case 2148: {
            ctxt.moveBack(27);
            // Element Ref : special-or-reserved-values
            ctxt.skipWhiteSpace();
            // If optional...
            if (ctxt.lookAheadOpeningTag("<special-or-reserved-values")){
            // Parsing sub element
            this.setSpecial_or_reserved_values(acceptor.lAccept_special_or_reserved_values(ctxt,null));
            setSon(this.getSpecial_or_reserved_values());
            // Endif optional...
            } // If
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            // Dispatch Lablel
            case 2149: {
            ctxt.moveBack(26);
            // Element Ref : special-or-reserved-value
            ctxt.skipWhiteSpace();
            // If optional...
            if (ctxt.lookAheadOpeningTag("<special-or-reserved-value")){
            // Parsing sub element
            this.setSpecial_or_reserved_value(acceptor.lAccept_special_or_reserved_value(ctxt,null));
            setSon(this.getSpecial_or_reserved_value());
            // Endif optional...
            } // If
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            // Optional of PCdata
            case 2151: {
            ctxt.setPtr(fl2150);
            // Doing nothing, optional disj
            break;
            } // End of dispatch label
            } // Dispatch
            // End Disjunct
            ctxt.skipWhiteSpace();
        }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:95,代码来源:DataDictionary.Generated.cs

示例3: parseBody

        /// <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 parseBody(XmlBContext ctxt)
        {
            #pragma warning disable 0168, 0219
            int indicator=0;
            char quoteChar;
             string  tempStr;
            #pragma warning restore 0168, 0219
            bool fl1767;
            ShortcutFolder fl1769;
            bool fl1780;
            Shortcut fl1782;

            ctxt.skipWhiteSpace();
            base.parseBody(ctxt);
            ctxt.skipWhiteSpace();
            // Optional Enclosed
            if (ctxt.lookAheadOpeningTag("<Folders")){
            ctxt.skipWhiteSpace();
            fl1767 = true ;
            while (fl1767) { // BeginLoop
            ctxt.skipWhiteSpace();
            if (ctxt.isAlNum()){
            ctxt.skipTill ('=');
            ctxt.advance();
            ctxt.skipWhiteSpace();
            quoteChar = ctxt.acceptQuote();
            ctxt.skipTill (quoteChar);
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            } else {
            fl1767 = false ;
            } // If
            } // While
            if (ctxt.current() == '/'){
            ctxt.advance();
            ctxt.accept('>');
            } else {
            ctxt.accept('>');
            // Repeat
            ctxt.skipWhiteSpace();
            fl1769 = null;
            while(ctxt.lookAheadOpeningTag ("<ShortcutFolder")) {
            fl1769 = acceptor.lAccept_ShortcutFolder(ctxt, "</ShortcutFolder>");
            appendFolders(fl1769);
            ctxt.skipWhiteSpace();
            } // -- monomorphic Loop
            // EndRepeat
            ctxt.skipWhiteSpace();
            ctxt.acceptString ("</Folders>");
            } // If
            } // If
            // End enclosed
            ctxt.skipWhiteSpace();
            // Optional Enclosed
            if (ctxt.lookAheadOpeningTag("<Shortcuts")){
            ctxt.skipWhiteSpace();
            fl1780 = true ;
            while (fl1780) { // BeginLoop
            ctxt.skipWhiteSpace();
            if (ctxt.isAlNum()){
            ctxt.skipTill ('=');
            ctxt.advance();
            ctxt.skipWhiteSpace();
            quoteChar = ctxt.acceptQuote();
            ctxt.skipTill (quoteChar);
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            } else {
            fl1780 = false ;
            } // If
            } // While
            if (ctxt.current() == '/'){
            ctxt.advance();
            ctxt.accept('>');
            } else {
            ctxt.accept('>');
            // Repeat
            ctxt.skipWhiteSpace();
            fl1782 = null;
            while(ctxt.lookAheadOpeningTag ("<Shortcut")) {
            fl1782 = acceptor.lAccept_Shortcut(ctxt, "</Shortcut>");
            appendShortcuts(fl1782);
            ctxt.skipWhiteSpace();
            } // -- monomorphic Loop
            // EndRepeat
            ctxt.skipWhiteSpace();
            ctxt.acceptString ("</Shortcuts>");
            } // If
            } // If
            // End enclosed
            ctxt.skipWhiteSpace();
        }
开发者ID:JamesOakey,项目名称:ERTMSFormalSpecs,代码行数:96,代码来源:DataDictionary.Generated.cs

示例4: parseBody

        /// <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 parseBody(XmlBContext ctxt)
        {
            #pragma warning disable 0168, 0219
            int indicator=0;
            char quoteChar;
             string  tempStr;
            #pragma warning restore 0168, 0219
            bool fl1002;
            Action fl1004;
            bool fl1015;
            Expectation fl1017;

            ctxt.skipWhiteSpace();
            base.parseBody(ctxt);
            ctxt.skipWhiteSpace();
            // Optional Enclosed
            if (ctxt.lookAheadOpeningTag("<Actions")){
            ctxt.skipWhiteSpace();
            fl1002 = true ;
            while (fl1002) { // BeginLoop
            ctxt.skipWhiteSpace();
            if (ctxt.isAlNum()){
            ctxt.skipTill ('=');
            ctxt.advance();
            ctxt.skipWhiteSpace();
            quoteChar = ctxt.acceptQuote();
            ctxt.skipTill (quoteChar);
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            } else {
            fl1002 = false ;
            } // If
            } // While
            if (ctxt.current() == '/'){
            ctxt.advance();
            ctxt.accept('>');
            } else {
            ctxt.accept('>');
            // Repeat
            ctxt.skipWhiteSpace();
            fl1004 = null;
            while(ctxt.lookAheadOpeningTag ("<Action")) {
            fl1004 = acceptor.lAccept_Action(ctxt, null);
            appendActions(fl1004);
            ctxt.skipWhiteSpace();
            } // -- monomorphic Loop
            // EndRepeat
            ctxt.skipWhiteSpace();
            ctxt.acceptString ("</Actions>");
            } // If
            } // If
            // End enclosed
            ctxt.skipWhiteSpace();
            // Optional Enclosed
            if (ctxt.lookAheadOpeningTag("<Expectations")){
            ctxt.skipWhiteSpace();
            fl1015 = true ;
            while (fl1015) { // BeginLoop
            ctxt.skipWhiteSpace();
            if (ctxt.isAlNum()){
            ctxt.skipTill ('=');
            ctxt.advance();
            ctxt.skipWhiteSpace();
            quoteChar = ctxt.acceptQuote();
            ctxt.skipTill (quoteChar);
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            } else {
            fl1015 = false ;
            } // If
            } // While
            if (ctxt.current() == '/'){
            ctxt.advance();
            ctxt.accept('>');
            } else {
            ctxt.accept('>');
            // Repeat
            ctxt.skipWhiteSpace();
            fl1017 = null;
            while(ctxt.lookAheadOpeningTag ("<Expectation")) {
            fl1017 = acceptor.lAccept_Expectation(ctxt, "</Expectation>");
            appendExpectations(fl1017);
            ctxt.skipWhiteSpace();
            } // -- monomorphic Loop
            // EndRepeat
            ctxt.skipWhiteSpace();
            ctxt.acceptString ("</Expectations>");
            } // If
            } // If
            // End enclosed
            ctxt.skipWhiteSpace();
        }
开发者ID:Assmann-Siemens,项目名称:ERTMSFormalSpecs,代码行数:96,代码来源:DataDictionary.Generated.cs


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