當前位置: 首頁>>代碼示例>>C#>>正文


C# XmlBContext.fetchInteger方法代碼示例

本文整理匯總了C#中XmlBooster.XmlBContext.fetchInteger方法的典型用法代碼示例。如果您正苦於以下問題:C# XmlBContext.fetchInteger方法的具體用法?C# XmlBContext.fetchInteger怎麽用?C# XmlBContext.fetchInteger使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在XmlBooster.XmlBContext的用法示例。


在下文中一共展示了XmlBContext.fetchInteger方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: parse


//.........這裏部分代碼省略.........
            // Handling attribute DefaultValue
            // Also handles alien attributes with prefix DefaultValue
            if (fl1087){
            ctxt.fail ("Duplicate attribute: DefaultValue");
            } // If
            fl1087 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setDefaultValue((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1088: {
            // Handling attribute VariableMode
            // Also handles alien attributes with prefix VariableMode
            if (fl1088){
            ctxt.fail ("Duplicate attribute: VariableMode");
            } // If
            fl1088 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setVariableMode(acceptor.lAcceptEnum_VariableModeEnumType(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1089: {
            // Handling attribute X
            // Also handles alien attributes with prefix X
            if (fl1089){
            ctxt.fail ("Duplicate attribute: X");
            } // If
            fl1089 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setX(ctxt.fetchInteger());
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1090: {
            // Handling attribute Y
            // Also handles alien attributes with prefix Y
            if (fl1090){
            ctxt.fail ("Duplicate attribute: Y");
            } // If
            fl1090 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setY(ctxt.fetchInteger());
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1091: {
            // Handling attribute Width
            // Also handles alien attributes with prefix Width
            if (fl1091){
            ctxt.fail ("Duplicate attribute: Width");
            } // If
            fl1091 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setWidth(ctxt.fetchInteger());
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1092: {
            // Handling attribute Height
開發者ID:GautierBerck,項目名稱:ERTMSFormalSpecs,代碼行數:67,代碼來源:DataDictionary.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

            // Indicator
            ctxt.skipWhiteSpace();
            // Parse PC data
            this.setValue(ctxt.fetchInteger());
            // Regexp
            ctxt.skipWhiteSpace();
        }
開發者ID:GautierBerck,項目名稱:ERTMSFormalSpecs,代碼行數:19,代碼來源:DataDictionary.Generated.cs

示例3: parse


//.........這裏部分代碼省略.........
            // Handling attribute SkipEngine
            // Also handles alien attributes with prefix SkipEngine
            if (fl1466){
            ctxt.fail ("Duplicate attribute: SkipEngine");
            } // If
            fl1466 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setSkipEngine(acceptor.lAcceptBoolean(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1467: {
            // Handling attribute TimeDelay
            // Also handles alien attributes with prefix TimeDelay
            if (fl1467){
            ctxt.fail ("Duplicate attribute: TimeDelay");
            } // If
            fl1467 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setTimeDelay(acceptor.lAcceptEnum_TimeDelay(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1468: {
            // Handling attribute Timer
            // Also handles alien attributes with prefix Timer
            if (fl1468){
            ctxt.fail ("Duplicate attribute: Timer");
            } // If
            fl1468 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setTimer(ctxt.fetchInteger());
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1469: {
            // Handling attribute Name
            // Also handles alien attributes with prefix Name
            if (fl1469){
            ctxt.fail ("Duplicate attribute: Name");
            } // If
            fl1469 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setName((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1470: {
            // Handling attribute Guid
            // Also handles alien attributes with prefix Guid
            if (fl1470){
            ctxt.fail ("Duplicate attribute: Guid");
            } // If
            fl1470 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setGuid((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1471: {
            // Handling attribute Updates
開發者ID:nikiforovandrey,項目名稱:ERTMSFormalSpecs,代碼行數:67,代碼來源:DataDictionary.Generated.cs

示例4: 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 fl1101;
            bool fl1102;
            bool fl1103;
            #pragma warning restore 0168, 0219

            ctxt.skipWhiteSpace();
            {
            // Accept Attributes
            fl1101 = false ;
            fl1102 = false ;
            fl1103 = true ;
            while (fl1103) { // BeginLoop
            switch (ctxt.current()) {
            case 'V':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("alue=")){
            indicator = 1101;
            } else {
            indicator = 1104;
            } // If
            break;
            } // Case
            case 'N':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("ame=")){
            indicator = 1102;
            } else {
            indicator = 1104;
            } // If
            break;
            } // Case
            default:
            indicator = 1104;
            break;
            } // Switch
            switch (indicator) {
            case 1101: {
            // Handling attribute Value
            // Also handles alien attributes with prefix Value
            if (fl1101){
            ctxt.fail ("Duplicate attribute: Value");
            } // If
            fl1101 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setValue(ctxt.fetchInteger());
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1102: {
            // Handling attribute Name
            // Also handles alien attributes with prefix Name
            if (fl1102){
            ctxt.fail ("Duplicate attribute: Name");
            } // If
            fl1102 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setName((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            // Final default label
            case 1104: {
            // Taking ignorable attributes into account
            if (ctxt.isAlNum()){
            ctxt.skipTill ('=');
            ctxt.advance();
            ctxt.skipWhiteSpace();
            quoteChar = ctxt.acceptQuote();
            ctxt.skipTill (quoteChar);
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            } else {
            if (!fl1101){
            this.setValue(0);
            } // If
            fl1103 = false ;
            } // If
            break;
            } // End of dispatch label
            } // Dispatch
            } // While
            }
            ctxt.skipWhiteSpace();
            if (ctxt.current() == '/'){
            ctxt.advance();
            ctxt.accept('>');
//.........這裏部分代碼省略.........
開發者ID:Assmann-Siemens,項目名稱:ERTMSFormalSpecs,代碼行數:101,代碼來源:DataDictionary.Generated.cs


注:本文中的XmlBooster.XmlBContext.fetchInteger方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。