当前位置: 首页>>代码示例>>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;未经允许,请勿转载。