Wombat.MamaMsg.getF64 C# (CSharp) Метод

getF64() публичный Метод

Get a F64 field.
public getF64 ( Wombat.MamaFieldDescriptor descriptor, double valueIfMissing ) : double
descriptor Wombat.MamaFieldDescriptor
valueIfMissing double
Результат double
        public double getF64(
			MamaFieldDescriptor descriptor,
			double valueIfMissing)
        {
            return getF64 (null, (ushort)descriptor.getFid(), valueIfMissing);
        }

Same methods

MamaMsg::getF64 ( Wombat.MamaFieldDescriptor descriptor ) : double
MamaMsg::getF64 ( string name, ushort fid ) : double
MamaMsg::getF64 ( string name, ushort fid, double valueIfMissing ) : double

Usage Example

Пример #1
0
        private void getLevelInfo(
			MamdaOrderBookPriceLevel level,
			MamaMsg plMsg,
            MamdaOrderBook deltaBook)
        {
            level.setPrice(plMsg.getPrice(MamdaOrderBookFields.PL_PRICE));

            level.setSize((long)plMsg.getF64(MamdaOrderBookFields.PL_SIZE, 0));
            level.setNumEntries((int)plMsg.getF64(MamdaOrderBookFields.PL_NUM_ENTRIES, 1));
            level.setAction((MamdaOrderBookPriceLevel.Actions)plMsg.getChar(
                             MamdaOrderBookFields.PL_ACTION, 'A'));
            level.setSide((MamdaOrderBookPriceLevel.Sides)plMsg.getChar(
                           MamdaOrderBookFields.PL_SIDE, 'B'));

            /* Optional order book fields: */
            level.setSizeChange((long)plMsg.getF64(MamdaOrderBookFields.PL_SIZE_CHANGE, 0)); //default 0
            level.setTime(plMsg.getDateTime(MamdaOrderBookFields.PL_TIME, deltaBook.getBookTime()));
        }
All Usage Examples Of Wombat.MamaMsg::getF64
MamaMsg