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