當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。