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


C# MamaMsgField.getChar方法代碼示例

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


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

示例1: onUpdate

 public void onUpdate(
     MamdaTradeListener listener,
     MamaMsgField field)
 {
     listener.mTradeCache.mCorrShortSaleCircuitBreaker = field.getChar();
     listener.mTradeCache.mCorrShortSaleCircuitBreakerFieldState = MamdaFieldState.MODIFIED;
 }
開發者ID:jacobraj,項目名稱:MAMA,代碼行數:7,代碼來源:MamdaTradeListener.cs

示例2: onUpdate

			public void onUpdate(MamdaOrderImbalanceListener listener, MamaMsgField field)
			{
				switch (field.getType())
				{
					case mamaFieldType.MAMA_FIELD_TYPE_CHAR :
						listener.mOrderImbalanceCache.mNoClearingPrice = field.getChar ();
                        listener.mOrderImbalanceCache.mNoClearingPriceFieldState = MamdaFieldState.MODIFIED;
						break;
					case mamaFieldType.MAMA_FIELD_TYPE_STRING :
						if (field.getString() != String.Empty)
						{
							listener.mOrderImbalanceCache.mNoClearingPrice = field.getString()[0];
                            listener.mOrderImbalanceCache.mNoClearingPriceFieldState = MamdaFieldState.MODIFIED;
						}
						else
						{
							listener.mOrderImbalanceCache.mNoClearingPrice = ' ';
                            listener.mOrderImbalanceCache.mNoClearingPriceFieldState = MamdaFieldState.MODIFIED;
						}
						break;
					default : break;
				}
			}
開發者ID:jacobraj,項目名稱:MAMA,代碼行數:23,代碼來源:MamdaOrderImbalanceListener.cs

示例3: onUpdate

 public void onUpdate(MamdaSecurityStatusListener listener, MamaMsgField field)
 {            
     if ((field != null) && (listener.mSecurityStatusCache.mLuldIndicator != field.getChar() || listener.mSecurityStatusCache.mLuldIndicatorFieldState == MamdaFieldState.NOT_INITIALISED))
     {
         listener.mSecurityStatusCache.mLuldIndicator = field.getChar();
         listener.mSecurityStatusCache.mLuldIndicatorFieldState = MamdaFieldState.MODIFIED;
         listener.mUpdated = true;
     } 
 }
開發者ID:jacobraj,項目名稱:MAMA,代碼行數:9,代碼來源:MamdaSecurityStatusListener.cs

示例4: onUpdate

        public void onUpdate (MamdaQuoteListener listener,
                              MamaMsgField        field)
        {

            if (field.getType() == mamaFieldType.MAMA_FIELD_TYPE_STRING)
            {
                listener.mQuoteCache.mBidIndicator = field.getString();
                listener.mQuoteCache.mBidIndicatorFieldState = MamdaFieldState.MODIFIED;
            }
            else if (field.getType() == mamaFieldType.MAMA_FIELD_TYPE_CHAR)
            {
                listener.mQuoteCache.mBidIndicator = field.getChar().ToString();
                listener.mQuoteCache.mBidIndicatorFieldState = MamdaFieldState.MODIFIED;
            }

        }
開發者ID:jacobraj,項目名稱:MAMA,代碼行數:16,代碼來源:MamdaQuoteListener.cs

示例5: displayField

            /// <summary>
            /// Display the contents of a field in the console window.
            /// </summary>
            /// <param name="field">
            /// The field to display.
            /// </param>
            /// <param name="indent">
            /// The level of indent to add before the string for formatting purposes.
            /// </param>
            internal void displayField(MamaMsgField field, int indent)
            {
                // Format a log string
                string logMessage = "";

                string indentSpacer = "  ";
                for (int i = 0; i < indent; i++)
                    indentSpacer += "  ";

                if (m_quietness < 1)
                {
                    logMessage = string.Format(
                        "{0}{1, -20 } |{2,5} | {3, 10} | ",
                        indentSpacer,
                        field.getName(),
                        field.getFid(),
                        field.getTypeName());
                }

                mamaFieldType fieldType = field.getType();

                switch (fieldType)
                {
                    case mamaFieldType.MAMA_FIELD_TYPE_MSG:
                        {
                            MamaMsg tmpMsg = field.getMsg();
                            Console.WriteLine(logMessage);
                            Console.WriteLine(indentSpacer + "{");

                            if (!(m_iterator))
                            {
                                tmpMsg.iterateFields(this, m_dictionary, indent + 1);
                            }
                            else
                            {
                                MamaMsgIterator subIterator = new MamaMsgIterator(m_dictionary);
                                MamaMsgField subField;
                                tmpMsg.begin(ref subIterator);
                                while ((subField = subIterator.getField()) != null)
                                {
                                    displayField(subField, indent + 1);
                                    subIterator++;
                                }
                            }
                            Console.WriteLine(indentSpacer + "}");
                        }
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_VECTOR_MSG:
                        {
                            MamaMsg[] tmpMsgarray = field.getVectorMsg();
                            foreach (MamaMsg tmpMsg in tmpMsgarray)
                            {
                                Console.WriteLine(logMessage);
                                Console.WriteLine(indentSpacer + "{");
                                if (!(m_iterator))
                                {
                                    tmpMsg.iterateFields(this, m_dictionary, indent + 1);
                                }
                                else
                                {
                                    MamaMsgIterator subIterator = new MamaMsgIterator(m_dictionary);
                                    MamaMsgField subField;
                                    tmpMsg.begin(ref subIterator);
                                    while ((subField = subIterator.getField()) != null)
                                    {
                                        displayField(subField, indent + 1);
                                        subIterator++;
                                    }
                                }
                                Console.WriteLine(indentSpacer + "}");
                            }
                        }
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_STRING:
                        logMessage += field.getString();
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_BOOL:
                        if (m_quietness < 1)
                            logMessage += field.getBool().ToString();
                        else
                            logMessage += field.getBool();
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_CHAR:
                        if (m_quietness < 1)
                            logMessage += field.getChar().ToString();
                        else
                            logMessage += field.getChar();
                        break;
                    case mamaFieldType.MAMA_FIELD_TYPE_I8:
                        if (m_quietness < 1)
                            logMessage += field.getI8().ToString();
//.........這裏部分代碼省略.........
開發者ID:varauder,項目名稱:OpenMAMA,代碼行數:101,代碼來源:MamaListenCS.cs


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