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


C# XmlBContext.fetchDouble方法代码示例

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


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

示例1: parse


//.........这里部分代码省略.........
            // Handling attribute Kind
            // Also handles alien attributes with prefix Kind
            if (fl1486){
            ctxt.fail ("Duplicate attribute: Kind");
            } // If
            fl1486 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setKind(acceptor.lAcceptEnum_ExpectationKind(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1487: {
            // Handling attribute Blocking
            // Also handles alien attributes with prefix Blocking
            if (fl1487){
            ctxt.fail ("Duplicate attribute: Blocking");
            } // If
            fl1487 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setBlocking(acceptor.lAcceptBoolean(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1488: {
            // Handling attribute DeadLine
            // Also handles alien attributes with prefix DeadLine
            if (fl1488){
            ctxt.fail ("Duplicate attribute: DeadLine");
            } // If
            fl1488 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setDeadLine(ctxt.fetchDouble());
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1489: {
            // Handling attribute CyclePhase
            // Also handles alien attributes with prefix CyclePhase
            if (fl1489){
            ctxt.fail ("Duplicate attribute: CyclePhase");
            } // If
            fl1489 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setCyclePhase(acceptor.lAcceptEnum_RulePriority(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1490: {
            // Handling attribute Name
            // Also handles alien attributes with prefix Name
            if (fl1490){
            ctxt.fail ("Duplicate attribute: Name");
            } // If
            fl1490 = 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 1491: {
            // Handling attribute Guid
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:67,代码来源:DataDictionary.Generated.cs

示例2: parse


//.........这里部分代码省略.........
            case 'B':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("locking=")){
            indicator = 1037;
            } else {
            indicator = 1041;
            } // If
            break;
            } // Case
            default:
            indicator = 1041;
            break;
            } // Switch
            switch (indicator) {
            case 1036: {
            // Handling attribute Kind
            // Also handles alien attributes with prefix Kind
            if (fl1036){
            ctxt.fail ("Duplicate attribute: Kind");
            } // If
            fl1036 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setKind(acceptor.lAcceptEnum_ExpectationKind(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1037: {
            // Handling attribute Blocking
            // Also handles alien attributes with prefix Blocking
            if (fl1037){
            ctxt.fail ("Duplicate attribute: Blocking");
            } // If
            fl1037 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setBlocking(acceptor.lAcceptBoolean(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1038: {
            // Handling attribute DeadLine
            // Also handles alien attributes with prefix DeadLine
            if (fl1038){
            ctxt.fail ("Duplicate attribute: DeadLine");
            } // If
            fl1038 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setDeadLine(ctxt.fetchDouble());
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1039: {
            // Handling attribute Name
            // Also handles alien attributes with prefix Name
            if (fl1039){
            ctxt.fail ("Duplicate attribute: Name");
            } // If
            fl1039 = 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 1041: {
            // 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 (!fl1036){
            this.setKind(acceptor.ExpectationKind.aInstantaneous);
            } // If
            if (!fl1037){
            this.setBlocking( true);
            } // If
            if (!fl1038){
            this.setDeadLine(0.0);
            } // If
            fl1040 = false ;
            } // If
            break;
            } // End of dispatch label
            } // Dispatch
            } // While
            }
            ctxt.skipWhiteSpace();
            ctxt.accept('>');
            parseBody(ctxt);
            ctxt.acceptString(endingTag);
        }
开发者ID:Assmann-Siemens,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs


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