Merge branch 'spartan_tas' of bitbucket.org:bluetradesys/spark into spartan_tas

This commit is contained in:
Taha Afzal committed 2021-01-12 11:28:21 -05:00
commit 121b7df59e
173 files changed
+70050 -59410

No files matched your search

@@ -1,3 +1,5 @@
* MDP3
- [[ftp://ftp.cmegroup.com/SBEFix/][Templates and Config FTP Site]]
* iLink3
- [[https://cmegroup.com/confluence/display/EPICSANDBOX/iLink+3+-+Simple+Binary+Encoding#iLink3SimpleBinaryEncoding-SchemaDistribution][Dissimination Scheme]]
- sftp access:
@@ -0,0 +1,955 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:messageSchema xmlns:ns2="http://www.fixprotocol.org/ns/simple/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" package="mktdata" id="1" version="9" semanticVersion="FIX5SP2" description="20180308" byteOrder="littleEndian" xsi:schemaLocation="http://www.fixtradingcommunity.org/pg/file/fplpo/read/1196759/simple-binary-encoding-rc2xsd SimpleBinary-RC2.xsd">
<types>
<type name="Asset" description="Asset" length="6" primitiveType="char" semanticType="String"/>
<type name="CFICode" length="6" primitiveType="char" semanticType="String"/>
<type name="CHAR" description="char" primitiveType="char"/>
<type name="Currency" description="Currency" length="3" primitiveType="char" semanticType="Currency"/>
<type name="InstAttribType" description="Eligibility" presence="constant" primitiveType="int8">24</type>
<type name="Int16" description="int16" primitiveType="int16"/>
<type name="Int32" description="int32" primitiveType="int32"/>
<type name="Int32NULL" presence="optional" nullValue="2147483647" primitiveType="int32"/>
<type name="Int8" description="int8" primitiveType="int8"/>
<type name="Int8NULL" description="int8 optional" presence="optional" nullValue="127" primitiveType="int8"/>
<type name="LocalMktDate" presence="optional" nullValue="65535" primitiveType="uint16" semanticType="LocalMktDate"/>
<type name="MDEntryTypeChannelReset" description="Channel Reset message entry type" presence="constant" primitiveType="char">J</type>
<type name="MDEntryTypeLimits" description="MDEntryTypeLimits" presence="constant" primitiveType="char">g</type>
<type name="MDEntryTypeTrade" description="MDEntryTypeTrade" presence="constant" primitiveType="char">2</type>
<type name="MDEntryTypeVol" description="MDEntryTypeVol" presence="constant" primitiveType="char">e</type>
<type name="MDFeedType" length="3" primitiveType="char" semanticType="String"/>
<type name="MDUpdateActionNew" description="MDUpdateActionNew" presence="constant" primitiveType="int8">0</type>
<type name="MDUpdateTypeNew" description="MDUpdateTypeNew" presence="constant" primitiveType="int8">0</type>
<type name="QuoteReqId" length="23" primitiveType="char" semanticType="String"/>
<type name="SecurityExchange" length="4" primitiveType="char" semanticType="Exchange"/>
<type name="SecurityGroup" length="6" primitiveType="char" semanticType="String"/>
<type name="SecurityIDSource" description="SecurityIDSource" presence="constant" length="1" primitiveType="char" semanticType="char">8</type>
<type name="SecuritySubType" length="5" primitiveType="char" semanticType="String"/>
<type name="SecurityType" description="SecurityType" length="6" primitiveType="char" semanticType="String"/>
<type name="Symbol" description="Symbol" length="20" primitiveType="char" semanticType="String"/>
<type name="Text" description="Text" length="180" primitiveType="char" semanticType="String"/>
<type name="UnderlyingSymbol" length="20" primitiveType="char" semanticType="String"/>
<type name="UnitOfMeasure" length="30" primitiveType="char" semanticType="String"/>
<type name="UserDefinedInstrument" length="1" primitiveType="char" semanticType="char"/>
<type name="uInt32" description="uInt32" primitiveType="uint32"/>
<type name="uInt32NULL" description="uInt32 optional" presence="optional" nullValue="4294967295" primitiveType="uint32"/>
<type name="uInt64" description="uInt64" primitiveType="uint64"/>
<type name="uInt64NULL" description="uInt64 optional" presence="optional" nullValue="18446744073709551615" primitiveType="uint64" sinceVersion="7"/>
<type name="uInt8" description="uInt8" primitiveType="uint8"/>
<type name="uInt8NULL" description="uInt8NULL" presence="optional" nullValue="255" primitiveType="uint8"/>
<composite name="Decimal9" description="Decimal with constant exponent -9" sinceVersion="9">
<type name="mantissa" description="mantissa" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-9</type>
</composite>
<composite name="Decimal9NULL" description="Optional Decimal with constant exponent -9 " sinceVersion="9">
<type name="mantissa" description="mantissa" presence="optional" nullValue="9223372036854775807" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-9</type>
</composite>
<composite name="DecimalQty" description="A number representing quantity" semanticType="Qty">
<type name="mantissa" description="mantissa " presence="optional" nullValue="2147483647" primitiveType="int32"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-4</type>
</composite>
<composite name="FLOAT" description="Decimal">
<type name="mantissa" description="mantissa" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-7</type>
</composite>
<composite name="MaturityMonthYear" description="Year, Month and Date" semanticType="MonthYear">
<type name="year" description="YYYY" presence="optional" nullValue="65535" primitiveType="uint16"/>
<type name="month" description="MM" presence="optional" nullValue="255" primitiveType="uint8"/>
<type name="day" description="DD" presence="optional" nullValue="255" primitiveType="uint8"/>
<type name="week" description="WW" presence="optional" nullValue="255" primitiveType="uint8"/>
</composite>
<composite name="PRICE" description="PRICE">
<type name="mantissa" description="mantissa" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-7</type>
</composite>
<composite name="PRICE9" description="Price with constant exponent -9" sinceVersion="9">
<type name="mantissa" description="mantissa" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-9</type>
</composite>
<composite name="PRICENULL" description="Price NULL">
<type name="mantissa" description="mantissa" presence="optional" nullValue="9223372036854775807" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-7</type>
</composite>
<composite name="PRICENULL9" description="Optional Price with constant exponent -9" sinceVersion="9">
<type name="mantissa" description="mantissa" presence="optional" nullValue="9223372036854775807" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-9</type>
</composite>
<composite name="groupSize" description="Repeating group dimensions" semanticType="NumInGroup">
<type name="blockLength" primitiveType="uint16"/>
<type name="numInGroup" primitiveType="uint8"/>
</composite>
<composite name="groupSize8Byte" description="8 Byte aligned repeating group dimensions" semanticType="NumInGroup">
<type name="blockLength" description="Length" primitiveType="uint16"/>
<type name="numInGroup" description="NumInGroup" offset="7" primitiveType="uint8"/>
</composite>
<composite name="groupSizeEncoding" description="Repeating group dimensions">
<type name="blockLength" primitiveType="uint16" semanticType="Length"/>
<type name="numInGroup" primitiveType="uint16" semanticType="NumInGroup"/>
</composite>
<composite name="messageHeader" description="Template ID and length of message root">
<type name="blockLength" primitiveType="uint16"/>
<type name="templateId" primitiveType="uint16"/>
<type name="schemaId" primitiveType="uint16"/>
<type name="version" primitiveType="uint16"/>
</composite>
<enum name="AggressorSide" encodingType="uInt8NULL">
<validValue name="NoAggressor" description="No Aggressor">0</validValue>
<validValue name="Buy" description="Buy">1</validValue>
<validValue name="Sell" description="Sell">2</validValue>
</enum>
<enum name="EventType" encodingType="uInt8">
<validValue name="Activation" description="Activation">5</validValue>
<validValue name="LastEligibleTradeDate" description="Last Eligible Trade Date">7</validValue>
</enum>
<enum name="HaltReason" encodingType="uInt8">
<validValue name="GroupSchedule" description="Group Schedule">0</validValue>
<validValue name="SurveillanceIntervention" description="Surveillance Intervention ">1</validValue>
<validValue name="MarketEvent" description="Market Event ">2</validValue>
<validValue name="InstrumentActivation" description="Instrument Activation">3</validValue>
<validValue name="InstrumentExpiration" description="Instrument Expiration">4</validValue>
<validValue name="Unknown" description="Unknown">5</validValue>
<validValue name="RecoveryInProcess" description="Recovery In Process" sinceVersion="3">6</validValue>
</enum>
<enum name="LegSide" encodingType="uInt8">
<validValue name="BuySide" description="Buy Side">1</validValue>
<validValue name="SellSide" description="Sell Side">2</validValue>
</enum>
<enum name="MDEntryType" encodingType="CHAR">
<validValue name="Bid" description="Bid">0</validValue>
<validValue name="Offer" description="Offer">1</validValue>
<validValue name="Trade" description="Trade">2</validValue>
<validValue name="OpenPrice" description="Open Price">4</validValue>
<validValue name="SettlementPrice" description="Settlement Price">6</validValue>
<validValue name="TradingSessionHighPrice" description="Trading Session High Price">7</validValue>
<validValue name="TradingSessionLowPrice" description="Trading Session Low Price">8</validValue>
<validValue name="ClearedVolume" description="Cleared Volume">B</validValue>
<validValue name="OpenInterest" description="Open Interest">C</validValue>
<validValue name="ImpliedBid" description="Implied Bid">E</validValue>
<validValue name="ImpliedOffer" description="Implied Offer">F</validValue>
<validValue name="BookReset" description="Book Reset">J</validValue>
<validValue name="SessionHighBid" description="Session High Bid">N</validValue>
<validValue name="SessionLowOffer" description="Session Low Offer">O</validValue>
<validValue name="FixingPrice" description="Fixing Price">W</validValue>
<validValue name="ElectronicVolume" description="Electronic Volume">e</validValue>
<validValue name="ThresholdLimitsandPriceBandVariation" description="Threshold Limits and Price Band Variation">g</validValue>
</enum>
<enum name="MDEntryTypeBook" encodingType="CHAR">
<validValue name="Bid" description="Bid">0</validValue>
<validValue name="Offer" description="Offer">1</validValue>
<validValue name="ImpliedBid" description="Implied Bid">E</validValue>
<validValue name="ImpliedOffer" description="Implied Offer">F</validValue>
<validValue name="BookReset" description="Book Reset">J</validValue>
</enum>
<enum name="MDEntryTypeDailyStatistics" encodingType="CHAR">
<validValue name="SettlementPrice" description="Settlement Price">6</validValue>
<validValue name="ClearedVolume" description="Cleared Volume">B</validValue>
<validValue name="OpenInterest" description="Open Interest">C</validValue>
<validValue name="FixingPrice" description="Fixing Price">W</validValue>
</enum>
<enum name="MDEntryTypeStatistics" encodingType="CHAR">
<validValue name="OpenPrice" description="Open Price">4</validValue>
<validValue name="HighTrade" description="High Trade">7</validValue>
<validValue name="LowTrade" description="Low Trade">8</validValue>
<validValue name="HighestBid" description="Highest Bid">N</validValue>
<validValue name="LowestOffer" description="Lowest Offer">O</validValue>
</enum>
<enum name="MDUpdateAction" encodingType="uInt8">
<validValue name="New" description="New">0</validValue>
<validValue name="Change" description="Change">1</validValue>
<validValue name="Delete" description="Delete">2</validValue>
<validValue name="DeleteThru" description="Delete Thru">3</validValue>
<validValue name="DeleteFrom" description="Delete From">4</validValue>
<validValue name="Overlay" description="Overlay">5</validValue>
</enum>
<enum name="OpenCloseSettlFlag" encodingType="uInt8NULL">
<validValue name="DailyOpenPrice" description="Daily Open Price">0</validValue>
<validValue name="IndicativeOpeningPrice" description="Indicative Opening Price">5</validValue>
</enum>
<enum name="OrderUpdateAction" encodingType="uInt8" sinceVersion="7">
<validValue name="New" description="New">0</validValue>
<validValue name="Update" description="Update">1</validValue>
<validValue name="Delete" description="Delete">2</validValue>
</enum>
<enum name="PutOrCall" encodingType="uInt8" sinceVersion="3">
<validValue name="Put" description="Put Option">0</validValue>
<validValue name="Call" description="Call Option">1</validValue>
</enum>
<enum name="SecurityTradingEvent" encodingType="uInt8">
<validValue name="NoEvent" description="No Event">0</validValue>
<validValue name="NoCancel" description="No Cancel">1</validValue>
<validValue name="ResetStatistics" description="Reset Statistics">4</validValue>
<validValue name="ImpliedMatchingON" description="Implied Matching ON">5</validValue>
<validValue name="ImpliedMatchingOFF" description="Implied Matching OFF">6</validValue>
</enum>
<enum name="SecurityTradingStatus" encodingType="uInt8NULL">
<validValue name="TradingHalt" description="Trading Halt">2</validValue>
<validValue name="Close" description="Close">4</validValue>
<validValue name="NewPriceIndication" description="New Price Indication">15</validValue>
<validValue name="ReadyToTrade" description="Ready To Trade">17</validValue>
<validValue name="NotAvailableForTrading" description="Not Available For Trading">18</validValue>
<validValue name="UnknownorInvalid" description="Unknown or Invalid">20</validValue>
<validValue name="PreOpen" description="Pre Open">21</validValue>
<validValue name="PreCross" description="Pre Cross">24</validValue>
<validValue name="Cross" description="Cross">25</validValue>
<validValue name="PostClose" description="Post Close">26</validValue>
<validValue name="NoChange" description="No Change">103</validValue>
</enum>
<enum name="SecurityUpdateAction" encodingType="CHAR">
<validValue name="Add" description="Add">A</validValue>
<validValue name="Delete" description="Delete">D</validValue>
<validValue name="Modify" description="Modify">M</validValue>
</enum>
<set name="InstAttribValue" encodingType="uInt32">
<choice name="ElectronicMatchEligible" description="1=Electronic Match Eligible">0</choice>
<choice name="OrderCrossEligible" description="1=Order Cross Eligible">1</choice>
<choice name="BlockTradeEligible" description="1=Block Trade Eligible">2</choice>
<choice name="EFPEligible" description="1=EFP Eligible">3</choice>
<choice name="EBFEligible" description="1=EBF Eligible">4</choice>
<choice name="EFSEligible" description="1=EFS Eligible">5</choice>
<choice name="EFREligible" description="1=EFR Eligible">6</choice>
<choice name="OTCEligible" description="1=OTC Eligible">7</choice>
<choice name="iLinkIndicativeMassQuotingEligible" description="1=iLink Indicative Mass Quoting Eligible">8</choice>
<choice name="NegativeStrikeEligible" description="1=Negative Strike Eligible">9</choice>
<choice name="NegativePriceOutrightEligible" description="1=Negative Price Outright Eligible">10</choice>
<choice name="IsFractional" description="1=Indicates product has fractional display price">11</choice>
<choice name="VolatilityQuotedOption" description="1=Volatility Quoted Option">12</choice>
<choice name="RFQCrossEligible" description="1=RFQ Cross Eligible">13</choice>
<choice name="ZeroPriceOutrightEligible" description="1=Zero Price Outright Eligible">14</choice>
<choice name="DecayingProductEligibility" description="1=Decaying Product Eligibility">15</choice>
<choice name="VariableProductEligibility" description="1=Variable Product Eligibility">16</choice>
<choice name="DailyProductEligibility" description="1=Daily Product Eligibility">17</choice>
<choice name="GTOrdersEligibility" description="1=GT Orders Eligibility">18</choice>
<choice name="ImpliedMatchingEligibility" description="1=Implied Matching Eligibility">19</choice>
<choice name="TriangulationEligible" description="1=Triangulation Eligible" sinceVersion="9">20</choice>
<choice name="VariableCabEligible" description="1=Variable Cab Eligible" sinceVersion="9">21</choice>
</set>
<set name="MatchEventIndicator" encodingType="uInt8">
<choice name="LastTradeMsg" description="1=Last trade message for the event, 0=Not last">0</choice>
<choice name="LastVolumeMsg" description="1=Last electronic volume message, 0=Not last">1</choice>
<choice name="LastQuoteMsg" description="1=Last real quote message, 0=Not last">2</choice>
<choice name="LastStatsMsg" description="1=Last statistics message, 0=Not last">3</choice>
<choice name="LastImpliedMsg" description="1=Last implied quote message, 0=Not last">4</choice>
<choice name="RecoveryMsg" description="1=Message is sent during recovery process">5</choice>
<choice name="Reserved" description="0=Reserved for future use">6</choice>
<choice name="EndOfEvent" description="1=Last message for the event, 0=Not last">7</choice>
</set>
<set name="SettlPriceType" encodingType="uInt8">
<choice name="FinalDaily" description="1=FinalDaily, 0=Preliminary">0</choice>
<choice name="Actual" description="1=Actual, 0=Theoretically Calculated">1</choice>
<choice name="Rounded" description="1=Rounded, 0=Non-Rounded or Undefined">2</choice>
<choice name="Intraday" description="1=Intraday, 0=Undefined" sinceVersion="4">3</choice>
<choice name="ReservedBits" description="Bits 4-6 are reserved">4</choice>
<choice name="NullValue" description="1=Entire set is NULL, 0=not NULL">7</choice>
</set>
</types>
<ns2:message name="ChannelReset4" id="4" description="ChannelReset" blockLength="9" semanticType="X">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="2" dimensionType="groupSize">
<field name="MDUpdateAction" id="279" type="MDUpdateTypeNew" description="Market Data update action" sinceVersion="2" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeChannelReset" description="Market Data entry type " semanticType="char"/>
<field name="ApplID" id="1180" type="Int16" description="Indicates the channel ID as defined in the XML configuration file" offset="0" sinceVersion="3" semanticType="int"/>
</group>
</ns2:message>
<ns2:message name="AdminHeartbeat12" id="12" description="AdminHeartbeat" blockLength="0" semanticType="0"/>
<ns2:message name="AdminLogin15" id="15" description="AdminLogin" blockLength="1" semanticType="A">
<field name="HeartBtInt" id="108" type="Int8" description="Heartbeat interval (seconds)" offset="0" semanticType="int"/>
</ns2:message>
<ns2:message name="AdminLogout16" id="16" description="AdminLogout" blockLength="180" semanticType="5">
<field name="Text" id="58" type="Text" description="Free format text string. May include logout confirmation or reason for logout" offset="0" semanticType="String"/>
</ns2:message>
<ns2:message name="MDInstrumentDefinitionFuture27" id="27" description="MDInstrumentDefinitionFuture" blockLength="216" semanticType="d" sinceVersion="2">
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="0" semanticType="MultipleCharValue"/>
<field name="TotNumReports" id="911" type="uInt32NULL" description="Total number of instruments in the Replay loop. Used on Replay Feed only " offset="1" semanticType="int"/>
<field name="SecurityUpdateAction" id="980" type="SecurityUpdateAction" description="Last Security update action on Incremental feed, 'D' or 'M' is used when a mid-week deletion or modification (i.e. extension) occurs" offset="5" semanticType="char"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="Timestamp of when the instrument was last added, modified or deleted" offset="6" semanticType="UTCTimestamp"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current state of the instrument. In Security Definition message this tag is available in the Instrument Replay feed only " offset="14" semanticType="int"/>
<field name="ApplID" id="1180" type="Int16" description="The channel ID as defined in the XML Configuration file" offset="15" semanticType="int"/>
<field name="MarketSegmentID" id="1300" type="uInt8" description="Identifies the market segment, populated for all CME Globex instruments" offset="17" semanticType="int"/>
<field name="UnderlyingProduct" id="462" type="uInt8" description="Product complex" offset="18" semanticType="int"/>
<field name="SecurityExchange" id="207" type="SecurityExchange" description="Exchange used to identify a security" offset="19" semanticType="Exchange"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group Code." offset="23" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="The underlying asset code also known as Product Code" offset="29" semanticType="String"/>
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol " offset="35" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Unique instrument ID" offset="55" semanticType="int"/>
<field name="SecurityIDSource" id="22" type="SecurityIDSource" description="Identifies class or source of tag 48-SecurityID value" semanticType="char"/>
<field name="SecurityType" id="167" type="SecurityType" description="Security Type" offset="59" semanticType="String"/>
<field name="CFICode" id="461" type="CFICode" description="ISO standard instrument categorization code" offset="65" semanticType="String"/>
<field name="MaturityMonthYear" id="200" type="MaturityMonthYear" description="This field provides the actual calendar date for contract maturity" offset="71" semanticType="MonthYear"/>
<field name="Currency" id="15" type="Currency" description="Identifies currency used for price" offset="76" semanticType="Currency"/>
<field name="SettlCurrency" id="120" type="Currency" description="Identifies currency used for settlement, if different from trading currency" offset="79" semanticType="Currency"/>
<field name="MatchAlgorithm" id="1142" type="CHAR" description="Matching algorithm " offset="82" semanticType="char"/>
<field name="MinTradeVol" id="562" type="uInt32" description="The minimum trading volume for a security" offset="83" semanticType="Qty"/>
<field name="MaxTradeVol" id="1140" type="uInt32" description="The maximum trading volume for a security" offset="87" semanticType="Qty"/>
<field name="MinPriceIncrement" id="969" type="PRICE" description="Minimum constant tick for the instrument, sent only if instrument is non-VTT (Variable Tick table) eligible" offset="91" semanticType="Price"/>
<field name="DisplayFactor" id="9787" type="FLOAT" description="Contains the multiplier to convert the CME Globex display price to the conventional price" offset="99" semanticType="float"/>
<field name="MainFraction" id="37702" type="uInt8NULL" description="Price Denominator of Main Fraction" offset="107" semanticType="int"/>
<field name="SubFraction" id="37703" type="uInt8NULL" description="Price Denominator of Sub Fraction" offset="108" semanticType="int"/>
<field name="PriceDisplayFormat" id="9800" type="uInt8NULL" description="Number of decimals in fractional display price" offset="109" semanticType="int"/>
<field name="UnitOfMeasure" id="996" type="UnitOfMeasure" description="Unit of measure for the products' original contract size. This will be populated for all products listed on CME Globex" offset="110" semanticType="String"/>
<field name="UnitOfMeasureQty" id="1147" type="PRICENULL" description="This field contains the contract size for each instrument. Used in combination with tag 996-UnitofMeasure" offset="140" semanticType="Qty"/>
<field name="TradingReferencePrice" id="1150" type="PRICENULL" description="Reference price for prelisted instruments or the last calculated Settlement whether it be Theoretical, Preliminary or a Final Settle of the session." offset="148" semanticType="Price"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="156" semanticType="MultipleCharValue"/>
<field name="OpenInterestQty" id="5792" type="Int32NULL" description="The total open interest for the market at the close of the prior trading session." offset="157" semanticType="int"/>
<field name="ClearedVolume" id="5791" type="Int32NULL" description="The total cleared volume of instrument traded during the prior trading session." offset="161" semanticType="int"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL" description="Allowable high limit price for the trading day" offset="165" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL" description="Allowable low limit price for the trading day" offset="173" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL" description="Differential value for price banding." offset="181" semanticType="Price"/>
<field name="DecayQuantity" id="5818" type="Int32NULL" description="Indicates the quantity that a contract will decay daily by once the decay start date is reached" offset="189" semanticType="Qty"/>
<field name="DecayStartDate" id="5819" type="LocalMktDate" description="Indicates the date at which a decaying contract will begin to decay" offset="193" semanticType="LocalMktDate"/>
<field name="OriginalContractSize" id="5849" type="Int32NULL" description="Fixed contract value assigned to each product" offset="195" semanticType="Qty"/>
<field name="ContractMultiplier" id="231" type="Int32NULL" description="Number of deliverable units per instrument, e.g., peak days in maturity month or number of calendar days in maturity month" offset="199" semanticType="int"/>
<field name="ContractMultiplierUnit" id="1435" type="Int8NULL" description="Indicates the type of multiplier being applied to the product. Optionally used in combination with tag 231-ContractMultiplier" offset="203" semanticType="int"/>
<field name="FlowScheduleType" id="1439" type="Int8NULL" description="The schedule according to which the electricity is delivered in a physical contract, or priced in a financial contract. Specifies whether the contract is defined according to the Easter Peak, Eastern Off-Peak, Western Peak or Western Off-Peak." offset="204" semanticType="int"/>
<field name="MinPriceIncrementAmount" id="1146" type="PRICENULL" description="Monetary value equivalent to the minimum price fluctuation" offset="205" semanticType="Price"/>
<field name="UserDefinedInstrument" id="9779" type="UserDefinedInstrument" description="User-defined instruments flag" offset="213" sinceVersion="3" semanticType="char"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates session date corresponding to the settlement price in tag 1150-TradingReferencePrice" offset="214" sinceVersion="6" semanticType="LocalMktDate"/>
<group name="NoEvents" id="864" description="Number of repeating EventType entries" blockLength="9" dimensionType="groupSize">
<field name="EventType" id="865" type="EventType" description="Code to represent the type of event" offset="0" semanticType="int"/>
<field name="EventTime" id="1145" type="uInt64" description="Date and Time of instument Activation or Expiration event sent as number of nanoseconds since Unix epoch" offset="1" semanticType="UTCTimestamp"/>
</group>
<group name="NoMDFeedTypes" id="1141" description="Number of repeating FeedType entries" blockLength="4" dimensionType="groupSize">
<field name="MDFeedType" id="1022" type="MDFeedType" description="Describes a class of service for a given data feed. GBX- Real Book, GBI-Implied Book" offset="0" semanticType="String"/>
<field name="MarketDepth" id="264" type="Int8" description="Book depth" offset="3" semanticType="int"/>
</group>
<group name="NoInstAttrib" id="870" description="Number of repeating InstrAttribType entries" blockLength="4" dimensionType="groupSize">
<field name="InstAttribType" id="871" type="InstAttribType" description="Instrument eligibility attributes" semanticType="int"/>
<field name="InstAttribValue" id="872" type="InstAttribValue" description="Bitmap field of 32 Boolean type instrument eligibility flags" offset="0" semanticType="MultipleCharValue"/>
</group>
<group name="NoLotTypeRules" id="1234" description="Number of entries" blockLength="5" dimensionType="groupSize">
<field name="LotType" id="1093" type="Int8" description="This tag is required to interpret the value in tag 1231-MinLotSize" offset="0" semanticType="int"/>
<field name="MinLotSize" id="1231" type="DecimalQty" description="Minimum quantity accepted for order entry. If tag 1093-LotType=4, this value is the minimum quantity for order entry expressed in the applicable units, specified in tag 996-UnitOfMeasure, e.g. megawatts" offset="1" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="MDInstrumentDefinitionSpread29" id="29" description="MDInstrumentDefinitionSpread" blockLength="195" semanticType="d" sinceVersion="2">
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="0" semanticType="MultipleCharValue"/>
<field name="TotNumReports" id="911" type="uInt32NULL" description="Total number of instruments in the Replay loop. Used on Replay Feed only" offset="1" semanticType="int"/>
<field name="SecurityUpdateAction" id="980" type="SecurityUpdateAction" description="Last Security update action on Incremental feed, 'D' or 'M' is used when a mid-week deletion or modification (i.e. extension) occurs" offset="5" semanticType="char"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="Timestamp of when the instrument was last added, modified or deleted" offset="6" semanticType="UTCTimestamp"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current state of the instrument. The data is available in the Instrument Replay feed only" offset="14" semanticType="int"/>
<field name="ApplID" id="1180" type="Int16" description="The channel ID as defined in the XML Configuration file" offset="15" semanticType="int"/>
<field name="MarketSegmentID" id="1300" type="uInt8" description="Identifies the market segment, populated for all CME Globex instruments" offset="17" semanticType="int"/>
<field name="UnderlyingProduct" id="462" type="uInt8NULL" description="Product complex" offset="18" semanticType="int"/>
<field name="SecurityExchange" id="207" type="SecurityExchange" description="Exchange used to identify a security" offset="19" semanticType="Exchange"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group Code" offset="23" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="The underlying asset code also known as Product Code" offset="29" semanticType="String"/>
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol. Previously used as Group Code " offset="35" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Unique instrument ID" offset="55" semanticType="int"/>
<field name="SecurityIDSource" id="22" type="SecurityIDSource" description="Identifies class or source of the security ID (Tag 48) value" semanticType="char"/>
<field name="SecurityType" id="167" type="SecurityType" description="Security Type" offset="59" semanticType="String"/>
<field name="CFICode" id="461" type="CFICode" description="ISO standard instrument categorization code" offset="65" semanticType="String"/>
<field name="MaturityMonthYear" id="200" type="MaturityMonthYear" description="This field provides the actual calendar date for contract maturity" offset="71" semanticType="MonthYear"/>
<field name="Currency" id="15" type="Currency" description="Identifies currency used for price" offset="76" semanticType="Currency"/>
<field name="SecuritySubType" id="762" type="SecuritySubType" description="Strategy type" offset="79" semanticType="String"/>
<field name="UserDefinedInstrument" id="9779" type="UserDefinedInstrument" description="User-defined instruments flag" offset="84" semanticType="char"/>
<field name="MatchAlgorithm" id="1142" type="CHAR" description="Matching algorithm" offset="85" semanticType="char"/>
<field name="MinTradeVol" id="562" type="uInt32" description="The minimum trading volume for a security" offset="86" semanticType="Qty"/>
<field name="MaxTradeVol" id="1140" type="uInt32" description="The maximum trading volume for a security" offset="90" semanticType="Qty"/>
<field name="MinPriceIncrement" id="969" type="PRICE" description="Minimum constant tick for the instrument, sent only if instrument is non-VTT (Variable Tick table) eligible" offset="94" semanticType="Price"/>
<field name="DisplayFactor" id="9787" type="FLOAT" description="Contains the multiplier to convert the CME Globex display price to the conventional price" offset="102" semanticType="float"/>
<field name="PriceDisplayFormat" id="9800" type="uInt8NULL" description="Number of decimals in fractional display price" offset="110" semanticType="int"/>
<field name="PriceRatio" id="5770" type="PRICENULL" description="Used for price calculation in spread and leg pricing" offset="111" semanticType="Price"/>
<field name="TickRule" id="6350" type="Int8NULL" description="Tick Rule " offset="119" semanticType="int"/>
<field name="UnitOfMeasure" id="996" type="UnitOfMeasure" description="Unit of measure for the products' original contract size" offset="120" semanticType="String"/>
<field name="TradingReferencePrice" id="1150" type="PRICENULL" description="Reference price - the most recently available Settlement whether it be Theoretical, Preliminary or a Final Settle of the session" offset="150" semanticType="Price"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="158" semanticType="MultipleCharValue"/>
<field name="OpenInterestQty" id="5792" type="Int32NULL" description="The total open interest for the market at the close of the prior trading session" offset="159" semanticType="Qty"/>
<field name="ClearedVolume" id="5791" type="Int32NULL" description="The total cleared volume of instrument traded during the prior trading session" offset="163" semanticType="Qty"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL" description="Allowable high limit price for the trading day" offset="167" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL" description="Allowable low limit price for the trading day" offset="175" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL" description="Differential value for price banding" offset="183" semanticType="Price"/>
<field name="MainFraction" id="37702" type="uInt8NULL" description="Price Denominator of Main Fraction" offset="191" semanticType="int"/>
<field name="SubFraction" id="37703" type="uInt8NULL" description="Price Denominator of Sub Fraction" offset="192" semanticType="int"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates session date corresponding to the settlement price in tag 1150-TradingReferencePrice" offset="193" sinceVersion="6" semanticType="LocalMktDate"/>
<group name="NoEvents" id="864" description="Number of repeating EventType entries" blockLength="9" dimensionType="groupSize">
<field name="EventType" id="865" type="EventType" description="Code to represent the type of event" offset="0" semanticType="int"/>
<field name="EventTime" id="1145" type="uInt64" description="Date and time of instument Activation or Expiration event sent as number of nanoseconds since Unix epoch" offset="1" semanticType="UTCTimestamp"/>
</group>
<group name="NoMDFeedTypes" id="1141" description="Number of FeedType entries" blockLength="4" dimensionType="groupSize">
<field name="MDFeedType" id="1022" type="MDFeedType" description="Describes a class of service for a given data feed. GBX- Real Book, GBI-Implied Book" offset="0" semanticType="String"/>
<field name="MarketDepth" id="264" type="Int8" description="Identifies the depth of book" offset="3" semanticType="int"/>
</group>
<group name="NoInstAttrib" id="870" description="Number of InstrAttribType entries" blockLength="4" dimensionType="groupSize">
<field name="InstAttribType" id="871" type="InstAttribType" description="Instrument Eligibility Attributes" semanticType="int"/>
<field name="InstAttribValue" id="872" type="InstAttribValue" description="Bitmap field of 32 Boolean type Instrument eligibility flags" offset="0" semanticType="MultipleCharValue"/>
</group>
<group name="NoLotTypeRules" id="1234" description="Number of entries" blockLength="5" dimensionType="groupSize">
<field name="LotType" id="1093" type="Int8" description="This tag is required to interpret the value in tag 1231-MinLotSize" offset="0" semanticType="int"/>
<field name="MinLotSize" id="1231" type="DecimalQty" description="Minimum quantity accepted for order entry. If tag 1093-LotType=4, this value is the minimum quantity for order entry expressed in the applicable units, specified in tag 996-UnitOfMeasure, e.g. megawatts" offset="1" semanticType="Qty"/>
</group>
<group name="NoLegs" id="555" description="Number of Leg entries" blockLength="18" dimensionType="groupSize">
<field name="LegSecurityID" id="602" type="Int32" description="Leg Security ID" offset="0" semanticType="int"/>
<field name="LegSecurityIDSource" id="603" type="SecurityIDSource" description="Identifies source of tag 602-LegSecurityID value" semanticType="char"/>
<field name="LegSide" id="624" type="LegSide" description="Leg side" offset="4" semanticType="int"/>
<field name="LegRatioQty" id="623" type="Int8" description="Leg ratio of quantity for this individual leg relative to the entire multi-leg instrument" offset="5" semanticType="Qty"/>
<field name="LegPrice" id="566" type="PRICENULL" description="Price for the future leg of a UDS Covered instrument " offset="6" semanticType="Price"/>
<field name="LegOptionDelta" id="1017" type="DecimalQty" description="Delta used to calculate the quantity of futures used to cover the option or option strategy" offset="14" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="SecurityStatus30" id="30" description="SecurityStatus" blockLength="30" semanticType="f" sinceVersion="2">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch." offset="0" semanticType="UTCTimestamp"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group" offset="8" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="Product Code within Security Group specified" offset="14" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32NULL" description="If this tag is present, 35=f message is sent for the instrument" offset="20" semanticType="int"/>
<field name="TradeDate" id="75" type="LocalMktDate" description="Trade Session Date" offset="24" semanticType="LocalMktDate"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="26" semanticType="MultipleCharValue"/>
<field name="SecurityTradingStatus" id="326" type="SecurityTradingStatus" description="Identifies the trading status applicable to the instrument or Security Group" offset="27" semanticType="int"/>
<field name="HaltReason" id="327" type="HaltReason" description="Identifies the reason for the status change" offset="28" semanticType="int"/>
<field name="SecurityTradingEvent" id="1174" type="SecurityTradingEvent" description="Identifies an additional event or a rule related to the status" offset="29" semanticType="int"/>
</ns2:message>
<ns2:message name="MDIncrementalRefreshBook32" id="32" description="MDIncrementalRefreshBook" blockLength="11" semanticType="X" sinceVersion="2">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="32" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICENULL" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Market Data entry size" offset="8" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="12" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Market Data entry sequence number per instrument update" offset="16" semanticType="int"/>
<field name="NumberOfOrders" id="346" type="Int32NULL" description="In Book entry - aggregate number of orders at given price level" offset="20" semanticType="int"/>
<field name="MDPriceLevel" id="1023" type="uInt8" description="Aggregate book level" offset="24" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description=" Market Data update action" offset="25" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeBook" description="Market Data entry type" offset="26" semanticType="char"/>
</group>
<group name="NoOrderIDEntries" id="37705" description="Number of OrderID entries" blockLength="24" sinceVersion="7" dimensionType="groupSize8Byte">
<field name="OrderID" id="37" type="uInt64" description="Unique Order ID" offset="0" semanticType="int"/>
<field name="MDOrderPriority" id="37707" type="uInt64NULL" description="Order priority for execution on the order book" offset="8" semanticType="int"/>
<field name="MDDisplayQty" id="37706" type="Int32NULL" description="Visible qty of order" offset="16" semanticType="int"/>
<field name="ReferenceID" id="9633" type="uInt8NULL" description="Reference to corresponding Price and Security ID, sequence of MD entry in the message" offset="20" semanticType="int"/>
<field name="OrderUpdateAction" id="37708" type="OrderUpdateAction" description="Order book update action to be applied to the order referenced by OrderID" offset="21" semanticType="int"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshDailyStatistics33" id="33" description="MDIncrementalRefreshDailyStatistics" blockLength="11" semanticType="X" sinceVersion="2">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="32" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICENULL" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Market Data entry size" offset="8" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="12" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Market Data entry sequence number per instrument update" offset="16" semanticType="int"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates trade session date corresponding to a statistic entry" offset="20" semanticType="LocalMktDate"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="22" semanticType="MultipleCharValue"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action" offset="23" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeDailyStatistics" description="Market Data entry type" offset="24" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshLimitsBanding34" id="34" description="MDIncrementalRefreshLimitsBanding" blockLength="11" semanticType="X" sinceVersion="2">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="32" dimensionType="groupSize">
<field name="HighLimitPrice" id="1149" type="PRICENULL" description="Upper price threshold for the instrument" offset="0" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL" description="Lower price threshold for the instrument" offset="8" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL" description="Differential static value for price banding" offset="16" semanticType="Price"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="24" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="MD Entry sequence number per instrument update" offset="28" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateActionNew" description="Market Data entry update action. In order to delete banding value, high or low limit, the deleted price field is populated with a NULL " semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeLimits" description="Market Data entry type " semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshSessionStatistics35" id="35" description="MDIncrementalRefreshSessionStatistics" blockLength="11" semanticType="X" sinceVersion="2">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="24" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICE" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="8" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="MD Entry sequence number per instrument update" offset="12" semanticType="int"/>
<field name="OpenCloseSettlFlag" id="286" type="OpenCloseSettlFlag" description="Flag describing IOP and Open Price entries" offset="16" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action " offset="17" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeStatistics" description="Market Data entry type " offset="18" semanticType="char"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Indicative Opening Quantity " offset="19" sinceVersion="8" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshVolume37" id="37" description="MDIncrementalRefreshVolume" blockLength="11" semanticType="X" sinceVersion="2">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="16" dimensionType="groupSize">
<field name="MDEntrySize" id="271" type="Int32" description="Cumulative traded volume" offset="0" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="4" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Market Data entry sequence number per instrument update" offset="8" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action" offset="12" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeVol" description="Electronic Volume entry provides cumulative session trade volume updated with the event" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="SnapshotFullRefresh38" id="38" description="SnapshotFullRefresh" blockLength="59" semanticType="W" sinceVersion="2">
<field name="LastMsgSeqNumProcessed" id="369" type="uInt32" description="Sequence number of the last Incremental feed packet processed. This value is used to synchronize the snapshot loop with the real-time feed" offset="0" semanticType="SeqNum"/>
<field name="TotNumReports" id="911" type="uInt32" description="Total number of messages replayed in the loop" offset="4" semanticType="int"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="8" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Sequence number of the last Market Data entry processed for the instrument" offset="12" semanticType="SeqNum"/>
<field name="TransactTime" id="60" type="uInt64" description="Timestamp of the last event security participated in, sent as number of nanoseconds since Unix epoch" offset="16" semanticType="UTCTimestamp"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="UTC Date and time of last Security Definition add, update or delete on a given Market Data channel" offset="24" semanticType="UTCTimestamp"/>
<field name="TradeDate" id="75" type="LocalMktDate" description="Trade session date sent as number of days since Unix epoch" offset="32" semanticType="LocalMktDate"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current trading state of the instrument" offset="34" semanticType="int"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL" description="Upper price threshold for the instrument" offset="35" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL" description="Lower price threshold for the instrument" offset="43" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL" description="Differential value for price banding" offset="51" semanticType="Price"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="22" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICENULL" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Market Data entry quantity" offset="8" semanticType="Qty"/>
<field name="NumberOfOrders" id="346" type="Int32NULL" description="Aggregate number of orders at the given price level" offset="12" semanticType="int"/>
<field name="MDPriceLevel" id="1023" type="Int8NULL" description="Aggregate book position" offset="16" semanticType="int"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates the date of trade session corresponding to a statistic entry" offset="17" semanticType="LocalMktDate"/>
<field name="OpenCloseSettlFlag" id="286" type="OpenCloseSettlFlag" description="Flag describing Open Price entry" offset="19" semanticType="int"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="20" semanticType="MultipleCharValue"/>
<field name="MDEntryType" id="269" type="MDEntryType" description="Market Data entry type" offset="21" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="QuoteRequest39" id="39" description="QuoteRequest" blockLength="35" semanticType="R" sinceVersion="3">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="QuoteReqID" id="131" type="QuoteReqId" description="Quote Request ID defined by the exchange" offset="8" semanticType="String"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="31" semanticType="MultipleCharValue"/>
<group name="NoRelatedSym" id="146" description="Indicates the number of repeating symbols specified" blockLength="32" dimensionType="groupSize">
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol" offset="0" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="20" semanticType="int"/>
<field name="OrderQty" id="38" type="Int32NULL" description="Quantity requested" offset="24" semanticType="Qty"/>
<field name="QuoteType" id="537" type="Int8" description="Type of quote requested" offset="28" semanticType="int"/>
<field name="Side" id="54" type="Int8NULL" description="Side requested" offset="29" semanticType="int"/>
</group>
</ns2:message>
<ns2:message name="MDInstrumentDefinitionOption41" id="41" description="MDInstrumentDefinitionOption" blockLength="213" semanticType="d" sinceVersion="3">
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="0" semanticType="MultipleCharValue"/>
<field name="TotNumReports" id="911" type="uInt32NULL" description="Total number of instruments in the Replay loop. Used on Replay Feed only " offset="1" semanticType="int"/>
<field name="SecurityUpdateAction" id="980" type="SecurityUpdateAction" description="Last Security update action on Incremental feed, 'D' or 'M' is used when a mid-week deletion or modification (i.e. extension) occurs" offset="5" semanticType="char"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="Timestamp of when the instrument was last added, modified or deleted" offset="6" semanticType="UTCTimestamp"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current state of the instrument. The data is available in the Instrument Replay feed only " offset="14" semanticType="int"/>
<field name="ApplID" id="1180" type="Int16" description="The channel ID as defined in the XML Configuration file" offset="15" semanticType="int"/>
<field name="MarketSegmentID" id="1300" type="uInt8" description="Identifies the market segment, populated for all CME Globex instruments" offset="17" semanticType="int"/>
<field name="UnderlyingProduct" id="462" type="uInt8" description="Indicates the product complex" offset="18" semanticType="int"/>
<field name="SecurityExchange" id="207" type="SecurityExchange" description="Exchange used to identify a security" offset="19" semanticType="Exchange"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group Code " offset="23" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="The underlying asset code also known as Product Code" offset="29" semanticType="String"/>
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol. Previously used as Instrument Group Code " offset="35" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Unique Instrument ID" offset="55" semanticType="int"/>
<field name="SecurityIDSource" id="22" type="SecurityIDSource" description="Identifies class or source of tag 48-SecurityID value" semanticType="char"/>
<field name="SecurityType" id="167" type="SecurityType" description="Security Type" offset="59" semanticType="String"/>
<field name="CFICode" id="461" type="CFICode" description="ISO standard instrument categorization code" offset="65" semanticType="String"/>
<field name="PutOrCall" id="201" type="PutOrCall" description="Indicates whether an option instrument is a put or call" offset="71" semanticType="int"/>
<field name="MaturityMonthYear" id="200" type="MaturityMonthYear" description="This field provides the actual calendar date for contract maturity" offset="72" semanticType="MonthYear"/>
<field name="Currency" id="15" type="Currency" description="Identifies currency used for price" offset="77" semanticType="Currency"/>
<field name="StrikePrice" id="202" type="PRICENULL" description="Strike Price for an option instrument" offset="80" semanticType="Price"/>
<field name="StrikeCurrency" id="947" type="Currency" description="Currency in which the StrikePrice is denominated" offset="88" semanticType="Currency"/>
<field name="SettlCurrency" id="120" type="Currency" description="Identifies currency used for settlement, if different from trade price currency" offset="91" semanticType="Currency"/>
<field name="MinCabPrice" id="9850" type="PRICENULL" description="Defines cabinet price for outright options products" offset="94" semanticType="Price"/>
<field name="MatchAlgorithm" id="1142" type="CHAR" description="Matching algorithm" offset="102" semanticType="char"/>
<field name="MinTradeVol" id="562" type="uInt32" description="The minimum trading volume for a security." offset="103" semanticType="Qty"/>
<field name="MaxTradeVol" id="1140" type="uInt32" description="The maximum trading volume for a security." offset="107" semanticType="Qty"/>
<field name="MinPriceIncrement" id="969" type="PRICENULL" description="Minimum constant tick for the instrument" offset="111" semanticType="Price"/>
<field name="MinPriceIncrementAmount" id="1146" type="PRICENULL" description="Monetary value equivalent to the minimum price fluctuation" offset="119" semanticType="Price"/>
<field name="DisplayFactor" id="9787" type="FLOAT" description="Contains the multiplier to convert the CME Globex display price to the conventional price" offset="127" semanticType="float"/>
<field name="TickRule" id="6350" type="Int8NULL" description="VTT code referencing variable tick table " offset="135" semanticType="int"/>
<field name="MainFraction" id="37702" type="uInt8NULL" description="Price Denominator of Main Fraction" offset="136" semanticType="int"/>
<field name="SubFraction" id="37703" type="uInt8NULL" description="Price Denominator of Sub Fraction" offset="137" semanticType="int"/>
<field name="PriceDisplayFormat" id="9800" type="uInt8NULL" description="Number of decimals in fractional display price" offset="138" semanticType="int"/>
<field name="UnitOfMeasure" id="996" type="UnitOfMeasure" description="Unit of measure for the products' original contract size. This will be populated for all products listed on CME Globex" offset="139" semanticType="String"/>
<field name="UnitOfMeasureQty" id="1147" type="PRICENULL" description="This field contains the contract size for each instrument. Used in combination with tag 996-UnitofMeasure" offset="169" semanticType="Qty"/>
<field name="TradingReferencePrice" id="1150" type="PRICENULL" description="Reference price - the most recently available Settlement whether it be Theoretical, Preliminary or a Final Settle of the session" offset="177" semanticType="Price"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="185" semanticType="MultipleCharValue"/>
<field name="ClearedVolume" id="5791" type="Int32NULL" description="The total cleared volume of instrument traded during the prior trading session" offset="186" semanticType="Qty"/>
<field name="OpenInterestQty" id="5792" type="Int32NULL" description="The total open interest for the market at the close of the prior trading session." offset="190" semanticType="Qty"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL" description="Allowable low limit price for the trading day " offset="194" semanticType="Price"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL" description="Allowable high limit price for the trading day" offset="202" semanticType="Price"/>
<field name="UserDefinedInstrument" id="9779" type="UserDefinedInstrument" description="User-defined instruments flag" offset="210" semanticType="char"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates session date corresponding to the settlement price in tag 1150-TradingReferencePrice" offset="211" sinceVersion="6" semanticType="LocalMktDate"/>
<group name="NoEvents" id="864" description="Number of EventType entries" blockLength="9" dimensionType="groupSize">
<field name="EventType" id="865" type="EventType" description="Code to represent the type of event" offset="0" semanticType="int"/>
<field name="EventTime" id="1145" type="uInt64" description="Date and Time of instument Activation or Expiration event sent as number of nanoseconds since Unix epoch" offset="1" semanticType="UTCTimestamp"/>
</group>
<group name="NoMDFeedTypes" id="1141" description="Number of FeedType entries" blockLength="4" dimensionType="groupSize">
<field name="MDFeedType" id="1022" type="MDFeedType" description="Describes a class of service for a given data feed. GBX- Real Book, GBI-Implied Book" offset="0" semanticType="String"/>
<field name="MarketDepth" id="264" type="Int8" description="Book depth" offset="3" semanticType="int"/>
</group>
<group name="NoInstAttrib" id="870" description="Number of InstrAttribType entries" blockLength="4" dimensionType="groupSize">
<field name="InstAttribType" id="871" type="InstAttribType" description="Instrument Eligibility Attributes" semanticType="int"/>
<field name="InstAttribValue" id="872" type="InstAttribValue" description="Bitmap field of 32 Boolean type Instrument eligibility flags" offset="0" semanticType="MultipleCharValue"/>
</group>
<group name="NoLotTypeRules" id="1234" description="Number of entries" blockLength="5" dimensionType="groupSize">
<field name="LotType" id="1093" type="Int8" description="This tag is required to interpret the value in tag 1231-MinLotSize" offset="0" semanticType="int"/>
<field name="MinLotSize" id="1231" type="DecimalQty" description="Minimum quantity accepted for order entry. If tag 1093-LotType=4, this value is the minimum quantity for order entry expressed in the applicable units, specified in tag 996-UnitOfMeasure, e.g. megawatts" offset="1" semanticType="Qty"/>
</group>
<group name="NoUnderlyings" id="711" description="Number of underlying instruments" blockLength="24" dimensionType="groupSize">
<field name="UnderlyingSecurityID" id="309" type="Int32" description="Unique Instrument ID as qualified by the exchange per tag 305-UnderlyingSecurityIDSource" offset="0" semanticType="int"/>
<field name="UnderlyingSecurityIDSource" id="305" type="SecurityIDSource" description="This value is always '8' for CME" semanticType="char"/>
<field name="UnderlyingSymbol" id="311" type="UnderlyingSymbol" description="Underlying Instrument Symbol (Contract Name)" offset="4" semanticType="String"/>
</group>
<group name="NoRelatedInstruments" id="1647" description="Number of related instruments group" blockLength="24" sinceVersion="7" dimensionType="groupSize">
<field name="RelatedSecurityID" id="1650" type="Int32" description="Related Security ID" offset="0" semanticType="int"/>
<field name="RelatedSecurityIDSource" id="1651" type="SecurityIDSource" description="Related Security ID source" semanticType="char"/>
<field name="RelatedSymbol" id="1649" type="Symbol" description="Related instrument Symbol" offset="4" semanticType="String"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshTradeSummary42" id="42" description="MDIncrementalRefreshTradeSummary" blockLength="11" semanticType="X" sinceVersion="5">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of Trade Summary entries" blockLength="32" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICE" description="Trade price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32" description="Consolidated trade quantity" offset="8" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID as defined by CME" offset="12" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Sequence number per instrument update" offset="16" semanticType="int"/>
<field name="NumberOfOrders" id="346" type="Int32NULL" description="The total number of real orders per instrument that participated in a match step within a match event" offset="20" semanticType="int"/>
<field name="AggressorSide" id="5797" type="AggressorSide" description="Indicates which side is the aggressor or if there is no aggressor" offset="24" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action" offset="25" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeTrade" description="Market Data entry type" semanticType="char"/>
<field name="MDTradeEntryID" id="37711" type="uInt32NULL" description="Market Data Trade entry ID" offset="26" sinceVersion="7" semanticType="int"/>
</group>
<group name="NoOrderIDEntries" id="37705" description="Number of OrderID entries" blockLength="16" dimensionType="groupSize8Byte">
<field name="OrderID" id="37" type="uInt64" description="Unique order identifier as assigned by the exchange" offset="0" semanticType="int"/>
<field name="LastQty" id="32" type="Int32" description="Quantity bought or sold on this last fill" offset="8" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshOrderBook43" id="43" description="MDIncrementalRefreshOrderBook" blockLength="11" semanticType="X" sinceVersion="7">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="40" dimensionType="groupSize">
<field name="OrderID" id="37" type="uInt64NULL" description="Order ID" offset="0" semanticType="String"/>
<field name="MDOrderPriority" id="37707" type="uInt64NULL" description="Order priority for execution on the order book" offset="8" semanticType="int"/>
<field name="MDEntryPx" id="270" type="PRICENULL" description="Order price" offset="16" semanticType="Price"/>
<field name="MDDisplayQty" id="37706" type="Int32NULL" description="Visible order qty" offset="24" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="28" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Order book update action to be applied to the order referenced by OrderID" offset="32" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeBook" description="Market Data entry type" offset="33" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="SnapshotFullRefreshOrderBook44" id="44" description="SnapshotFullRefreshOrderBook" blockLength="28" semanticType="W" sinceVersion="7">
<field name="LastMsgSeqNumProcessed" id="369" type="uInt32" description="Sequence number of the last Incremental feed packet processed. This value is used to synchronize the snapshot loop with the real-time feed" offset="0" semanticType="SeqNum"/>
<field name="TotNumReports" id="911" type="uInt32" description="Total number of instruments in the replayed loop" offset="4" semanticType="int"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="8" semanticType="String"/>
<field name="NoChunks" id="37709" type="uInt32" description="Total number of packets that constitutes a single instrument order book" offset="12" semanticType="int"/>
<field name="CurrentChunk" id="37710" type="uInt32" description="Chunk sequence" offset="16" semanticType="int"/>
<field name="TransactTime" id="60" type="uInt64" description="Timestamp of the last event security participated in, sent as number of nanoseconds since Unix epoch" offset="20" semanticType="UTCTimestamp"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="29" dimensionType="groupSize">
<field name="OrderID" id="37" type="uInt64" description="Unique Order ID" offset="0" semanticType="int"/>
<field name="MDOrderPriority" id="37707" type="uInt64NULL" description="Order priority for execution on the order book" offset="8" semanticType="int"/>
<field name="MDEntryPx" id="270" type="PRICE" description="Order Price" offset="16" semanticType="Price"/>
<field name="MDDisplayQty" id="37706" type="Int32" description="Visible order qty" offset="24" semanticType="Qty"/>
<field name="MDEntryType" id="269" type="MDEntryTypeBook" description="Market Data entry type" offset="28" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshBook46" id="46" description="MDIncrementalRefreshBook" blockLength="11" semanticType="X" sinceVersion="9">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="32" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICENULL9" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Market Data entry size" offset="8" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="12" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Market Data entry sequence number per instrument update" offset="16" semanticType="int"/>
<field name="NumberOfOrders" id="346" type="Int32NULL" description="In Book entry - aggregate number of orders at given price level" offset="20" semanticType="int"/>
<field name="MDPriceLevel" id="1023" type="uInt8" description="Aggregate book level" offset="24" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description=" Market Data update action" offset="25" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeBook" description="Market Data entry type" offset="26" semanticType="char"/>
</group>
<group name="NoOrderIDEntries" id="37705" description="Number of OrderID entries" blockLength="24" dimensionType="groupSize8Byte">
<field name="OrderID" id="37" type="uInt64" description="Unique Order ID" offset="0" semanticType="int"/>
<field name="MDOrderPriority" id="37707" type="uInt64NULL" description="Order priority for execution on the order book" offset="8" semanticType="int"/>
<field name="MDDisplayQty" id="37706" type="Int32NULL" description="Visible qty of order" offset="16" semanticType="Qty"/>
<field name="ReferenceID" id="9633" type="uInt8NULL" description="Reference to corresponding Price and Security ID, sequence of MD entry in the message" offset="20" semanticType="int"/>
<field name="OrderUpdateAction" id="37708" type="OrderUpdateAction" description="Order book update action to be applied to the order referenced by OrderID" offset="21" semanticType="int"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshOrderBook47" id="47" description="MDIncrementalRefreshOrderBook" blockLength="11" semanticType="X" sinceVersion="9">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="40" dimensionType="groupSize">
<field name="OrderID" id="37" type="uInt64NULL" description="Order ID" offset="0" semanticType="int"/>
<field name="MDOrderPriority" id="37707" type="uInt64NULL" description="Order priority for execution on the order book" offset="8" semanticType="int"/>
<field name="MDEntryPx" id="270" type="PRICENULL9" description="Order price" offset="16" semanticType="Price"/>
<field name="MDDisplayQty" id="37706" type="Int32NULL" description="Visible order qty" offset="24" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="28" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Order book update action to be applied to the order referenced by OrderID" offset="32" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeBook" description="Market Data entry type " offset="33" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshTradeSummary48" id="48" description="MDIncrementalRefreshTradeSummary" blockLength="11" semanticType="X" sinceVersion="9">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of Trade Summary entries" blockLength="32" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICE9" description="Trade price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32" description="Consolidated trade quantity" offset="8" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID as defined by CME" offset="12" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Sequence number per instrument update" offset="16" semanticType="int"/>
<field name="NumberOfOrders" id="346" type="Int32" description="The total number of real orders per instrument that participated in a match step within a match event" offset="20" semanticType="int"/>
<field name="AggressorSide" id="5797" type="AggressorSide" description="Indicates which side is the aggressor or if there is no aggressor" offset="24" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action" offset="25" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeTrade" description="Market Data entry type" semanticType="char"/>
<field name="MDTradeEntryID" id="37711" type="uInt32NULL" description="Market Data Trade entry ID" offset="26" semanticType="int"/>
</group>
<group name="NoOrderIDEntries" id="37705" description="Number of OrderID entries" blockLength="16" dimensionType="groupSize8Byte">
<field name="OrderID" id="37" type="uInt64" description="Unique order identifier as assigned by the exchange" offset="0" semanticType="int"/>
<field name="LastQty" id="32" type="Int32" description="Quantity bought or sold on this last fill" offset="8" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshDailyStatistics49" id="49" description="MDIncrementalRefreshDailyStatistics" blockLength="11" semanticType="X" sinceVersion="9">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="32" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICENULL9" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Market Data entry size" offset="8" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="12" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Market Data entry sequence number per instrument update" offset="16" semanticType="int"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates trade session date corresponding to a statistic entry" offset="20" semanticType="LocalMktDate"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="22" semanticType="MultipleCharValue"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action" offset="23" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeDailyStatistics" description="Market Data entry type" offset="24" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshLimitsBanding50" id="50" description="MDIncrementalRefreshLimitsBanding" blockLength="11" semanticType="X" sinceVersion="9">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="32" dimensionType="groupSize">
<field name="HighLimitPrice" id="1149" type="PRICENULL9" description="Upper price threshold for the instrument" offset="0" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL9" description="Lower price threshold for the instrument" offset="8" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL9" description="Differential static value for price banding" offset="16" semanticType="Price"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="24" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="MD Entry sequence number per instrument update" offset="28" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateActionNew" description="Market Data entry update action. In order to delete banding value, high or low limit, the deleted price field is populated with a NULL " semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeLimits" description="Market Data entry type " semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshSessionStatistics51" id="51" description="MDIncrementalRefreshSessionStatistics" blockLength="11" semanticType="X" sinceVersion="9">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="24" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICE9" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="8" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="MD Entry sequence number per instrument update" offset="12" semanticType="int"/>
<field name="OpenCloseSettlFlag" id="286" type="OpenCloseSettlFlag" description="Flag describing IOP and Open Price entries" offset="16" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action " offset="17" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeStatistics" description="Market Data entry type " offset="18" semanticType="char"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Indicative Opening Quantity " offset="19" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="SnapshotFullRefresh52" id="52" description="SnapshotFullRefresh" blockLength="59" semanticType="W" sinceVersion="9">
<field name="LastMsgSeqNumProcessed" id="369" type="uInt32" description="Sequence number of the last Incremental feed packet processed. This value is used to synchronize the snapshot loop with the real-time feed" offset="0" semanticType="SeqNum"/>
<field name="TotNumReports" id="911" type="uInt32" description="Total number of messages replayed in the loop" offset="4" semanticType="int"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="8" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Sequence number of the last Market Data entry processed for the instrument" offset="12" semanticType="int"/>
<field name="TransactTime" id="60" type="uInt64" description="Timestamp of the last event security participated in, sent as number of nanoseconds since Unix epoch" offset="16" semanticType="UTCTimestamp"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="UTC Date and time of last Security Definition add, update or delete on a given Market Data channel" offset="24" semanticType="UTCTimestamp"/>
<field name="TradeDate" id="75" type="LocalMktDate" description="Trade session date sent as number of days since Unix epoch" offset="32" semanticType="LocalMktDate"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current trading state of the instrument" offset="34" semanticType="int"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL9" description="Upper price threshold for the instrument" offset="35" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL9" description="Lower price threshold for the instrument" offset="43" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL9" description="Differential value for price banding" offset="51" semanticType="Price"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="22" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICENULL9" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Market Data entry quantity" offset="8" semanticType="Qty"/>
<field name="NumberOfOrders" id="346" type="Int32NULL" description="Aggregate number of orders at the given price level" offset="12" semanticType="int"/>
<field name="MDPriceLevel" id="1023" type="Int8NULL" description="Aggregate book position" offset="16" semanticType="int"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates the date of trade session corresponding to a statistic entry" offset="17" semanticType="LocalMktDate"/>
<field name="OpenCloseSettlFlag" id="286" type="OpenCloseSettlFlag" description="Flag describing Open Price entry" offset="19" semanticType="int"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="20" semanticType="MultipleCharValue"/>
<field name="MDEntryType" id="269" type="MDEntryType" description="Market Data entry type" offset="21" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="SnapshotFullRefreshOrderBook53" id="53" description="SnapshotFullRefreshOrderBook" blockLength="28" semanticType="W" sinceVersion="9">
<field name="LastMsgSeqNumProcessed" id="369" type="uInt32" description="Sequence number of the last Incremental feed packet processed. This value is used to synchronize the snapshot loop with the real-time feed" offset="0" semanticType="SeqNum"/>
<field name="TotNumReports" id="911" type="uInt32" description="Total number of instruments in the replayed loop" offset="4" semanticType="int"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="8" semanticType="int"/>
<field name="NoChunks" id="37709" type="uInt32" description="Total number of packets that constitutes a single instrument order book" offset="12" semanticType="int"/>
<field name="CurrentChunk" id="37710" type="uInt32" description="Chunk sequence" offset="16" semanticType="int"/>
<field name="TransactTime" id="60" type="uInt64" description="Timestamp of the last event security participated in, sent as number of nanoseconds since Unix epoch" offset="20" semanticType="UTCTimestamp"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="29" dimensionType="groupSize">
<field name="OrderID" id="37" type="uInt64" description="Unique Order ID" offset="0" semanticType="int"/>
<field name="MDOrderPriority" id="37707" type="uInt64NULL" description="Order priority for execution on the order book" offset="8" semanticType="int"/>
<field name="MDEntryPx" id="270" type="PRICE9" description="Order Price" offset="16" semanticType="Price"/>
<field name="MDDisplayQty" id="37706" type="Int32" description="Visible order qty" offset="24" semanticType="Qty"/>
<field name="MDEntryType" id="269" type="MDEntryTypeBook" description="Market Data entry type" offset="28" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDInstrumentDefinitionFuture54" id="54" description="MDInstrumentDefinitionFuture" blockLength="216" semanticType="d" sinceVersion="9">
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="0" semanticType="MultipleCharValue"/>
<field name="TotNumReports" id="911" type="uInt32NULL" description="Total number of instruments in the Replay loop. Used on Replay Feed only " offset="1" semanticType="int"/>
<field name="SecurityUpdateAction" id="980" type="SecurityUpdateAction" description="Last Security update action on Incremental feed, 'D' or 'M' is used when a mid-week deletion or modification (i.e. extension) occurs" offset="5" semanticType="char"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="Timestamp of when the instrument was last added, modified or deleted" offset="6" semanticType="UTCTimestamp"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current state of the instrument. In Security Definition message this tag is available in the Instrument Replay feed only " offset="14" semanticType="int"/>
<field name="ApplID" id="1180" type="Int16" description="The channel ID as defined in the XML Configuration file" offset="15" semanticType="int"/>
<field name="MarketSegmentID" id="1300" type="uInt8" description="Identifies the market segment, populated for all CME Globex instruments" offset="17" semanticType="int"/>
<field name="UnderlyingProduct" id="462" type="uInt8" description="Product complex" offset="18" semanticType="int"/>
<field name="SecurityExchange" id="207" type="SecurityExchange" description="Exchange used to identify a security" offset="19" semanticType="Exchange"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group Code." offset="23" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="The underlying asset code also known as Product Code" offset="29" semanticType="String"/>
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol " offset="35" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Unique instrument ID" offset="55" semanticType="int"/>
<field name="SecurityIDSource" id="22" type="SecurityIDSource" description="Identifies class or source of tag 48-SecurityID value" semanticType="char"/>
<field name="SecurityType" id="167" type="SecurityType" description="Security Type" offset="59" semanticType="String"/>
<field name="CFICode" id="461" type="CFICode" description="ISO standard instrument categorization code" offset="65" semanticType="String"/>
<field name="MaturityMonthYear" id="200" type="MaturityMonthYear" description="This field provides the actual calendar date for contract maturity" offset="71" semanticType="MonthYear"/>
<field name="Currency" id="15" type="Currency" description="Identifies currency used for price" offset="76" semanticType="Currency"/>
<field name="SettlCurrency" id="120" type="Currency" description="Identifies currency used for settlement, if different from trading currency" offset="79" semanticType="Currency"/>
<field name="MatchAlgorithm" id="1142" type="CHAR" description="Matching algorithm " offset="82" semanticType="char"/>
<field name="MinTradeVol" id="562" type="uInt32" description="The minimum trading volume for a security" offset="83" semanticType="Qty"/>
<field name="MaxTradeVol" id="1140" type="uInt32" description="The maximum trading volume for a security" offset="87" semanticType="Qty"/>
<field name="MinPriceIncrement" id="969" type="PRICE9" description="Minimum constant tick for the instrument, sent only if instrument is non-VTT (Variable Tick table) eligible" offset="91" semanticType="Price"/>
<field name="DisplayFactor" id="9787" type="Decimal9" description="Contains the multiplier to convert the CME Globex display price to the conventional price" offset="99" semanticType="float"/>
<field name="MainFraction" id="37702" type="uInt8NULL" description="Price Denominator of Main Fraction" offset="107" semanticType="int"/>
<field name="SubFraction" id="37703" type="uInt8NULL" description="Price Denominator of Sub Fraction" offset="108" semanticType="int"/>
<field name="PriceDisplayFormat" id="9800" type="uInt8NULL" description="Number of decimals in fractional display price" offset="109" semanticType="int"/>
<field name="UnitOfMeasure" id="996" type="UnitOfMeasure" description="Unit of measure for the products' original contract size. This will be populated for all products listed on CME Globex" offset="110" semanticType="String"/>
<field name="UnitOfMeasureQty" id="1147" type="Decimal9NULL" description="This field contains the contract size for each instrument. Used in combination with tag 996-UnitofMeasure" offset="140" semanticType="Qty"/>
<field name="TradingReferencePrice" id="1150" type="PRICENULL9" description="Reference price for prelisted instruments or the last calculated Settlement whether it be Theoretical, Preliminary or a Final Settle of the session." offset="148" semanticType="Price"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="156" semanticType="MultipleCharValue"/>
<field name="OpenInterestQty" id="5792" type="Int32NULL" description="The total open interest for the market at the close of the prior trading session." offset="157" semanticType="Qty"/>
<field name="ClearedVolume" id="5791" type="Int32NULL" description="The total cleared volume of instrument traded during the prior trading session." offset="161" semanticType="Qty"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL9" description="Allowable high limit price for the trading day" offset="165" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL9" description="Allowable low limit price for the trading day" offset="173" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL9" description="Differential value for price banding." offset="181" semanticType="Price"/>
<field name="DecayQuantity" id="5818" type="Int32NULL" description="Indicates the quantity that a contract will decay daily by once the decay start date is reached" offset="189" semanticType="Qty"/>
<field name="DecayStartDate" id="5819" type="LocalMktDate" description="Indicates the date at which a decaying contract will begin to decay" offset="193" semanticType="LocalMktDate"/>
<field name="OriginalContractSize" id="5849" type="Int32NULL" description="Fixed contract value assigned to each product" offset="195" semanticType="Qty"/>
<field name="ContractMultiplier" id="231" type="Int32NULL" description="Number of deliverable units per instrument, e.g., peak days in maturity month or number of calendar days in maturity month" offset="199" semanticType="int"/>
<field name="ContractMultiplierUnit" id="1435" type="Int8NULL" description="Indicates the type of multiplier being applied to the product. Optionally used in combination with tag 231-ContractMultiplier" offset="203" semanticType="int"/>
<field name="FlowScheduleType" id="1439" type="Int8NULL" description="The schedule according to which the electricity is delivered in a physical contract, or priced in a financial contract. Specifies whether the contract is defined according to the Easter Peak, Eastern Off-Peak, Western Peak or Western Off-Peak." offset="204" semanticType="int"/>
<field name="MinPriceIncrementAmount" id="1146" type="PRICENULL9" description="Monetary value equivalent to the minimum price fluctuation" offset="205" semanticType="Price"/>
<field name="UserDefinedInstrument" id="9779" type="UserDefinedInstrument" description="User-defined instruments flag" offset="213" semanticType="char"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates session date corresponding to the settlement price in tag 1150-TradingReferencePrice" offset="214" semanticType="LocalMktDate"/>
<group name="NoEvents" id="864" description="Number of repeating EventType entries" blockLength="9" dimensionType="groupSize">
<field name="EventType" id="865" type="EventType" description="Code to represent the type of event" offset="0" semanticType="int"/>
<field name="EventTime" id="1145" type="uInt64" description="Date and Time of instument Activation or Expiration event sent as number of nanoseconds since Unix epoch" offset="1" semanticType="UTCTimestamp"/>
</group>
<group name="NoMDFeedTypes" id="1141" description="Number of repeating FeedType entries" blockLength="4" dimensionType="groupSize">
<field name="MDFeedType" id="1022" type="MDFeedType" description="Describes a class of service for a given data feed. GBX- Real Book, GBI-Implied Book" offset="0" semanticType="String"/>
<field name="MarketDepth" id="264" type="Int8" description="Book depth" offset="3" semanticType="int"/>
</group>
<group name="NoInstAttrib" id="870" description="Number of repeating InstrAttribType entries" blockLength="4" dimensionType="groupSize">
<field name="InstAttribType" id="871" type="InstAttribType" description="Instrument eligibility attributes" semanticType="int"/>
<field name="InstAttribValue" id="872" type="InstAttribValue" description="Bitmap field of 32 Boolean type instrument eligibility flags" offset="0" semanticType="MultipleCharValue"/>
</group>
<group name="NoLotTypeRules" id="1234" description="Number of entries" blockLength="5" dimensionType="groupSize">
<field name="LotType" id="1093" type="Int8" description="This tag is required to interpret the value in tag 1231-MinLotSize" offset="0" semanticType="int"/>
<field name="MinLotSize" id="1231" type="DecimalQty" description="Minimum quantity accepted for order entry. If tag 1093-LotType=4, this value is the minimum quantity for order entry expressed in the applicable units, specified in tag 996-UnitOfMeasure, e.g. megawatts" offset="1" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="MDInstrumentDefinitionOption55" id="55" description="MDInstrumentDefinitionOption" blockLength="213" semanticType="d" sinceVersion="9">
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="0" semanticType="MultipleCharValue"/>
<field name="TotNumReports" id="911" type="uInt32NULL" description="Total number of instruments in the Replay loop. Used on Replay Feed only " offset="1" semanticType="int"/>
<field name="SecurityUpdateAction" id="980" type="SecurityUpdateAction" description="Last Security update action on Incremental feed, 'D' or 'M' is used when a mid-week deletion or modification (i.e. extension) occurs" offset="5" semanticType="char"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="Timestamp of when the instrument was last added, modified or deleted" offset="6" semanticType="UTCTimestamp"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current state of the instrument. The data is available in the Instrument Replay feed only " offset="14" semanticType="int"/>
<field name="ApplID" id="1180" type="Int16" description="The channel ID as defined in the XML Configuration file" offset="15" semanticType="int"/>
<field name="MarketSegmentID" id="1300" type="uInt8" description="Identifies the market segment, populated for all CME Globex instruments" offset="17" semanticType="int"/>
<field name="UnderlyingProduct" id="462" type="uInt8" description="Indicates the product complex" offset="18" semanticType="int"/>
<field name="SecurityExchange" id="207" type="SecurityExchange" description="Exchange used to identify a security" offset="19" semanticType="Exchange"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group Code " offset="23" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="The underlying asset code also known as Product Code" offset="29" semanticType="String"/>
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol. Previously used as Instrument Group Code " offset="35" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Unique Instrument ID" offset="55" semanticType="int"/>
<field name="SecurityIDSource" id="22" type="SecurityIDSource" description="Identifies class or source of tag 48-SecurityID value" semanticType="char"/>
<field name="SecurityType" id="167" type="SecurityType" description="Security Type" offset="59" semanticType="String"/>
<field name="CFICode" id="461" type="CFICode" description="ISO standard instrument categorization code" offset="65" semanticType="String"/>
<field name="PutOrCall" id="201" type="PutOrCall" description="Indicates whether an option instrument is a put or call" offset="71" semanticType="int"/>
<field name="MaturityMonthYear" id="200" type="MaturityMonthYear" description="This field provides the actual calendar date for contract maturity" offset="72" semanticType="MonthYear"/>
<field name="Currency" id="15" type="Currency" description="Identifies currency used for price" offset="77" semanticType="Currency"/>
<field name="StrikePrice" id="202" type="PRICENULL9" description="Strike Price for an option instrument" offset="80" semanticType="Price"/>
<field name="StrikeCurrency" id="947" type="Currency" description="Currency in which the StrikePrice is denominated" offset="88" semanticType="Currency"/>
<field name="SettlCurrency" id="120" type="Currency" description="Identifies currency used for settlement, if different from trade price currency" offset="91" semanticType="Currency"/>
<field name="MinCabPrice" id="9850" type="PRICENULL9" description="Defines cabinet price for outright options products" offset="94" semanticType="Price"/>
<field name="MatchAlgorithm" id="1142" type="CHAR" description="Matching algorithm" offset="102" semanticType="char"/>
<field name="MinTradeVol" id="562" type="uInt32" description="The minimum trading volume for a security." offset="103" semanticType="Qty"/>
<field name="MaxTradeVol" id="1140" type="uInt32" description="The maximum trading volume for a security." offset="107" semanticType="Qty"/>
<field name="MinPriceIncrement" id="969" type="PRICENULL9" description="Minimum constant tick for the instrument" offset="111" semanticType="Price"/>
<field name="MinPriceIncrementAmount" id="1146" type="PRICENULL9" description="Monetary value equivalent to the minimum price fluctuation" offset="119" semanticType="Price"/>
<field name="DisplayFactor" id="9787" type="Decimal9" description="Contains the multiplier to convert the CME Globex display price to the conventional price" offset="127" semanticType="float"/>
<field name="TickRule" id="6350" type="Int8NULL" description="VTT code referencing variable tick table " offset="135" semanticType="int"/>
<field name="MainFraction" id="37702" type="uInt8NULL" description="Price Denominator of Main Fraction" offset="136" semanticType="int"/>
<field name="SubFraction" id="37703" type="uInt8NULL" description="Price Denominator of Sub Fraction" offset="137" semanticType="int"/>
<field name="PriceDisplayFormat" id="9800" type="uInt8NULL" description="Number of decimals in fractional display price" offset="138" semanticType="int"/>
<field name="UnitOfMeasure" id="996" type="UnitOfMeasure" description="Unit of measure for the products' original contract size. This will be populated for all products listed on CME Globex" offset="139" semanticType="String"/>
<field name="UnitOfMeasureQty" id="1147" type="Decimal9NULL" description="This field contains the contract size for each instrument. Used in combination with tag 996-UnitofMeasure" offset="169" semanticType="Qty"/>
<field name="TradingReferencePrice" id="1150" type="PRICENULL9" description="Reference price - the most recently available Settlement whether it be Theoretical, Preliminary or a Final Settle of the session" offset="177" semanticType="Price"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="185" semanticType="MultipleCharValue"/>
<field name="ClearedVolume" id="5791" type="Int32NULL" description="The total cleared volume of instrument traded during the prior trading session" offset="186" semanticType="Qty"/>
<field name="OpenInterestQty" id="5792" type="Int32NULL" description="The total open interest for the market at the close of the prior trading session." offset="190" semanticType="Qty"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL9" description="Allowable low limit price for the trading day " offset="194" semanticType="Price"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL9" description="Allowable high limit price for the trading day" offset="202" semanticType="Price"/>
<field name="UserDefinedInstrument" id="9779" type="UserDefinedInstrument" description="User-defined instruments flag" offset="210" semanticType="char"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates session date corresponding to the settlement price in tag 1150-TradingReferencePrice" offset="211" semanticType="LocalMktDate"/>
<group name="NoEvents" id="864" description="Number of EventType entries" blockLength="9" dimensionType="groupSize">
<field name="EventType" id="865" type="EventType" description="Code to represent the type of event" offset="0" semanticType="int"/>
<field name="EventTime" id="1145" type="uInt64" description="Date and Time of instument Activation or Expiration event sent as number of nanoseconds since Unix epoch" offset="1" semanticType="UTCTimestamp"/>
</group>
<group name="NoMDFeedTypes" id="1141" description="Number of FeedType entries" blockLength="4" dimensionType="groupSize">
<field name="MDFeedType" id="1022" type="MDFeedType" description="Describes a class of service for a given data feed. GBX- Real Book, GBI-Implied Book" offset="0" semanticType="String"/>
<field name="MarketDepth" id="264" type="Int8" description="Book depth" offset="3" semanticType="int"/>
</group>
<group name="NoInstAttrib" id="870" description="Number of InstrAttribType entries" blockLength="4" dimensionType="groupSize">
<field name="InstAttribType" id="871" type="InstAttribType" description="Instrument Eligibility Attributes" semanticType="int"/>
<field name="InstAttribValue" id="872" type="InstAttribValue" description="Bitmap field of 32 Boolean type Instrument eligibility flags" offset="0" semanticType="MultipleCharValue"/>
</group>
<group name="NoLotTypeRules" id="1234" description="Number of entries" blockLength="5" dimensionType="groupSize">
<field name="LotType" id="1093" type="Int8" description="This tag is required to interpret the value in tag 1231-MinLotSize" offset="0" semanticType="int"/>
<field name="MinLotSize" id="1231" type="DecimalQty" description="Minimum quantity accepted for order entry. If tag 1093-LotType=4, this value is the minimum quantity for order entry expressed in the applicable units, specified in tag 996-UnitOfMeasure, e.g. megawatts" offset="1" semanticType="Qty"/>
</group>
<group name="NoUnderlyings" id="711" description="Number of underlying instruments" blockLength="24" dimensionType="groupSize">
<field name="UnderlyingSecurityID" id="309" type="Int32" description="Unique Instrument ID as qualified by the exchange per tag 305-UnderlyingSecurityIDSource" offset="0" semanticType="int"/>
<field name="UnderlyingSecurityIDSource" id="305" type="SecurityIDSource" description="This value is always '8' for CME" semanticType="char"/>
<field name="UnderlyingSymbol" id="311" type="UnderlyingSymbol" description="Underlying Instrument Symbol (Contract Name)" offset="4" semanticType="String"/>
</group>
<group name="NoRelatedInstruments" id="1647" description="Number of related instruments group" blockLength="24" dimensionType="groupSize">
<field name="RelatedSecurityID" id="1650" type="Int32" description="Related Security ID" offset="0" semanticType="int"/>
<field name="RelatedSecurityIDSource" id="1651" type="SecurityIDSource" description="Related Security ID source" semanticType="char"/>
<field name="RelatedSymbol" id="1649" type="Symbol" description="Related instrument Symbol" offset="4" semanticType="String"/>
</group>
</ns2:message>
<ns2:message name="MDInstrumentDefinitionSpread56" id="56" description="MDInstrumentDefinitionSpread" blockLength="195" semanticType="d" sinceVersion="9">
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="0" semanticType="MultipleCharValue"/>
<field name="TotNumReports" id="911" type="uInt32NULL" description="Total number of instruments in the Replay loop. Used on Replay Feed only" offset="1" semanticType="int"/>
<field name="SecurityUpdateAction" id="980" type="SecurityUpdateAction" description="Last Security update action on Incremental feed, 'D' or 'M' is used when a mid-week deletion or modification (i.e. extension) occurs" offset="5" semanticType="char"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="Timestamp of when the instrument was last added, modified or deleted" offset="6" semanticType="UTCTimestamp"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current state of the instrument. The data is available in the Instrument Replay feed only" offset="14" semanticType="int"/>
<field name="ApplID" id="1180" type="Int16" description="The channel ID as defined in the XML Configuration file" offset="15" semanticType="int"/>
<field name="MarketSegmentID" id="1300" type="uInt8" description="Identifies the market segment, populated for all CME Globex instruments" offset="17" semanticType="int"/>
<field name="UnderlyingProduct" id="462" type="uInt8NULL" description="Product complex" offset="18" semanticType="int"/>
<field name="SecurityExchange" id="207" type="SecurityExchange" description="Exchange used to identify a security" offset="19" semanticType="Exchange"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group Code" offset="23" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="The underlying asset code also known as Product Code" offset="29" semanticType="String"/>
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol. Previously used as Group Code " offset="35" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Unique instrument ID" offset="55" semanticType="int"/>
<field name="SecurityIDSource" id="22" type="SecurityIDSource" description="Identifies class or source of the security ID (Tag 48) value" semanticType="char"/>
<field name="SecurityType" id="167" type="SecurityType" description="Security Type" offset="59" semanticType="String"/>
<field name="CFICode" id="461" type="CFICode" description="ISO standard instrument categorization code" offset="65" semanticType="String"/>
<field name="MaturityMonthYear" id="200" type="MaturityMonthYear" description="This field provides the actual calendar date for contract maturity" offset="71" semanticType="MonthYear"/>
<field name="Currency" id="15" type="Currency" description="Identifies currency used for price" offset="76" semanticType="Currency"/>
<field name="SecuritySubType" id="762" type="SecuritySubType" description="Strategy type" offset="79" semanticType="String"/>
<field name="UserDefinedInstrument" id="9779" type="UserDefinedInstrument" description="User-defined instruments flag" offset="84" semanticType="char"/>
<field name="MatchAlgorithm" id="1142" type="CHAR" description="Matching algorithm" offset="85" semanticType="char"/>
<field name="MinTradeVol" id="562" type="uInt32" description="The minimum trading volume for a security" offset="86" semanticType="Qty"/>
<field name="MaxTradeVol" id="1140" type="uInt32" description="The maximum trading volume for a security" offset="90" semanticType="Qty"/>
<field name="MinPriceIncrement" id="969" type="PRICENULL9" description="Minimum constant tick for the instrument, sent only if instrument is non-VTT (Variable Tick table) eligible" offset="94" semanticType="Price"/>
<field name="DisplayFactor" id="9787" type="Decimal9" description="Contains the multiplier to convert the CME Globex display price to the conventional price" offset="102" semanticType="float"/>
<field name="PriceDisplayFormat" id="9800" type="uInt8NULL" description="Number of decimals in fractional display price" offset="110" semanticType="int"/>
<field name="PriceRatio" id="5770" type="PRICENULL9" description="Used for price calculation in spread and leg pricing" offset="111" semanticType="Price"/>
<field name="TickRule" id="6350" type="Int8NULL" description="Tick Rule " offset="119" semanticType="int"/>
<field name="UnitOfMeasure" id="996" type="UnitOfMeasure" description="Unit of measure for the products' original contract size" offset="120" semanticType="String"/>
<field name="TradingReferencePrice" id="1150" type="PRICENULL9" description="Reference price - the most recently available Settlement whether it be Theoretical, Preliminary or a Final Settle of the session" offset="150" semanticType="Price"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="158" semanticType="MultipleCharValue"/>
<field name="OpenInterestQty" id="5792" type="Int32NULL" description="The total open interest for the market at the close of the prior trading session" offset="159" semanticType="Qty"/>
<field name="ClearedVolume" id="5791" type="Int32NULL" description="The total cleared volume of instrument traded during the prior trading session" offset="163" semanticType="Qty"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL9" description="Allowable high limit price for the trading day" offset="167" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL9" description="Allowable low limit price for the trading day" offset="175" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL9" description="Differential value for price banding" offset="183" semanticType="Price"/>
<field name="MainFraction" id="37702" type="uInt8NULL" description="Price Denominator of Main Fraction" offset="191" semanticType="int"/>
<field name="SubFraction" id="37703" type="uInt8NULL" description="Price Denominator of Sub Fraction" offset="192" semanticType="int"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates session date corresponding to the settlement price in tag 1150-TradingReferencePrice" offset="193" semanticType="LocalMktDate"/>
<group name="NoEvents" id="864" description="Number of repeating EventType entries" blockLength="9" dimensionType="groupSize">
<field name="EventType" id="865" type="EventType" description="Code to represent the type of event" offset="0" semanticType="int"/>
<field name="EventTime" id="1145" type="uInt64" description="Date and time of instument Activation or Expiration event sent as number of nanoseconds since Unix epoch" offset="1" semanticType="UTCTimestamp"/>
</group>
<group name="NoMDFeedTypes" id="1141" description="Number of FeedType entries" blockLength="4" dimensionType="groupSize">
<field name="MDFeedType" id="1022" type="MDFeedType" description="Describes a class of service for a given data feed. GBX- Real Book, GBI-Implied Book" offset="0" semanticType="String"/>
<field name="MarketDepth" id="264" type="Int8" description="Identifies the depth of book" offset="3" semanticType="int"/>
</group>
<group name="NoInstAttrib" id="870" description="Number of InstrAttribType entries" blockLength="4" dimensionType="groupSize">
<field name="InstAttribType" id="871" type="InstAttribType" description="Instrument Eligibility Attributes" semanticType="int"/>
<field name="InstAttribValue" id="872" type="InstAttribValue" description="Bitmap field of 32 Boolean type Instrument eligibility flags" offset="0" semanticType="MultipleCharValue"/>
</group>
<group name="NoLotTypeRules" id="1234" description="Number of entries" blockLength="5" dimensionType="groupSize">
<field name="LotType" id="1093" type="Int8" description="This tag is required to interpret the value in tag 1231-MinLotSize" offset="0" semanticType="int"/>
<field name="MinLotSize" id="1231" type="DecimalQty" description="Minimum quantity accepted for order entry. If tag 1093-LotType=4, this value is the minimum quantity for order entry expressed in the applicable units, specified in tag 996-UnitOfMeasure, e.g. megawatts" offset="1" semanticType="Qty"/>
</group>
<group name="NoLegs" id="555" description="Number of Leg entries" blockLength="18" dimensionType="groupSize">
<field name="LegSecurityID" id="602" type="Int32" description="Leg Security ID" offset="0" semanticType="int"/>
<field name="LegSecurityIDSource" id="603" type="SecurityIDSource" description="Identifies source of tag 602-LegSecurityID value" semanticType="char"/>
<field name="LegSide" id="624" type="LegSide" description="Leg side" offset="4" semanticType="int"/>
<field name="LegRatioQty" id="623" type="Int8" description="Leg ratio of quantity for this individual leg relative to the entire multi-leg instrument" offset="5" semanticType="Qty"/>
<field name="LegPrice" id="566" type="PRICENULL9" description="Price for the future leg of a UDS Covered instrument " offset="6" semanticType="Price"/>
<field name="LegOptionDelta" id="1017" type="DecimalQty" description="Delta used to calculate the quantity of futures used to cover the option or option strategy" offset="14" semanticType="Qty"/>
</group>
</ns2:message>
</ns2:messageSchema>
+42
View File
@@ -0,0 +1,42 @@
#!/bin/bash
# To update templates_FixBinary.xml:
# ----------------------------------
# Download the new template from one of the above:
# ftp://ftp.cmegroup.com/SBEFix/Production/Templates/templates_FixBinary.xml
# ftp://ftp.cmegroup.com/SBEFix/NRCert/Templates/templates_FixBinary.xml
# ftp://ftp.cmegroup.com/SBEFix/Cert/Templates/templates_FixBinary.xml
# And copy it to the corresponding directory (prod, nrcert, cert)
# ----------------------------------
# To generate CPP
# ---------------------------
# Obtain sbe-all-[version].jar from sbe-logic github.
# Pre-built packages are available at https://search.maven.org/search?q=g:uk.co.real-logic%20sbe
# Run the docker command below which run a java docker container and execute the jar.
RELEASE_TYPE=${1:-prod}
SBE_VERSION=1.20.4
SBE_BIN=sbe-all-$SBE_VERSION.jar
MY_DIR="$(dirname "$(readlink -f "$0")")"
cd $MY_DIR
rm -rf src
mkdir -p src
docker run --rm -it -w $PWD \
-v /home:/home \
-v /etc/group:/etc/group \
-v /etc/passwd:/etc/passwd \
-u $UID \
java \
java -Dsbe.output.dir=src \
-Dsbe.generate.ir="false" \
-Dsbe.target.namespace="mdp3" \
-Dsbe.target.language=cpp \
-jar ./sbe-all-$SBE_VERSION.jar \
$RELEASE_TYPE/templates_FixBinary.xml
mv src/mdp3/* src/
rmdir src/mdp3/
@@ -0,0 +1,955 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:messageSchema xmlns:ns2="http://www.fixprotocol.org/ns/simple/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" package="mktdata" id="1" version="9" semanticVersion="FIX5SP2" description="20180308" byteOrder="littleEndian" xsi:schemaLocation="http://www.fixtradingcommunity.org/pg/file/fplpo/read/1196759/simple-binary-encoding-rc2xsd SimpleBinary-RC2.xsd">
<types>
<type name="Asset" description="Asset" length="6" primitiveType="char" semanticType="String"/>
<type name="CFICode" length="6" primitiveType="char" semanticType="String"/>
<type name="CHAR" description="char" primitiveType="char"/>
<type name="Currency" description="Currency" length="3" primitiveType="char" semanticType="Currency"/>
<type name="InstAttribType" description="Eligibility" presence="constant" primitiveType="int8">24</type>
<type name="Int16" description="int16" primitiveType="int16"/>
<type name="Int32" description="int32" primitiveType="int32"/>
<type name="Int32NULL" presence="optional" nullValue="2147483647" primitiveType="int32"/>
<type name="Int8" description="int8" primitiveType="int8"/>
<type name="Int8NULL" description="int8 optional" presence="optional" nullValue="127" primitiveType="int8"/>
<type name="LocalMktDate" presence="optional" nullValue="65535" primitiveType="uint16" semanticType="LocalMktDate"/>
<type name="MDEntryTypeChannelReset" description="Channel Reset message entry type" presence="constant" primitiveType="char">J</type>
<type name="MDEntryTypeLimits" description="MDEntryTypeLimits" presence="constant" primitiveType="char">g</type>
<type name="MDEntryTypeTrade" description="MDEntryTypeTrade" presence="constant" primitiveType="char">2</type>
<type name="MDEntryTypeVol" description="MDEntryTypeVol" presence="constant" primitiveType="char">e</type>
<type name="MDFeedType" length="3" primitiveType="char" semanticType="String"/>
<type name="MDUpdateActionNew" description="MDUpdateActionNew" presence="constant" primitiveType="int8">0</type>
<type name="MDUpdateTypeNew" description="MDUpdateTypeNew" presence="constant" primitiveType="int8">0</type>
<type name="QuoteReqId" length="23" primitiveType="char" semanticType="String"/>
<type name="SecurityExchange" length="4" primitiveType="char" semanticType="Exchange"/>
<type name="SecurityGroup" length="6" primitiveType="char" semanticType="String"/>
<type name="SecurityIDSource" description="SecurityIDSource" presence="constant" length="1" primitiveType="char" semanticType="char">8</type>
<type name="SecuritySubType" length="5" primitiveType="char" semanticType="String"/>
<type name="SecurityType" description="SecurityType" length="6" primitiveType="char" semanticType="String"/>
<type name="Symbol" description="Symbol" length="20" primitiveType="char" semanticType="String"/>
<type name="Text" description="Text" length="180" primitiveType="char" semanticType="String"/>
<type name="UnderlyingSymbol" length="20" primitiveType="char" semanticType="String"/>
<type name="UnitOfMeasure" length="30" primitiveType="char" semanticType="String"/>
<type name="UserDefinedInstrument" length="1" primitiveType="char" semanticType="char"/>
<type name="uInt32" description="uInt32" primitiveType="uint32"/>
<type name="uInt32NULL" description="uInt32 optional" presence="optional" nullValue="4294967295" primitiveType="uint32"/>
<type name="uInt64" description="uInt64" primitiveType="uint64"/>
<type name="uInt64NULL" description="uInt64 optional" presence="optional" nullValue="18446744073709551615" primitiveType="uint64" sinceVersion="7"/>
<type name="uInt8" description="uInt8" primitiveType="uint8"/>
<type name="uInt8NULL" description="uInt8NULL" presence="optional" nullValue="255" primitiveType="uint8"/>
<composite name="Decimal9" description="Decimal with constant exponent -9" sinceVersion="9">
<type name="mantissa" description="mantissa" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-9</type>
</composite>
<composite name="Decimal9NULL" description="Optional Decimal with constant exponent -9 " sinceVersion="9">
<type name="mantissa" description="mantissa" presence="optional" nullValue="9223372036854775807" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-9</type>
</composite>
<composite name="DecimalQty" description="A number representing quantity" semanticType="Qty">
<type name="mantissa" description="mantissa " presence="optional" nullValue="2147483647" primitiveType="int32"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-4</type>
</composite>
<composite name="FLOAT" description="Decimal">
<type name="mantissa" description="mantissa" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-7</type>
</composite>
<composite name="MaturityMonthYear" description="Year, Month and Date" semanticType="MonthYear">
<type name="year" description="YYYY" presence="optional" nullValue="65535" primitiveType="uint16"/>
<type name="month" description="MM" presence="optional" nullValue="255" primitiveType="uint8"/>
<type name="day" description="DD" presence="optional" nullValue="255" primitiveType="uint8"/>
<type name="week" description="WW" presence="optional" nullValue="255" primitiveType="uint8"/>
</composite>
<composite name="PRICE" description="PRICE">
<type name="mantissa" description="mantissa" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-7</type>
</composite>
<composite name="PRICE9" description="Price with constant exponent -9" sinceVersion="9">
<type name="mantissa" description="mantissa" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-9</type>
</composite>
<composite name="PRICENULL" description="Price NULL">
<type name="mantissa" description="mantissa" presence="optional" nullValue="9223372036854775807" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-7</type>
</composite>
<composite name="PRICENULL9" description="Optional Price with constant exponent -9" sinceVersion="9">
<type name="mantissa" description="mantissa" presence="optional" nullValue="9223372036854775807" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-9</type>
</composite>
<composite name="groupSize" description="Repeating group dimensions" semanticType="NumInGroup">
<type name="blockLength" primitiveType="uint16"/>
<type name="numInGroup" primitiveType="uint8"/>
</composite>
<composite name="groupSize8Byte" description="8 Byte aligned repeating group dimensions" semanticType="NumInGroup">
<type name="blockLength" description="Length" primitiveType="uint16"/>
<type name="numInGroup" description="NumInGroup" offset="7" primitiveType="uint8"/>
</composite>
<composite name="groupSizeEncoding" description="Repeating group dimensions">
<type name="blockLength" primitiveType="uint16" semanticType="Length"/>
<type name="numInGroup" primitiveType="uint16" semanticType="NumInGroup"/>
</composite>
<composite name="messageHeader" description="Template ID and length of message root">
<type name="blockLength" primitiveType="uint16"/>
<type name="templateId" primitiveType="uint16"/>
<type name="schemaId" primitiveType="uint16"/>
<type name="version" primitiveType="uint16"/>
</composite>
<enum name="AggressorSide" encodingType="uInt8NULL">
<validValue name="NoAggressor" description="No Aggressor">0</validValue>
<validValue name="Buy" description="Buy">1</validValue>
<validValue name="Sell" description="Sell">2</validValue>
</enum>
<enum name="EventType" encodingType="uInt8">
<validValue name="Activation" description="Activation">5</validValue>
<validValue name="LastEligibleTradeDate" description="Last Eligible Trade Date">7</validValue>
</enum>
<enum name="HaltReason" encodingType="uInt8">
<validValue name="GroupSchedule" description="Group Schedule">0</validValue>
<validValue name="SurveillanceIntervention" description="Surveillance Intervention ">1</validValue>
<validValue name="MarketEvent" description="Market Event ">2</validValue>
<validValue name="InstrumentActivation" description="Instrument Activation">3</validValue>
<validValue name="InstrumentExpiration" description="Instrument Expiration">4</validValue>
<validValue name="Unknown" description="Unknown">5</validValue>
<validValue name="RecoveryInProcess" description="Recovery In Process" sinceVersion="3">6</validValue>
</enum>
<enum name="LegSide" encodingType="uInt8">
<validValue name="BuySide" description="Buy Side">1</validValue>
<validValue name="SellSide" description="Sell Side">2</validValue>
</enum>
<enum name="MDEntryType" encodingType="CHAR">
<validValue name="Bid" description="Bid">0</validValue>
<validValue name="Offer" description="Offer">1</validValue>
<validValue name="Trade" description="Trade">2</validValue>
<validValue name="OpenPrice" description="Open Price">4</validValue>
<validValue name="SettlementPrice" description="Settlement Price">6</validValue>
<validValue name="TradingSessionHighPrice" description="Trading Session High Price">7</validValue>
<validValue name="TradingSessionLowPrice" description="Trading Session Low Price">8</validValue>
<validValue name="ClearedVolume" description="Cleared Volume">B</validValue>
<validValue name="OpenInterest" description="Open Interest">C</validValue>
<validValue name="ImpliedBid" description="Implied Bid">E</validValue>
<validValue name="ImpliedOffer" description="Implied Offer">F</validValue>
<validValue name="BookReset" description="Book Reset">J</validValue>
<validValue name="SessionHighBid" description="Session High Bid">N</validValue>
<validValue name="SessionLowOffer" description="Session Low Offer">O</validValue>
<validValue name="FixingPrice" description="Fixing Price">W</validValue>
<validValue name="ElectronicVolume" description="Electronic Volume">e</validValue>
<validValue name="ThresholdLimitsandPriceBandVariation" description="Threshold Limits and Price Band Variation">g</validValue>
</enum>
<enum name="MDEntryTypeBook" encodingType="CHAR">
<validValue name="Bid" description="Bid">0</validValue>
<validValue name="Offer" description="Offer">1</validValue>
<validValue name="ImpliedBid" description="Implied Bid">E</validValue>
<validValue name="ImpliedOffer" description="Implied Offer">F</validValue>
<validValue name="BookReset" description="Book Reset">J</validValue>
</enum>
<enum name="MDEntryTypeDailyStatistics" encodingType="CHAR">
<validValue name="SettlementPrice" description="Settlement Price">6</validValue>
<validValue name="ClearedVolume" description="Cleared Volume">B</validValue>
<validValue name="OpenInterest" description="Open Interest">C</validValue>
<validValue name="FixingPrice" description="Fixing Price">W</validValue>
</enum>
<enum name="MDEntryTypeStatistics" encodingType="CHAR">
<validValue name="OpenPrice" description="Open Price">4</validValue>
<validValue name="HighTrade" description="High Trade">7</validValue>
<validValue name="LowTrade" description="Low Trade">8</validValue>
<validValue name="HighestBid" description="Highest Bid">N</validValue>
<validValue name="LowestOffer" description="Lowest Offer">O</validValue>
</enum>
<enum name="MDUpdateAction" encodingType="uInt8">
<validValue name="New" description="New">0</validValue>
<validValue name="Change" description="Change">1</validValue>
<validValue name="Delete" description="Delete">2</validValue>
<validValue name="DeleteThru" description="Delete Thru">3</validValue>
<validValue name="DeleteFrom" description="Delete From">4</validValue>
<validValue name="Overlay" description="Overlay">5</validValue>
</enum>
<enum name="OpenCloseSettlFlag" encodingType="uInt8NULL">
<validValue name="DailyOpenPrice" description="Daily Open Price">0</validValue>
<validValue name="IndicativeOpeningPrice" description="Indicative Opening Price">5</validValue>
</enum>
<enum name="OrderUpdateAction" encodingType="uInt8" sinceVersion="7">
<validValue name="New" description="New">0</validValue>
<validValue name="Update" description="Update">1</validValue>
<validValue name="Delete" description="Delete">2</validValue>
</enum>
<enum name="PutOrCall" encodingType="uInt8" sinceVersion="3">
<validValue name="Put" description="Put Option">0</validValue>
<validValue name="Call" description="Call Option">1</validValue>
</enum>
<enum name="SecurityTradingEvent" encodingType="uInt8">
<validValue name="NoEvent" description="No Event">0</validValue>
<validValue name="NoCancel" description="No Cancel">1</validValue>
<validValue name="ResetStatistics" description="Reset Statistics">4</validValue>
<validValue name="ImpliedMatchingON" description="Implied Matching ON">5</validValue>
<validValue name="ImpliedMatchingOFF" description="Implied Matching OFF">6</validValue>
</enum>
<enum name="SecurityTradingStatus" encodingType="uInt8NULL">
<validValue name="TradingHalt" description="Trading Halt">2</validValue>
<validValue name="Close" description="Close">4</validValue>
<validValue name="NewPriceIndication" description="New Price Indication">15</validValue>
<validValue name="ReadyToTrade" description="Ready To Trade">17</validValue>
<validValue name="NotAvailableForTrading" description="Not Available For Trading">18</validValue>
<validValue name="UnknownorInvalid" description="Unknown or Invalid">20</validValue>
<validValue name="PreOpen" description="Pre Open">21</validValue>
<validValue name="PreCross" description="Pre Cross">24</validValue>
<validValue name="Cross" description="Cross">25</validValue>
<validValue name="PostClose" description="Post Close">26</validValue>
<validValue name="NoChange" description="No Change">103</validValue>
</enum>
<enum name="SecurityUpdateAction" encodingType="CHAR">
<validValue name="Add" description="Add">A</validValue>
<validValue name="Delete" description="Delete">D</validValue>
<validValue name="Modify" description="Modify">M</validValue>
</enum>
<set name="InstAttribValue" encodingType="uInt32">
<choice name="ElectronicMatchEligible" description="1=Electronic Match Eligible">0</choice>
<choice name="OrderCrossEligible" description="1=Order Cross Eligible">1</choice>
<choice name="BlockTradeEligible" description="1=Block Trade Eligible">2</choice>
<choice name="EFPEligible" description="1=EFP Eligible">3</choice>
<choice name="EBFEligible" description="1=EBF Eligible">4</choice>
<choice name="EFSEligible" description="1=EFS Eligible">5</choice>
<choice name="EFREligible" description="1=EFR Eligible">6</choice>
<choice name="OTCEligible" description="1=OTC Eligible">7</choice>
<choice name="iLinkIndicativeMassQuotingEligible" description="1=iLink Indicative Mass Quoting Eligible">8</choice>
<choice name="NegativeStrikeEligible" description="1=Negative Strike Eligible">9</choice>
<choice name="NegativePriceOutrightEligible" description="1=Negative Price Outright Eligible">10</choice>
<choice name="IsFractional" description="1=Indicates product has fractional display price">11</choice>
<choice name="VolatilityQuotedOption" description="1=Volatility Quoted Option">12</choice>
<choice name="RFQCrossEligible" description="1=RFQ Cross Eligible">13</choice>
<choice name="ZeroPriceOutrightEligible" description="1=Zero Price Outright Eligible">14</choice>
<choice name="DecayingProductEligibility" description="1=Decaying Product Eligibility">15</choice>
<choice name="VariableProductEligibility" description="1=Variable Product Eligibility">16</choice>
<choice name="DailyProductEligibility" description="1=Daily Product Eligibility">17</choice>
<choice name="GTOrdersEligibility" description="1=GT Orders Eligibility">18</choice>
<choice name="ImpliedMatchingEligibility" description="1=Implied Matching Eligibility">19</choice>
<choice name="TriangulationEligible" description="1=Triangulation Eligible" sinceVersion="9">20</choice>
<choice name="VariableCabEligible" description="1=Variable Cab Eligible" sinceVersion="9">21</choice>
</set>
<set name="MatchEventIndicator" encodingType="uInt8">
<choice name="LastTradeMsg" description="1=Last trade message for the event, 0=Not last">0</choice>
<choice name="LastVolumeMsg" description="1=Last electronic volume message, 0=Not last">1</choice>
<choice name="LastQuoteMsg" description="1=Last real quote message, 0=Not last">2</choice>
<choice name="LastStatsMsg" description="1=Last statistics message, 0=Not last">3</choice>
<choice name="LastImpliedMsg" description="1=Last implied quote message, 0=Not last">4</choice>
<choice name="RecoveryMsg" description="1=Message is sent during recovery process">5</choice>
<choice name="Reserved" description="0=Reserved for future use">6</choice>
<choice name="EndOfEvent" description="1=Last message for the event, 0=Not last">7</choice>
</set>
<set name="SettlPriceType" encodingType="uInt8">
<choice name="FinalDaily" description="1=FinalDaily, 0=Preliminary">0</choice>
<choice name="Actual" description="1=Actual, 0=Theoretically Calculated">1</choice>
<choice name="Rounded" description="1=Rounded, 0=Non-Rounded or Undefined">2</choice>
<choice name="Intraday" description="1=Intraday, 0=Undefined" sinceVersion="4">3</choice>
<choice name="ReservedBits" description="Bits 4-6 are reserved">4</choice>
<choice name="NullValue" description="1=Entire set is NULL, 0=not NULL">7</choice>
</set>
</types>
<ns2:message name="ChannelReset4" id="4" description="ChannelReset" blockLength="9" semanticType="X">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="2" dimensionType="groupSize">
<field name="MDUpdateAction" id="279" type="MDUpdateTypeNew" description="Market Data update action" sinceVersion="2" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeChannelReset" description="Market Data entry type " semanticType="char"/>
<field name="ApplID" id="1180" type="Int16" description="Indicates the channel ID as defined in the XML configuration file" offset="0" sinceVersion="3" semanticType="int"/>
</group>
</ns2:message>
<ns2:message name="AdminHeartbeat12" id="12" description="AdminHeartbeat" blockLength="0" semanticType="0"/>
<ns2:message name="AdminLogin15" id="15" description="AdminLogin" blockLength="1" semanticType="A">
<field name="HeartBtInt" id="108" type="Int8" description="Heartbeat interval (seconds)" offset="0" semanticType="int"/>
</ns2:message>
<ns2:message name="AdminLogout16" id="16" description="AdminLogout" blockLength="180" semanticType="5">
<field name="Text" id="58" type="Text" description="Free format text string. May include logout confirmation or reason for logout" offset="0" semanticType="String"/>
</ns2:message>
<ns2:message name="MDInstrumentDefinitionFuture27" id="27" description="MDInstrumentDefinitionFuture" blockLength="216" semanticType="d" sinceVersion="2">
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="0" semanticType="MultipleCharValue"/>
<field name="TotNumReports" id="911" type="uInt32NULL" description="Total number of instruments in the Replay loop. Used on Replay Feed only " offset="1" semanticType="int"/>
<field name="SecurityUpdateAction" id="980" type="SecurityUpdateAction" description="Last Security update action on Incremental feed, 'D' or 'M' is used when a mid-week deletion or modification (i.e. extension) occurs" offset="5" semanticType="char"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="Timestamp of when the instrument was last added, modified or deleted" offset="6" semanticType="UTCTimestamp"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current state of the instrument. In Security Definition message this tag is available in the Instrument Replay feed only " offset="14" semanticType="int"/>
<field name="ApplID" id="1180" type="Int16" description="The channel ID as defined in the XML Configuration file" offset="15" semanticType="int"/>
<field name="MarketSegmentID" id="1300" type="uInt8" description="Identifies the market segment, populated for all CME Globex instruments" offset="17" semanticType="int"/>
<field name="UnderlyingProduct" id="462" type="uInt8" description="Product complex" offset="18" semanticType="int"/>
<field name="SecurityExchange" id="207" type="SecurityExchange" description="Exchange used to identify a security" offset="19" semanticType="Exchange"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group Code." offset="23" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="The underlying asset code also known as Product Code" offset="29" semanticType="String"/>
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol " offset="35" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Unique instrument ID" offset="55" semanticType="int"/>
<field name="SecurityIDSource" id="22" type="SecurityIDSource" description="Identifies class or source of tag 48-SecurityID value" semanticType="char"/>
<field name="SecurityType" id="167" type="SecurityType" description="Security Type" offset="59" semanticType="String"/>
<field name="CFICode" id="461" type="CFICode" description="ISO standard instrument categorization code" offset="65" semanticType="String"/>
<field name="MaturityMonthYear" id="200" type="MaturityMonthYear" description="This field provides the actual calendar date for contract maturity" offset="71" semanticType="MonthYear"/>
<field name="Currency" id="15" type="Currency" description="Identifies currency used for price" offset="76" semanticType="Currency"/>
<field name="SettlCurrency" id="120" type="Currency" description="Identifies currency used for settlement, if different from trading currency" offset="79" semanticType="Currency"/>
<field name="MatchAlgorithm" id="1142" type="CHAR" description="Matching algorithm " offset="82" semanticType="char"/>
<field name="MinTradeVol" id="562" type="uInt32" description="The minimum trading volume for a security" offset="83" semanticType="Qty"/>
<field name="MaxTradeVol" id="1140" type="uInt32" description="The maximum trading volume for a security" offset="87" semanticType="Qty"/>
<field name="MinPriceIncrement" id="969" type="PRICE" description="Minimum constant tick for the instrument, sent only if instrument is non-VTT (Variable Tick table) eligible" offset="91" semanticType="Price"/>
<field name="DisplayFactor" id="9787" type="FLOAT" description="Contains the multiplier to convert the CME Globex display price to the conventional price" offset="99" semanticType="float"/>
<field name="MainFraction" id="37702" type="uInt8NULL" description="Price Denominator of Main Fraction" offset="107" semanticType="int"/>
<field name="SubFraction" id="37703" type="uInt8NULL" description="Price Denominator of Sub Fraction" offset="108" semanticType="int"/>
<field name="PriceDisplayFormat" id="9800" type="uInt8NULL" description="Number of decimals in fractional display price" offset="109" semanticType="int"/>
<field name="UnitOfMeasure" id="996" type="UnitOfMeasure" description="Unit of measure for the products' original contract size. This will be populated for all products listed on CME Globex" offset="110" semanticType="String"/>
<field name="UnitOfMeasureQty" id="1147" type="PRICENULL" description="This field contains the contract size for each instrument. Used in combination with tag 996-UnitofMeasure" offset="140" semanticType="Qty"/>
<field name="TradingReferencePrice" id="1150" type="PRICENULL" description="Reference price for prelisted instruments or the last calculated Settlement whether it be Theoretical, Preliminary or a Final Settle of the session." offset="148" semanticType="Price"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="156" semanticType="MultipleCharValue"/>
<field name="OpenInterestQty" id="5792" type="Int32NULL" description="The total open interest for the market at the close of the prior trading session." offset="157" semanticType="int"/>
<field name="ClearedVolume" id="5791" type="Int32NULL" description="The total cleared volume of instrument traded during the prior trading session." offset="161" semanticType="int"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL" description="Allowable high limit price for the trading day" offset="165" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL" description="Allowable low limit price for the trading day" offset="173" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL" description="Differential value for price banding." offset="181" semanticType="Price"/>
<field name="DecayQuantity" id="5818" type="Int32NULL" description="Indicates the quantity that a contract will decay daily by once the decay start date is reached" offset="189" semanticType="Qty"/>
<field name="DecayStartDate" id="5819" type="LocalMktDate" description="Indicates the date at which a decaying contract will begin to decay" offset="193" semanticType="LocalMktDate"/>
<field name="OriginalContractSize" id="5849" type="Int32NULL" description="Fixed contract value assigned to each product" offset="195" semanticType="Qty"/>
<field name="ContractMultiplier" id="231" type="Int32NULL" description="Number of deliverable units per instrument, e.g., peak days in maturity month or number of calendar days in maturity month" offset="199" semanticType="int"/>
<field name="ContractMultiplierUnit" id="1435" type="Int8NULL" description="Indicates the type of multiplier being applied to the product. Optionally used in combination with tag 231-ContractMultiplier" offset="203" semanticType="int"/>
<field name="FlowScheduleType" id="1439" type="Int8NULL" description="The schedule according to which the electricity is delivered in a physical contract, or priced in a financial contract. Specifies whether the contract is defined according to the Easter Peak, Eastern Off-Peak, Western Peak or Western Off-Peak." offset="204" semanticType="int"/>
<field name="MinPriceIncrementAmount" id="1146" type="PRICENULL" description="Monetary value equivalent to the minimum price fluctuation" offset="205" semanticType="Price"/>
<field name="UserDefinedInstrument" id="9779" type="UserDefinedInstrument" description="User-defined instruments flag" offset="213" sinceVersion="3" semanticType="char"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates session date corresponding to the settlement price in tag 1150-TradingReferencePrice" offset="214" sinceVersion="6" semanticType="LocalMktDate"/>
<group name="NoEvents" id="864" description="Number of repeating EventType entries" blockLength="9" dimensionType="groupSize">
<field name="EventType" id="865" type="EventType" description="Code to represent the type of event" offset="0" semanticType="int"/>
<field name="EventTime" id="1145" type="uInt64" description="Date and Time of instument Activation or Expiration event sent as number of nanoseconds since Unix epoch" offset="1" semanticType="UTCTimestamp"/>
</group>
<group name="NoMDFeedTypes" id="1141" description="Number of repeating FeedType entries" blockLength="4" dimensionType="groupSize">
<field name="MDFeedType" id="1022" type="MDFeedType" description="Describes a class of service for a given data feed. GBX- Real Book, GBI-Implied Book" offset="0" semanticType="String"/>
<field name="MarketDepth" id="264" type="Int8" description="Book depth" offset="3" semanticType="int"/>
</group>
<group name="NoInstAttrib" id="870" description="Number of repeating InstrAttribType entries" blockLength="4" dimensionType="groupSize">
<field name="InstAttribType" id="871" type="InstAttribType" description="Instrument eligibility attributes" semanticType="int"/>
<field name="InstAttribValue" id="872" type="InstAttribValue" description="Bitmap field of 32 Boolean type instrument eligibility flags" offset="0" semanticType="MultipleCharValue"/>
</group>
<group name="NoLotTypeRules" id="1234" description="Number of entries" blockLength="5" dimensionType="groupSize">
<field name="LotType" id="1093" type="Int8" description="This tag is required to interpret the value in tag 1231-MinLotSize" offset="0" semanticType="int"/>
<field name="MinLotSize" id="1231" type="DecimalQty" description="Minimum quantity accepted for order entry. If tag 1093-LotType=4, this value is the minimum quantity for order entry expressed in the applicable units, specified in tag 996-UnitOfMeasure, e.g. megawatts" offset="1" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="MDInstrumentDefinitionSpread29" id="29" description="MDInstrumentDefinitionSpread" blockLength="195" semanticType="d" sinceVersion="2">
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="0" semanticType="MultipleCharValue"/>
<field name="TotNumReports" id="911" type="uInt32NULL" description="Total number of instruments in the Replay loop. Used on Replay Feed only" offset="1" semanticType="int"/>
<field name="SecurityUpdateAction" id="980" type="SecurityUpdateAction" description="Last Security update action on Incremental feed, 'D' or 'M' is used when a mid-week deletion or modification (i.e. extension) occurs" offset="5" semanticType="char"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="Timestamp of when the instrument was last added, modified or deleted" offset="6" semanticType="UTCTimestamp"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current state of the instrument. The data is available in the Instrument Replay feed only" offset="14" semanticType="int"/>
<field name="ApplID" id="1180" type="Int16" description="The channel ID as defined in the XML Configuration file" offset="15" semanticType="int"/>
<field name="MarketSegmentID" id="1300" type="uInt8" description="Identifies the market segment, populated for all CME Globex instruments" offset="17" semanticType="int"/>
<field name="UnderlyingProduct" id="462" type="uInt8NULL" description="Product complex" offset="18" semanticType="int"/>
<field name="SecurityExchange" id="207" type="SecurityExchange" description="Exchange used to identify a security" offset="19" semanticType="Exchange"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group Code" offset="23" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="The underlying asset code also known as Product Code" offset="29" semanticType="String"/>
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol. Previously used as Group Code " offset="35" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Unique instrument ID" offset="55" semanticType="int"/>
<field name="SecurityIDSource" id="22" type="SecurityIDSource" description="Identifies class or source of the security ID (Tag 48) value" semanticType="char"/>
<field name="SecurityType" id="167" type="SecurityType" description="Security Type" offset="59" semanticType="String"/>
<field name="CFICode" id="461" type="CFICode" description="ISO standard instrument categorization code" offset="65" semanticType="String"/>
<field name="MaturityMonthYear" id="200" type="MaturityMonthYear" description="This field provides the actual calendar date for contract maturity" offset="71" semanticType="MonthYear"/>
<field name="Currency" id="15" type="Currency" description="Identifies currency used for price" offset="76" semanticType="Currency"/>
<field name="SecuritySubType" id="762" type="SecuritySubType" description="Strategy type" offset="79" semanticType="String"/>
<field name="UserDefinedInstrument" id="9779" type="UserDefinedInstrument" description="User-defined instruments flag" offset="84" semanticType="char"/>
<field name="MatchAlgorithm" id="1142" type="CHAR" description="Matching algorithm" offset="85" semanticType="char"/>
<field name="MinTradeVol" id="562" type="uInt32" description="The minimum trading volume for a security" offset="86" semanticType="Qty"/>
<field name="MaxTradeVol" id="1140" type="uInt32" description="The maximum trading volume for a security" offset="90" semanticType="Qty"/>
<field name="MinPriceIncrement" id="969" type="PRICE" description="Minimum constant tick for the instrument, sent only if instrument is non-VTT (Variable Tick table) eligible" offset="94" semanticType="Price"/>
<field name="DisplayFactor" id="9787" type="FLOAT" description="Contains the multiplier to convert the CME Globex display price to the conventional price" offset="102" semanticType="float"/>
<field name="PriceDisplayFormat" id="9800" type="uInt8NULL" description="Number of decimals in fractional display price" offset="110" semanticType="int"/>
<field name="PriceRatio" id="5770" type="PRICENULL" description="Used for price calculation in spread and leg pricing" offset="111" semanticType="Price"/>
<field name="TickRule" id="6350" type="Int8NULL" description="Tick Rule " offset="119" semanticType="int"/>
<field name="UnitOfMeasure" id="996" type="UnitOfMeasure" description="Unit of measure for the products' original contract size" offset="120" semanticType="String"/>
<field name="TradingReferencePrice" id="1150" type="PRICENULL" description="Reference price - the most recently available Settlement whether it be Theoretical, Preliminary or a Final Settle of the session" offset="150" semanticType="Price"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="158" semanticType="MultipleCharValue"/>
<field name="OpenInterestQty" id="5792" type="Int32NULL" description="The total open interest for the market at the close of the prior trading session" offset="159" semanticType="Qty"/>
<field name="ClearedVolume" id="5791" type="Int32NULL" description="The total cleared volume of instrument traded during the prior trading session" offset="163" semanticType="Qty"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL" description="Allowable high limit price for the trading day" offset="167" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL" description="Allowable low limit price for the trading day" offset="175" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL" description="Differential value for price banding" offset="183" semanticType="Price"/>
<field name="MainFraction" id="37702" type="uInt8NULL" description="Price Denominator of Main Fraction" offset="191" semanticType="int"/>
<field name="SubFraction" id="37703" type="uInt8NULL" description="Price Denominator of Sub Fraction" offset="192" semanticType="int"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates session date corresponding to the settlement price in tag 1150-TradingReferencePrice" offset="193" sinceVersion="6" semanticType="LocalMktDate"/>
<group name="NoEvents" id="864" description="Number of repeating EventType entries" blockLength="9" dimensionType="groupSize">
<field name="EventType" id="865" type="EventType" description="Code to represent the type of event" offset="0" semanticType="int"/>
<field name="EventTime" id="1145" type="uInt64" description="Date and time of instument Activation or Expiration event sent as number of nanoseconds since Unix epoch" offset="1" semanticType="UTCTimestamp"/>
</group>
<group name="NoMDFeedTypes" id="1141" description="Number of FeedType entries" blockLength="4" dimensionType="groupSize">
<field name="MDFeedType" id="1022" type="MDFeedType" description="Describes a class of service for a given data feed. GBX- Real Book, GBI-Implied Book" offset="0" semanticType="String"/>
<field name="MarketDepth" id="264" type="Int8" description="Identifies the depth of book" offset="3" semanticType="int"/>
</group>
<group name="NoInstAttrib" id="870" description="Number of InstrAttribType entries" blockLength="4" dimensionType="groupSize">
<field name="InstAttribType" id="871" type="InstAttribType" description="Instrument Eligibility Attributes" semanticType="int"/>
<field name="InstAttribValue" id="872" type="InstAttribValue" description="Bitmap field of 32 Boolean type Instrument eligibility flags" offset="0" semanticType="MultipleCharValue"/>
</group>
<group name="NoLotTypeRules" id="1234" description="Number of entries" blockLength="5" dimensionType="groupSize">
<field name="LotType" id="1093" type="Int8" description="This tag is required to interpret the value in tag 1231-MinLotSize" offset="0" semanticType="int"/>
<field name="MinLotSize" id="1231" type="DecimalQty" description="Minimum quantity accepted for order entry. If tag 1093-LotType=4, this value is the minimum quantity for order entry expressed in the applicable units, specified in tag 996-UnitOfMeasure, e.g. megawatts" offset="1" semanticType="Qty"/>
</group>
<group name="NoLegs" id="555" description="Number of Leg entries" blockLength="18" dimensionType="groupSize">
<field name="LegSecurityID" id="602" type="Int32" description="Leg Security ID" offset="0" semanticType="int"/>
<field name="LegSecurityIDSource" id="603" type="SecurityIDSource" description="Identifies source of tag 602-LegSecurityID value" semanticType="char"/>
<field name="LegSide" id="624" type="LegSide" description="Leg side" offset="4" semanticType="int"/>
<field name="LegRatioQty" id="623" type="Int8" description="Leg ratio of quantity for this individual leg relative to the entire multi-leg instrument" offset="5" semanticType="Qty"/>
<field name="LegPrice" id="566" type="PRICENULL" description="Price for the future leg of a UDS Covered instrument " offset="6" semanticType="Price"/>
<field name="LegOptionDelta" id="1017" type="DecimalQty" description="Delta used to calculate the quantity of futures used to cover the option or option strategy" offset="14" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="SecurityStatus30" id="30" description="SecurityStatus" blockLength="30" semanticType="f" sinceVersion="2">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch." offset="0" semanticType="UTCTimestamp"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group" offset="8" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="Product Code within Security Group specified" offset="14" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32NULL" description="If this tag is present, 35=f message is sent for the instrument" offset="20" semanticType="int"/>
<field name="TradeDate" id="75" type="LocalMktDate" description="Trade Session Date" offset="24" semanticType="LocalMktDate"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="26" semanticType="MultipleCharValue"/>
<field name="SecurityTradingStatus" id="326" type="SecurityTradingStatus" description="Identifies the trading status applicable to the instrument or Security Group" offset="27" semanticType="int"/>
<field name="HaltReason" id="327" type="HaltReason" description="Identifies the reason for the status change" offset="28" semanticType="int"/>
<field name="SecurityTradingEvent" id="1174" type="SecurityTradingEvent" description="Identifies an additional event or a rule related to the status" offset="29" semanticType="int"/>
</ns2:message>
<ns2:message name="MDIncrementalRefreshBook32" id="32" description="MDIncrementalRefreshBook" blockLength="11" semanticType="X" sinceVersion="2">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="32" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICENULL" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Market Data entry size" offset="8" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="12" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Market Data entry sequence number per instrument update" offset="16" semanticType="int"/>
<field name="NumberOfOrders" id="346" type="Int32NULL" description="In Book entry - aggregate number of orders at given price level" offset="20" semanticType="int"/>
<field name="MDPriceLevel" id="1023" type="uInt8" description="Aggregate book level" offset="24" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description=" Market Data update action" offset="25" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeBook" description="Market Data entry type" offset="26" semanticType="char"/>
</group>
<group name="NoOrderIDEntries" id="37705" description="Number of OrderID entries" blockLength="24" sinceVersion="7" dimensionType="groupSize8Byte">
<field name="OrderID" id="37" type="uInt64" description="Unique Order ID" offset="0" semanticType="int"/>
<field name="MDOrderPriority" id="37707" type="uInt64NULL" description="Order priority for execution on the order book" offset="8" semanticType="int"/>
<field name="MDDisplayQty" id="37706" type="Int32NULL" description="Visible qty of order" offset="16" semanticType="int"/>
<field name="ReferenceID" id="9633" type="uInt8NULL" description="Reference to corresponding Price and Security ID, sequence of MD entry in the message" offset="20" semanticType="int"/>
<field name="OrderUpdateAction" id="37708" type="OrderUpdateAction" description="Order book update action to be applied to the order referenced by OrderID" offset="21" semanticType="int"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshDailyStatistics33" id="33" description="MDIncrementalRefreshDailyStatistics" blockLength="11" semanticType="X" sinceVersion="2">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="32" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICENULL" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Market Data entry size" offset="8" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="12" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Market Data entry sequence number per instrument update" offset="16" semanticType="int"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates trade session date corresponding to a statistic entry" offset="20" semanticType="LocalMktDate"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="22" semanticType="MultipleCharValue"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action" offset="23" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeDailyStatistics" description="Market Data entry type" offset="24" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshLimitsBanding34" id="34" description="MDIncrementalRefreshLimitsBanding" blockLength="11" semanticType="X" sinceVersion="2">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="32" dimensionType="groupSize">
<field name="HighLimitPrice" id="1149" type="PRICENULL" description="Upper price threshold for the instrument" offset="0" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL" description="Lower price threshold for the instrument" offset="8" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL" description="Differential static value for price banding" offset="16" semanticType="Price"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="24" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="MD Entry sequence number per instrument update" offset="28" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateActionNew" description="Market Data entry update action. In order to delete banding value, high or low limit, the deleted price field is populated with a NULL " semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeLimits" description="Market Data entry type " semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshSessionStatistics35" id="35" description="MDIncrementalRefreshSessionStatistics" blockLength="11" semanticType="X" sinceVersion="2">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="24" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICE" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="8" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="MD Entry sequence number per instrument update" offset="12" semanticType="int"/>
<field name="OpenCloseSettlFlag" id="286" type="OpenCloseSettlFlag" description="Flag describing IOP and Open Price entries" offset="16" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action " offset="17" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeStatistics" description="Market Data entry type " offset="18" semanticType="char"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Indicative Opening Quantity " offset="19" sinceVersion="8" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshVolume37" id="37" description="MDIncrementalRefreshVolume" blockLength="11" semanticType="X" sinceVersion="2">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="16" dimensionType="groupSize">
<field name="MDEntrySize" id="271" type="Int32" description="Cumulative traded volume" offset="0" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="4" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Market Data entry sequence number per instrument update" offset="8" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action" offset="12" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeVol" description="Electronic Volume entry provides cumulative session trade volume updated with the event" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="SnapshotFullRefresh38" id="38" description="SnapshotFullRefresh" blockLength="59" semanticType="W" sinceVersion="2">
<field name="LastMsgSeqNumProcessed" id="369" type="uInt32" description="Sequence number of the last Incremental feed packet processed. This value is used to synchronize the snapshot loop with the real-time feed" offset="0" semanticType="SeqNum"/>
<field name="TotNumReports" id="911" type="uInt32" description="Total number of messages replayed in the loop" offset="4" semanticType="int"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="8" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Sequence number of the last Market Data entry processed for the instrument" offset="12" semanticType="SeqNum"/>
<field name="TransactTime" id="60" type="uInt64" description="Timestamp of the last event security participated in, sent as number of nanoseconds since Unix epoch" offset="16" semanticType="UTCTimestamp"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="UTC Date and time of last Security Definition add, update or delete on a given Market Data channel" offset="24" semanticType="UTCTimestamp"/>
<field name="TradeDate" id="75" type="LocalMktDate" description="Trade session date sent as number of days since Unix epoch" offset="32" semanticType="LocalMktDate"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current trading state of the instrument" offset="34" semanticType="int"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL" description="Upper price threshold for the instrument" offset="35" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL" description="Lower price threshold for the instrument" offset="43" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL" description="Differential value for price banding" offset="51" semanticType="Price"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="22" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICENULL" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Market Data entry quantity" offset="8" semanticType="Qty"/>
<field name="NumberOfOrders" id="346" type="Int32NULL" description="Aggregate number of orders at the given price level" offset="12" semanticType="int"/>
<field name="MDPriceLevel" id="1023" type="Int8NULL" description="Aggregate book position" offset="16" semanticType="int"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates the date of trade session corresponding to a statistic entry" offset="17" semanticType="LocalMktDate"/>
<field name="OpenCloseSettlFlag" id="286" type="OpenCloseSettlFlag" description="Flag describing Open Price entry" offset="19" semanticType="int"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="20" semanticType="MultipleCharValue"/>
<field name="MDEntryType" id="269" type="MDEntryType" description="Market Data entry type" offset="21" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="QuoteRequest39" id="39" description="QuoteRequest" blockLength="35" semanticType="R" sinceVersion="3">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="QuoteReqID" id="131" type="QuoteReqId" description="Quote Request ID defined by the exchange" offset="8" semanticType="String"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="31" semanticType="MultipleCharValue"/>
<group name="NoRelatedSym" id="146" description="Indicates the number of repeating symbols specified" blockLength="32" dimensionType="groupSize">
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol" offset="0" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="20" semanticType="int"/>
<field name="OrderQty" id="38" type="Int32NULL" description="Quantity requested" offset="24" semanticType="Qty"/>
<field name="QuoteType" id="537" type="Int8" description="Type of quote requested" offset="28" semanticType="int"/>
<field name="Side" id="54" type="Int8NULL" description="Side requested" offset="29" semanticType="int"/>
</group>
</ns2:message>
<ns2:message name="MDInstrumentDefinitionOption41" id="41" description="MDInstrumentDefinitionOption" blockLength="213" semanticType="d" sinceVersion="3">
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="0" semanticType="MultipleCharValue"/>
<field name="TotNumReports" id="911" type="uInt32NULL" description="Total number of instruments in the Replay loop. Used on Replay Feed only " offset="1" semanticType="int"/>
<field name="SecurityUpdateAction" id="980" type="SecurityUpdateAction" description="Last Security update action on Incremental feed, 'D' or 'M' is used when a mid-week deletion or modification (i.e. extension) occurs" offset="5" semanticType="char"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="Timestamp of when the instrument was last added, modified or deleted" offset="6" semanticType="UTCTimestamp"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current state of the instrument. The data is available in the Instrument Replay feed only " offset="14" semanticType="int"/>
<field name="ApplID" id="1180" type="Int16" description="The channel ID as defined in the XML Configuration file" offset="15" semanticType="int"/>
<field name="MarketSegmentID" id="1300" type="uInt8" description="Identifies the market segment, populated for all CME Globex instruments" offset="17" semanticType="int"/>
<field name="UnderlyingProduct" id="462" type="uInt8" description="Indicates the product complex" offset="18" semanticType="int"/>
<field name="SecurityExchange" id="207" type="SecurityExchange" description="Exchange used to identify a security" offset="19" semanticType="Exchange"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group Code " offset="23" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="The underlying asset code also known as Product Code" offset="29" semanticType="String"/>
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol. Previously used as Instrument Group Code " offset="35" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Unique Instrument ID" offset="55" semanticType="int"/>
<field name="SecurityIDSource" id="22" type="SecurityIDSource" description="Identifies class or source of tag 48-SecurityID value" semanticType="char"/>
<field name="SecurityType" id="167" type="SecurityType" description="Security Type" offset="59" semanticType="String"/>
<field name="CFICode" id="461" type="CFICode" description="ISO standard instrument categorization code" offset="65" semanticType="String"/>
<field name="PutOrCall" id="201" type="PutOrCall" description="Indicates whether an option instrument is a put or call" offset="71" semanticType="int"/>
<field name="MaturityMonthYear" id="200" type="MaturityMonthYear" description="This field provides the actual calendar date for contract maturity" offset="72" semanticType="MonthYear"/>
<field name="Currency" id="15" type="Currency" description="Identifies currency used for price" offset="77" semanticType="Currency"/>
<field name="StrikePrice" id="202" type="PRICENULL" description="Strike Price for an option instrument" offset="80" semanticType="Price"/>
<field name="StrikeCurrency" id="947" type="Currency" description="Currency in which the StrikePrice is denominated" offset="88" semanticType="Currency"/>
<field name="SettlCurrency" id="120" type="Currency" description="Identifies currency used for settlement, if different from trade price currency" offset="91" semanticType="Currency"/>
<field name="MinCabPrice" id="9850" type="PRICENULL" description="Defines cabinet price for outright options products" offset="94" semanticType="Price"/>
<field name="MatchAlgorithm" id="1142" type="CHAR" description="Matching algorithm" offset="102" semanticType="char"/>
<field name="MinTradeVol" id="562" type="uInt32" description="The minimum trading volume for a security." offset="103" semanticType="Qty"/>
<field name="MaxTradeVol" id="1140" type="uInt32" description="The maximum trading volume for a security." offset="107" semanticType="Qty"/>
<field name="MinPriceIncrement" id="969" type="PRICENULL" description="Minimum constant tick for the instrument" offset="111" semanticType="Price"/>
<field name="MinPriceIncrementAmount" id="1146" type="PRICENULL" description="Monetary value equivalent to the minimum price fluctuation" offset="119" semanticType="Price"/>
<field name="DisplayFactor" id="9787" type="FLOAT" description="Contains the multiplier to convert the CME Globex display price to the conventional price" offset="127" semanticType="float"/>
<field name="TickRule" id="6350" type="Int8NULL" description="VTT code referencing variable tick table " offset="135" semanticType="int"/>
<field name="MainFraction" id="37702" type="uInt8NULL" description="Price Denominator of Main Fraction" offset="136" semanticType="int"/>
<field name="SubFraction" id="37703" type="uInt8NULL" description="Price Denominator of Sub Fraction" offset="137" semanticType="int"/>
<field name="PriceDisplayFormat" id="9800" type="uInt8NULL" description="Number of decimals in fractional display price" offset="138" semanticType="int"/>
<field name="UnitOfMeasure" id="996" type="UnitOfMeasure" description="Unit of measure for the products' original contract size. This will be populated for all products listed on CME Globex" offset="139" semanticType="String"/>
<field name="UnitOfMeasureQty" id="1147" type="PRICENULL" description="This field contains the contract size for each instrument. Used in combination with tag 996-UnitofMeasure" offset="169" semanticType="Qty"/>
<field name="TradingReferencePrice" id="1150" type="PRICENULL" description="Reference price - the most recently available Settlement whether it be Theoretical, Preliminary or a Final Settle of the session" offset="177" semanticType="Price"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="185" semanticType="MultipleCharValue"/>
<field name="ClearedVolume" id="5791" type="Int32NULL" description="The total cleared volume of instrument traded during the prior trading session" offset="186" semanticType="Qty"/>
<field name="OpenInterestQty" id="5792" type="Int32NULL" description="The total open interest for the market at the close of the prior trading session." offset="190" semanticType="Qty"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL" description="Allowable low limit price for the trading day " offset="194" semanticType="Price"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL" description="Allowable high limit price for the trading day" offset="202" semanticType="Price"/>
<field name="UserDefinedInstrument" id="9779" type="UserDefinedInstrument" description="User-defined instruments flag" offset="210" semanticType="char"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates session date corresponding to the settlement price in tag 1150-TradingReferencePrice" offset="211" sinceVersion="6" semanticType="LocalMktDate"/>
<group name="NoEvents" id="864" description="Number of EventType entries" blockLength="9" dimensionType="groupSize">
<field name="EventType" id="865" type="EventType" description="Code to represent the type of event" offset="0" semanticType="int"/>
<field name="EventTime" id="1145" type="uInt64" description="Date and Time of instument Activation or Expiration event sent as number of nanoseconds since Unix epoch" offset="1" semanticType="UTCTimestamp"/>
</group>
<group name="NoMDFeedTypes" id="1141" description="Number of FeedType entries" blockLength="4" dimensionType="groupSize">
<field name="MDFeedType" id="1022" type="MDFeedType" description="Describes a class of service for a given data feed. GBX- Real Book, GBI-Implied Book" offset="0" semanticType="String"/>
<field name="MarketDepth" id="264" type="Int8" description="Book depth" offset="3" semanticType="int"/>
</group>
<group name="NoInstAttrib" id="870" description="Number of InstrAttribType entries" blockLength="4" dimensionType="groupSize">
<field name="InstAttribType" id="871" type="InstAttribType" description="Instrument Eligibility Attributes" semanticType="int"/>
<field name="InstAttribValue" id="872" type="InstAttribValue" description="Bitmap field of 32 Boolean type Instrument eligibility flags" offset="0" semanticType="MultipleCharValue"/>
</group>
<group name="NoLotTypeRules" id="1234" description="Number of entries" blockLength="5" dimensionType="groupSize">
<field name="LotType" id="1093" type="Int8" description="This tag is required to interpret the value in tag 1231-MinLotSize" offset="0" semanticType="int"/>
<field name="MinLotSize" id="1231" type="DecimalQty" description="Minimum quantity accepted for order entry. If tag 1093-LotType=4, this value is the minimum quantity for order entry expressed in the applicable units, specified in tag 996-UnitOfMeasure, e.g. megawatts" offset="1" semanticType="Qty"/>
</group>
<group name="NoUnderlyings" id="711" description="Number of underlying instruments" blockLength="24" dimensionType="groupSize">
<field name="UnderlyingSecurityID" id="309" type="Int32" description="Unique Instrument ID as qualified by the exchange per tag 305-UnderlyingSecurityIDSource" offset="0" semanticType="int"/>
<field name="UnderlyingSecurityIDSource" id="305" type="SecurityIDSource" description="This value is always '8' for CME" semanticType="char"/>
<field name="UnderlyingSymbol" id="311" type="UnderlyingSymbol" description="Underlying Instrument Symbol (Contract Name)" offset="4" semanticType="String"/>
</group>
<group name="NoRelatedInstruments" id="1647" description="Number of related instruments group" blockLength="24" sinceVersion="7" dimensionType="groupSize">
<field name="RelatedSecurityID" id="1650" type="Int32" description="Related Security ID" offset="0" semanticType="int"/>
<field name="RelatedSecurityIDSource" id="1651" type="SecurityIDSource" description="Related Security ID source" semanticType="char"/>
<field name="RelatedSymbol" id="1649" type="Symbol" description="Related instrument Symbol" offset="4" semanticType="String"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshTradeSummary42" id="42" description="MDIncrementalRefreshTradeSummary" blockLength="11" semanticType="X" sinceVersion="5">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of Trade Summary entries" blockLength="32" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICE" description="Trade price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32" description="Consolidated trade quantity" offset="8" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID as defined by CME" offset="12" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Sequence number per instrument update" offset="16" semanticType="int"/>
<field name="NumberOfOrders" id="346" type="Int32NULL" description="The total number of real orders per instrument that participated in a match step within a match event" offset="20" semanticType="int"/>
<field name="AggressorSide" id="5797" type="AggressorSide" description="Indicates which side is the aggressor or if there is no aggressor" offset="24" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action" offset="25" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeTrade" description="Market Data entry type" semanticType="char"/>
<field name="MDTradeEntryID" id="37711" type="uInt32NULL" description="Market Data Trade entry ID" offset="26" sinceVersion="7" semanticType="int"/>
</group>
<group name="NoOrderIDEntries" id="37705" description="Number of OrderID entries" blockLength="16" dimensionType="groupSize8Byte">
<field name="OrderID" id="37" type="uInt64" description="Unique order identifier as assigned by the exchange" offset="0" semanticType="int"/>
<field name="LastQty" id="32" type="Int32" description="Quantity bought or sold on this last fill" offset="8" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshOrderBook43" id="43" description="MDIncrementalRefreshOrderBook" blockLength="11" semanticType="X" sinceVersion="7">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="40" dimensionType="groupSize">
<field name="OrderID" id="37" type="uInt64NULL" description="Order ID" offset="0" semanticType="String"/>
<field name="MDOrderPriority" id="37707" type="uInt64NULL" description="Order priority for execution on the order book" offset="8" semanticType="int"/>
<field name="MDEntryPx" id="270" type="PRICENULL" description="Order price" offset="16" semanticType="Price"/>
<field name="MDDisplayQty" id="37706" type="Int32NULL" description="Visible order qty" offset="24" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="28" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Order book update action to be applied to the order referenced by OrderID" offset="32" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeBook" description="Market Data entry type" offset="33" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="SnapshotFullRefreshOrderBook44" id="44" description="SnapshotFullRefreshOrderBook" blockLength="28" semanticType="W" sinceVersion="7">
<field name="LastMsgSeqNumProcessed" id="369" type="uInt32" description="Sequence number of the last Incremental feed packet processed. This value is used to synchronize the snapshot loop with the real-time feed" offset="0" semanticType="SeqNum"/>
<field name="TotNumReports" id="911" type="uInt32" description="Total number of instruments in the replayed loop" offset="4" semanticType="int"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="8" semanticType="String"/>
<field name="NoChunks" id="37709" type="uInt32" description="Total number of packets that constitutes a single instrument order book" offset="12" semanticType="int"/>
<field name="CurrentChunk" id="37710" type="uInt32" description="Chunk sequence" offset="16" semanticType="int"/>
<field name="TransactTime" id="60" type="uInt64" description="Timestamp of the last event security participated in, sent as number of nanoseconds since Unix epoch" offset="20" semanticType="UTCTimestamp"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="29" dimensionType="groupSize">
<field name="OrderID" id="37" type="uInt64" description="Unique Order ID" offset="0" semanticType="int"/>
<field name="MDOrderPriority" id="37707" type="uInt64NULL" description="Order priority for execution on the order book" offset="8" semanticType="int"/>
<field name="MDEntryPx" id="270" type="PRICE" description="Order Price" offset="16" semanticType="Price"/>
<field name="MDDisplayQty" id="37706" type="Int32" description="Visible order qty" offset="24" semanticType="Qty"/>
<field name="MDEntryType" id="269" type="MDEntryTypeBook" description="Market Data entry type" offset="28" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshBook46" id="46" description="MDIncrementalRefreshBook" blockLength="11" semanticType="X" sinceVersion="9">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="32" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICENULL9" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Market Data entry size" offset="8" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="12" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Market Data entry sequence number per instrument update" offset="16" semanticType="int"/>
<field name="NumberOfOrders" id="346" type="Int32NULL" description="In Book entry - aggregate number of orders at given price level" offset="20" semanticType="int"/>
<field name="MDPriceLevel" id="1023" type="uInt8" description="Aggregate book level" offset="24" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description=" Market Data update action" offset="25" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeBook" description="Market Data entry type" offset="26" semanticType="char"/>
</group>
<group name="NoOrderIDEntries" id="37705" description="Number of OrderID entries" blockLength="24" dimensionType="groupSize8Byte">
<field name="OrderID" id="37" type="uInt64" description="Unique Order ID" offset="0" semanticType="int"/>
<field name="MDOrderPriority" id="37707" type="uInt64NULL" description="Order priority for execution on the order book" offset="8" semanticType="int"/>
<field name="MDDisplayQty" id="37706" type="Int32NULL" description="Visible qty of order" offset="16" semanticType="Qty"/>
<field name="ReferenceID" id="9633" type="uInt8NULL" description="Reference to corresponding Price and Security ID, sequence of MD entry in the message" offset="20" semanticType="int"/>
<field name="OrderUpdateAction" id="37708" type="OrderUpdateAction" description="Order book update action to be applied to the order referenced by OrderID" offset="21" semanticType="int"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshOrderBook47" id="47" description="MDIncrementalRefreshOrderBook" blockLength="11" semanticType="X" sinceVersion="9">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="40" dimensionType="groupSize">
<field name="OrderID" id="37" type="uInt64NULL" description="Order ID" offset="0" semanticType="int"/>
<field name="MDOrderPriority" id="37707" type="uInt64NULL" description="Order priority for execution on the order book" offset="8" semanticType="int"/>
<field name="MDEntryPx" id="270" type="PRICENULL9" description="Order price" offset="16" semanticType="Price"/>
<field name="MDDisplayQty" id="37706" type="Int32NULL" description="Visible order qty" offset="24" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="28" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Order book update action to be applied to the order referenced by OrderID" offset="32" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeBook" description="Market Data entry type " offset="33" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshTradeSummary48" id="48" description="MDIncrementalRefreshTradeSummary" blockLength="11" semanticType="X" sinceVersion="9">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of Trade Summary entries" blockLength="32" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICE9" description="Trade price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32" description="Consolidated trade quantity" offset="8" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID as defined by CME" offset="12" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Sequence number per instrument update" offset="16" semanticType="int"/>
<field name="NumberOfOrders" id="346" type="Int32" description="The total number of real orders per instrument that participated in a match step within a match event" offset="20" semanticType="int"/>
<field name="AggressorSide" id="5797" type="AggressorSide" description="Indicates which side is the aggressor or if there is no aggressor" offset="24" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action" offset="25" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeTrade" description="Market Data entry type" semanticType="char"/>
<field name="MDTradeEntryID" id="37711" type="uInt32NULL" description="Market Data Trade entry ID" offset="26" semanticType="int"/>
</group>
<group name="NoOrderIDEntries" id="37705" description="Number of OrderID entries" blockLength="16" dimensionType="groupSize8Byte">
<field name="OrderID" id="37" type="uInt64" description="Unique order identifier as assigned by the exchange" offset="0" semanticType="int"/>
<field name="LastQty" id="32" type="Int32" description="Quantity bought or sold on this last fill" offset="8" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshDailyStatistics49" id="49" description="MDIncrementalRefreshDailyStatistics" blockLength="11" semanticType="X" sinceVersion="9">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="32" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICENULL9" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Market Data entry size" offset="8" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="12" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Market Data entry sequence number per instrument update" offset="16" semanticType="int"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates trade session date corresponding to a statistic entry" offset="20" semanticType="LocalMktDate"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="22" semanticType="MultipleCharValue"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action" offset="23" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeDailyStatistics" description="Market Data entry type" offset="24" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshLimitsBanding50" id="50" description="MDIncrementalRefreshLimitsBanding" blockLength="11" semanticType="X" sinceVersion="9">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="32" dimensionType="groupSize">
<field name="HighLimitPrice" id="1149" type="PRICENULL9" description="Upper price threshold for the instrument" offset="0" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL9" description="Lower price threshold for the instrument" offset="8" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL9" description="Differential static value for price banding" offset="16" semanticType="Price"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="24" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="MD Entry sequence number per instrument update" offset="28" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateActionNew" description="Market Data entry update action. In order to delete banding value, high or low limit, the deleted price field is populated with a NULL " semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeLimits" description="Market Data entry type " semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshSessionStatistics51" id="51" description="MDIncrementalRefreshSessionStatistics" blockLength="11" semanticType="X" sinceVersion="9">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="24" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICE9" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="8" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="MD Entry sequence number per instrument update" offset="12" semanticType="int"/>
<field name="OpenCloseSettlFlag" id="286" type="OpenCloseSettlFlag" description="Flag describing IOP and Open Price entries" offset="16" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action " offset="17" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeStatistics" description="Market Data entry type " offset="18" semanticType="char"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Indicative Opening Quantity " offset="19" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="SnapshotFullRefresh52" id="52" description="SnapshotFullRefresh" blockLength="59" semanticType="W" sinceVersion="9">
<field name="LastMsgSeqNumProcessed" id="369" type="uInt32" description="Sequence number of the last Incremental feed packet processed. This value is used to synchronize the snapshot loop with the real-time feed" offset="0" semanticType="SeqNum"/>
<field name="TotNumReports" id="911" type="uInt32" description="Total number of messages replayed in the loop" offset="4" semanticType="int"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="8" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Sequence number of the last Market Data entry processed for the instrument" offset="12" semanticType="int"/>
<field name="TransactTime" id="60" type="uInt64" description="Timestamp of the last event security participated in, sent as number of nanoseconds since Unix epoch" offset="16" semanticType="UTCTimestamp"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="UTC Date and time of last Security Definition add, update or delete on a given Market Data channel" offset="24" semanticType="UTCTimestamp"/>
<field name="TradeDate" id="75" type="LocalMktDate" description="Trade session date sent as number of days since Unix epoch" offset="32" semanticType="LocalMktDate"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current trading state of the instrument" offset="34" semanticType="int"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL9" description="Upper price threshold for the instrument" offset="35" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL9" description="Lower price threshold for the instrument" offset="43" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL9" description="Differential value for price banding" offset="51" semanticType="Price"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="22" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICENULL9" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Market Data entry quantity" offset="8" semanticType="Qty"/>
<field name="NumberOfOrders" id="346" type="Int32NULL" description="Aggregate number of orders at the given price level" offset="12" semanticType="int"/>
<field name="MDPriceLevel" id="1023" type="Int8NULL" description="Aggregate book position" offset="16" semanticType="int"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates the date of trade session corresponding to a statistic entry" offset="17" semanticType="LocalMktDate"/>
<field name="OpenCloseSettlFlag" id="286" type="OpenCloseSettlFlag" description="Flag describing Open Price entry" offset="19" semanticType="int"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="20" semanticType="MultipleCharValue"/>
<field name="MDEntryType" id="269" type="MDEntryType" description="Market Data entry type" offset="21" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="SnapshotFullRefreshOrderBook53" id="53" description="SnapshotFullRefreshOrderBook" blockLength="28" semanticType="W" sinceVersion="9">
<field name="LastMsgSeqNumProcessed" id="369" type="uInt32" description="Sequence number of the last Incremental feed packet processed. This value is used to synchronize the snapshot loop with the real-time feed" offset="0" semanticType="SeqNum"/>
<field name="TotNumReports" id="911" type="uInt32" description="Total number of instruments in the replayed loop" offset="4" semanticType="int"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="8" semanticType="int"/>
<field name="NoChunks" id="37709" type="uInt32" description="Total number of packets that constitutes a single instrument order book" offset="12" semanticType="int"/>
<field name="CurrentChunk" id="37710" type="uInt32" description="Chunk sequence" offset="16" semanticType="int"/>
<field name="TransactTime" id="60" type="uInt64" description="Timestamp of the last event security participated in, sent as number of nanoseconds since Unix epoch" offset="20" semanticType="UTCTimestamp"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="29" dimensionType="groupSize">
<field name="OrderID" id="37" type="uInt64" description="Unique Order ID" offset="0" semanticType="int"/>
<field name="MDOrderPriority" id="37707" type="uInt64NULL" description="Order priority for execution on the order book" offset="8" semanticType="int"/>
<field name="MDEntryPx" id="270" type="PRICE9" description="Order Price" offset="16" semanticType="Price"/>
<field name="MDDisplayQty" id="37706" type="Int32" description="Visible order qty" offset="24" semanticType="Qty"/>
<field name="MDEntryType" id="269" type="MDEntryTypeBook" description="Market Data entry type" offset="28" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDInstrumentDefinitionFuture54" id="54" description="MDInstrumentDefinitionFuture" blockLength="216" semanticType="d" sinceVersion="9">
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="0" semanticType="MultipleCharValue"/>
<field name="TotNumReports" id="911" type="uInt32NULL" description="Total number of instruments in the Replay loop. Used on Replay Feed only " offset="1" semanticType="int"/>
<field name="SecurityUpdateAction" id="980" type="SecurityUpdateAction" description="Last Security update action on Incremental feed, 'D' or 'M' is used when a mid-week deletion or modification (i.e. extension) occurs" offset="5" semanticType="char"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="Timestamp of when the instrument was last added, modified or deleted" offset="6" semanticType="UTCTimestamp"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current state of the instrument. In Security Definition message this tag is available in the Instrument Replay feed only " offset="14" semanticType="int"/>
<field name="ApplID" id="1180" type="Int16" description="The channel ID as defined in the XML Configuration file" offset="15" semanticType="int"/>
<field name="MarketSegmentID" id="1300" type="uInt8" description="Identifies the market segment, populated for all CME Globex instruments" offset="17" semanticType="int"/>
<field name="UnderlyingProduct" id="462" type="uInt8" description="Product complex" offset="18" semanticType="int"/>
<field name="SecurityExchange" id="207" type="SecurityExchange" description="Exchange used to identify a security" offset="19" semanticType="Exchange"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group Code." offset="23" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="The underlying asset code also known as Product Code" offset="29" semanticType="String"/>
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol " offset="35" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Unique instrument ID" offset="55" semanticType="int"/>
<field name="SecurityIDSource" id="22" type="SecurityIDSource" description="Identifies class or source of tag 48-SecurityID value" semanticType="char"/>
<field name="SecurityType" id="167" type="SecurityType" description="Security Type" offset="59" semanticType="String"/>
<field name="CFICode" id="461" type="CFICode" description="ISO standard instrument categorization code" offset="65" semanticType="String"/>
<field name="MaturityMonthYear" id="200" type="MaturityMonthYear" description="This field provides the actual calendar date for contract maturity" offset="71" semanticType="MonthYear"/>
<field name="Currency" id="15" type="Currency" description="Identifies currency used for price" offset="76" semanticType="Currency"/>
<field name="SettlCurrency" id="120" type="Currency" description="Identifies currency used for settlement, if different from trading currency" offset="79" semanticType="Currency"/>
<field name="MatchAlgorithm" id="1142" type="CHAR" description="Matching algorithm " offset="82" semanticType="char"/>
<field name="MinTradeVol" id="562" type="uInt32" description="The minimum trading volume for a security" offset="83" semanticType="Qty"/>
<field name="MaxTradeVol" id="1140" type="uInt32" description="The maximum trading volume for a security" offset="87" semanticType="Qty"/>
<field name="MinPriceIncrement" id="969" type="PRICE9" description="Minimum constant tick for the instrument, sent only if instrument is non-VTT (Variable Tick table) eligible" offset="91" semanticType="Price"/>
<field name="DisplayFactor" id="9787" type="Decimal9" description="Contains the multiplier to convert the CME Globex display price to the conventional price" offset="99" semanticType="float"/>
<field name="MainFraction" id="37702" type="uInt8NULL" description="Price Denominator of Main Fraction" offset="107" semanticType="int"/>
<field name="SubFraction" id="37703" type="uInt8NULL" description="Price Denominator of Sub Fraction" offset="108" semanticType="int"/>
<field name="PriceDisplayFormat" id="9800" type="uInt8NULL" description="Number of decimals in fractional display price" offset="109" semanticType="int"/>
<field name="UnitOfMeasure" id="996" type="UnitOfMeasure" description="Unit of measure for the products' original contract size. This will be populated for all products listed on CME Globex" offset="110" semanticType="String"/>
<field name="UnitOfMeasureQty" id="1147" type="Decimal9NULL" description="This field contains the contract size for each instrument. Used in combination with tag 996-UnitofMeasure" offset="140" semanticType="Qty"/>
<field name="TradingReferencePrice" id="1150" type="PRICENULL9" description="Reference price for prelisted instruments or the last calculated Settlement whether it be Theoretical, Preliminary or a Final Settle of the session." offset="148" semanticType="Price"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="156" semanticType="MultipleCharValue"/>
<field name="OpenInterestQty" id="5792" type="Int32NULL" description="The total open interest for the market at the close of the prior trading session." offset="157" semanticType="Qty"/>
<field name="ClearedVolume" id="5791" type="Int32NULL" description="The total cleared volume of instrument traded during the prior trading session." offset="161" semanticType="Qty"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL9" description="Allowable high limit price for the trading day" offset="165" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL9" description="Allowable low limit price for the trading day" offset="173" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL9" description="Differential value for price banding." offset="181" semanticType="Price"/>
<field name="DecayQuantity" id="5818" type="Int32NULL" description="Indicates the quantity that a contract will decay daily by once the decay start date is reached" offset="189" semanticType="Qty"/>
<field name="DecayStartDate" id="5819" type="LocalMktDate" description="Indicates the date at which a decaying contract will begin to decay" offset="193" semanticType="LocalMktDate"/>
<field name="OriginalContractSize" id="5849" type="Int32NULL" description="Fixed contract value assigned to each product" offset="195" semanticType="Qty"/>
<field name="ContractMultiplier" id="231" type="Int32NULL" description="Number of deliverable units per instrument, e.g., peak days in maturity month or number of calendar days in maturity month" offset="199" semanticType="int"/>
<field name="ContractMultiplierUnit" id="1435" type="Int8NULL" description="Indicates the type of multiplier being applied to the product. Optionally used in combination with tag 231-ContractMultiplier" offset="203" semanticType="int"/>
<field name="FlowScheduleType" id="1439" type="Int8NULL" description="The schedule according to which the electricity is delivered in a physical contract, or priced in a financial contract. Specifies whether the contract is defined according to the Easter Peak, Eastern Off-Peak, Western Peak or Western Off-Peak." offset="204" semanticType="int"/>
<field name="MinPriceIncrementAmount" id="1146" type="PRICENULL9" description="Monetary value equivalent to the minimum price fluctuation" offset="205" semanticType="Price"/>
<field name="UserDefinedInstrument" id="9779" type="UserDefinedInstrument" description="User-defined instruments flag" offset="213" semanticType="char"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates session date corresponding to the settlement price in tag 1150-TradingReferencePrice" offset="214" semanticType="LocalMktDate"/>
<group name="NoEvents" id="864" description="Number of repeating EventType entries" blockLength="9" dimensionType="groupSize">
<field name="EventType" id="865" type="EventType" description="Code to represent the type of event" offset="0" semanticType="int"/>
<field name="EventTime" id="1145" type="uInt64" description="Date and Time of instument Activation or Expiration event sent as number of nanoseconds since Unix epoch" offset="1" semanticType="UTCTimestamp"/>
</group>
<group name="NoMDFeedTypes" id="1141" description="Number of repeating FeedType entries" blockLength="4" dimensionType="groupSize">
<field name="MDFeedType" id="1022" type="MDFeedType" description="Describes a class of service for a given data feed. GBX- Real Book, GBI-Implied Book" offset="0" semanticType="String"/>
<field name="MarketDepth" id="264" type="Int8" description="Book depth" offset="3" semanticType="int"/>
</group>
<group name="NoInstAttrib" id="870" description="Number of repeating InstrAttribType entries" blockLength="4" dimensionType="groupSize">
<field name="InstAttribType" id="871" type="InstAttribType" description="Instrument eligibility attributes" semanticType="int"/>
<field name="InstAttribValue" id="872" type="InstAttribValue" description="Bitmap field of 32 Boolean type instrument eligibility flags" offset="0" semanticType="MultipleCharValue"/>
</group>
<group name="NoLotTypeRules" id="1234" description="Number of entries" blockLength="5" dimensionType="groupSize">
<field name="LotType" id="1093" type="Int8" description="This tag is required to interpret the value in tag 1231-MinLotSize" offset="0" semanticType="int"/>
<field name="MinLotSize" id="1231" type="DecimalQty" description="Minimum quantity accepted for order entry. If tag 1093-LotType=4, this value is the minimum quantity for order entry expressed in the applicable units, specified in tag 996-UnitOfMeasure, e.g. megawatts" offset="1" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="MDInstrumentDefinitionOption55" id="55" description="MDInstrumentDefinitionOption" blockLength="213" semanticType="d" sinceVersion="9">
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="0" semanticType="MultipleCharValue"/>
<field name="TotNumReports" id="911" type="uInt32NULL" description="Total number of instruments in the Replay loop. Used on Replay Feed only " offset="1" semanticType="int"/>
<field name="SecurityUpdateAction" id="980" type="SecurityUpdateAction" description="Last Security update action on Incremental feed, 'D' or 'M' is used when a mid-week deletion or modification (i.e. extension) occurs" offset="5" semanticType="char"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="Timestamp of when the instrument was last added, modified or deleted" offset="6" semanticType="UTCTimestamp"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current state of the instrument. The data is available in the Instrument Replay feed only " offset="14" semanticType="int"/>
<field name="ApplID" id="1180" type="Int16" description="The channel ID as defined in the XML Configuration file" offset="15" semanticType="int"/>
<field name="MarketSegmentID" id="1300" type="uInt8" description="Identifies the market segment, populated for all CME Globex instruments" offset="17" semanticType="int"/>
<field name="UnderlyingProduct" id="462" type="uInt8" description="Indicates the product complex" offset="18" semanticType="int"/>
<field name="SecurityExchange" id="207" type="SecurityExchange" description="Exchange used to identify a security" offset="19" semanticType="Exchange"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group Code " offset="23" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="The underlying asset code also known as Product Code" offset="29" semanticType="String"/>
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol. Previously used as Instrument Group Code " offset="35" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Unique Instrument ID" offset="55" semanticType="int"/>
<field name="SecurityIDSource" id="22" type="SecurityIDSource" description="Identifies class or source of tag 48-SecurityID value" semanticType="char"/>
<field name="SecurityType" id="167" type="SecurityType" description="Security Type" offset="59" semanticType="String"/>
<field name="CFICode" id="461" type="CFICode" description="ISO standard instrument categorization code" offset="65" semanticType="String"/>
<field name="PutOrCall" id="201" type="PutOrCall" description="Indicates whether an option instrument is a put or call" offset="71" semanticType="int"/>
<field name="MaturityMonthYear" id="200" type="MaturityMonthYear" description="This field provides the actual calendar date for contract maturity" offset="72" semanticType="MonthYear"/>
<field name="Currency" id="15" type="Currency" description="Identifies currency used for price" offset="77" semanticType="Currency"/>
<field name="StrikePrice" id="202" type="PRICENULL9" description="Strike Price for an option instrument" offset="80" semanticType="Price"/>
<field name="StrikeCurrency" id="947" type="Currency" description="Currency in which the StrikePrice is denominated" offset="88" semanticType="Currency"/>
<field name="SettlCurrency" id="120" type="Currency" description="Identifies currency used for settlement, if different from trade price currency" offset="91" semanticType="Currency"/>
<field name="MinCabPrice" id="9850" type="PRICENULL9" description="Defines cabinet price for outright options products" offset="94" semanticType="Price"/>
<field name="MatchAlgorithm" id="1142" type="CHAR" description="Matching algorithm" offset="102" semanticType="char"/>
<field name="MinTradeVol" id="562" type="uInt32" description="The minimum trading volume for a security." offset="103" semanticType="Qty"/>
<field name="MaxTradeVol" id="1140" type="uInt32" description="The maximum trading volume for a security." offset="107" semanticType="Qty"/>
<field name="MinPriceIncrement" id="969" type="PRICENULL9" description="Minimum constant tick for the instrument" offset="111" semanticType="Price"/>
<field name="MinPriceIncrementAmount" id="1146" type="PRICENULL9" description="Monetary value equivalent to the minimum price fluctuation" offset="119" semanticType="Price"/>
<field name="DisplayFactor" id="9787" type="Decimal9" description="Contains the multiplier to convert the CME Globex display price to the conventional price" offset="127" semanticType="float"/>
<field name="TickRule" id="6350" type="Int8NULL" description="VTT code referencing variable tick table " offset="135" semanticType="int"/>
<field name="MainFraction" id="37702" type="uInt8NULL" description="Price Denominator of Main Fraction" offset="136" semanticType="int"/>
<field name="SubFraction" id="37703" type="uInt8NULL" description="Price Denominator of Sub Fraction" offset="137" semanticType="int"/>
<field name="PriceDisplayFormat" id="9800" type="uInt8NULL" description="Number of decimals in fractional display price" offset="138" semanticType="int"/>
<field name="UnitOfMeasure" id="996" type="UnitOfMeasure" description="Unit of measure for the products' original contract size. This will be populated for all products listed on CME Globex" offset="139" semanticType="String"/>
<field name="UnitOfMeasureQty" id="1147" type="Decimal9NULL" description="This field contains the contract size for each instrument. Used in combination with tag 996-UnitofMeasure" offset="169" semanticType="Qty"/>
<field name="TradingReferencePrice" id="1150" type="PRICENULL9" description="Reference price - the most recently available Settlement whether it be Theoretical, Preliminary or a Final Settle of the session" offset="177" semanticType="Price"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="185" semanticType="MultipleCharValue"/>
<field name="ClearedVolume" id="5791" type="Int32NULL" description="The total cleared volume of instrument traded during the prior trading session" offset="186" semanticType="Qty"/>
<field name="OpenInterestQty" id="5792" type="Int32NULL" description="The total open interest for the market at the close of the prior trading session." offset="190" semanticType="Qty"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL9" description="Allowable low limit price for the trading day " offset="194" semanticType="Price"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL9" description="Allowable high limit price for the trading day" offset="202" semanticType="Price"/>
<field name="UserDefinedInstrument" id="9779" type="UserDefinedInstrument" description="User-defined instruments flag" offset="210" semanticType="char"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates session date corresponding to the settlement price in tag 1150-TradingReferencePrice" offset="211" semanticType="LocalMktDate"/>
<group name="NoEvents" id="864" description="Number of EventType entries" blockLength="9" dimensionType="groupSize">
<field name="EventType" id="865" type="EventType" description="Code to represent the type of event" offset="0" semanticType="int"/>
<field name="EventTime" id="1145" type="uInt64" description="Date and Time of instument Activation or Expiration event sent as number of nanoseconds since Unix epoch" offset="1" semanticType="UTCTimestamp"/>
</group>
<group name="NoMDFeedTypes" id="1141" description="Number of FeedType entries" blockLength="4" dimensionType="groupSize">
<field name="MDFeedType" id="1022" type="MDFeedType" description="Describes a class of service for a given data feed. GBX- Real Book, GBI-Implied Book" offset="0" semanticType="String"/>
<field name="MarketDepth" id="264" type="Int8" description="Book depth" offset="3" semanticType="int"/>
</group>
<group name="NoInstAttrib" id="870" description="Number of InstrAttribType entries" blockLength="4" dimensionType="groupSize">
<field name="InstAttribType" id="871" type="InstAttribType" description="Instrument Eligibility Attributes" semanticType="int"/>
<field name="InstAttribValue" id="872" type="InstAttribValue" description="Bitmap field of 32 Boolean type Instrument eligibility flags" offset="0" semanticType="MultipleCharValue"/>
</group>
<group name="NoLotTypeRules" id="1234" description="Number of entries" blockLength="5" dimensionType="groupSize">
<field name="LotType" id="1093" type="Int8" description="This tag is required to interpret the value in tag 1231-MinLotSize" offset="0" semanticType="int"/>
<field name="MinLotSize" id="1231" type="DecimalQty" description="Minimum quantity accepted for order entry. If tag 1093-LotType=4, this value is the minimum quantity for order entry expressed in the applicable units, specified in tag 996-UnitOfMeasure, e.g. megawatts" offset="1" semanticType="Qty"/>
</group>
<group name="NoUnderlyings" id="711" description="Number of underlying instruments" blockLength="24" dimensionType="groupSize">
<field name="UnderlyingSecurityID" id="309" type="Int32" description="Unique Instrument ID as qualified by the exchange per tag 305-UnderlyingSecurityIDSource" offset="0" semanticType="int"/>
<field name="UnderlyingSecurityIDSource" id="305" type="SecurityIDSource" description="This value is always '8' for CME" semanticType="char"/>
<field name="UnderlyingSymbol" id="311" type="UnderlyingSymbol" description="Underlying Instrument Symbol (Contract Name)" offset="4" semanticType="String"/>
</group>
<group name="NoRelatedInstruments" id="1647" description="Number of related instruments group" blockLength="24" dimensionType="groupSize">
<field name="RelatedSecurityID" id="1650" type="Int32" description="Related Security ID" offset="0" semanticType="int"/>
<field name="RelatedSecurityIDSource" id="1651" type="SecurityIDSource" description="Related Security ID source" semanticType="char"/>
<field name="RelatedSymbol" id="1649" type="Symbol" description="Related instrument Symbol" offset="4" semanticType="String"/>
</group>
</ns2:message>
<ns2:message name="MDInstrumentDefinitionSpread56" id="56" description="MDInstrumentDefinitionSpread" blockLength="195" semanticType="d" sinceVersion="9">
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="0" semanticType="MultipleCharValue"/>
<field name="TotNumReports" id="911" type="uInt32NULL" description="Total number of instruments in the Replay loop. Used on Replay Feed only" offset="1" semanticType="int"/>
<field name="SecurityUpdateAction" id="980" type="SecurityUpdateAction" description="Last Security update action on Incremental feed, 'D' or 'M' is used when a mid-week deletion or modification (i.e. extension) occurs" offset="5" semanticType="char"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="Timestamp of when the instrument was last added, modified or deleted" offset="6" semanticType="UTCTimestamp"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current state of the instrument. The data is available in the Instrument Replay feed only" offset="14" semanticType="int"/>
<field name="ApplID" id="1180" type="Int16" description="The channel ID as defined in the XML Configuration file" offset="15" semanticType="int"/>
<field name="MarketSegmentID" id="1300" type="uInt8" description="Identifies the market segment, populated for all CME Globex instruments" offset="17" semanticType="int"/>
<field name="UnderlyingProduct" id="462" type="uInt8NULL" description="Product complex" offset="18" semanticType="int"/>
<field name="SecurityExchange" id="207" type="SecurityExchange" description="Exchange used to identify a security" offset="19" semanticType="Exchange"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group Code" offset="23" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="The underlying asset code also known as Product Code" offset="29" semanticType="String"/>
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol. Previously used as Group Code " offset="35" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Unique instrument ID" offset="55" semanticType="int"/>
<field name="SecurityIDSource" id="22" type="SecurityIDSource" description="Identifies class or source of the security ID (Tag 48) value" semanticType="char"/>
<field name="SecurityType" id="167" type="SecurityType" description="Security Type" offset="59" semanticType="String"/>
<field name="CFICode" id="461" type="CFICode" description="ISO standard instrument categorization code" offset="65" semanticType="String"/>
<field name="MaturityMonthYear" id="200" type="MaturityMonthYear" description="This field provides the actual calendar date for contract maturity" offset="71" semanticType="MonthYear"/>
<field name="Currency" id="15" type="Currency" description="Identifies currency used for price" offset="76" semanticType="Currency"/>
<field name="SecuritySubType" id="762" type="SecuritySubType" description="Strategy type" offset="79" semanticType="String"/>
<field name="UserDefinedInstrument" id="9779" type="UserDefinedInstrument" description="User-defined instruments flag" offset="84" semanticType="char"/>
<field name="MatchAlgorithm" id="1142" type="CHAR" description="Matching algorithm" offset="85" semanticType="char"/>
<field name="MinTradeVol" id="562" type="uInt32" description="The minimum trading volume for a security" offset="86" semanticType="Qty"/>
<field name="MaxTradeVol" id="1140" type="uInt32" description="The maximum trading volume for a security" offset="90" semanticType="Qty"/>
<field name="MinPriceIncrement" id="969" type="PRICENULL9" description="Minimum constant tick for the instrument, sent only if instrument is non-VTT (Variable Tick table) eligible" offset="94" semanticType="Price"/>
<field name="DisplayFactor" id="9787" type="Decimal9" description="Contains the multiplier to convert the CME Globex display price to the conventional price" offset="102" semanticType="float"/>
<field name="PriceDisplayFormat" id="9800" type="uInt8NULL" description="Number of decimals in fractional display price" offset="110" semanticType="int"/>
<field name="PriceRatio" id="5770" type="PRICENULL9" description="Used for price calculation in spread and leg pricing" offset="111" semanticType="Price"/>
<field name="TickRule" id="6350" type="Int8NULL" description="Tick Rule " offset="119" semanticType="int"/>
<field name="UnitOfMeasure" id="996" type="UnitOfMeasure" description="Unit of measure for the products' original contract size" offset="120" semanticType="String"/>
<field name="TradingReferencePrice" id="1150" type="PRICENULL9" description="Reference price - the most recently available Settlement whether it be Theoretical, Preliminary or a Final Settle of the session" offset="150" semanticType="Price"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="158" semanticType="MultipleCharValue"/>
<field name="OpenInterestQty" id="5792" type="Int32NULL" description="The total open interest for the market at the close of the prior trading session" offset="159" semanticType="Qty"/>
<field name="ClearedVolume" id="5791" type="Int32NULL" description="The total cleared volume of instrument traded during the prior trading session" offset="163" semanticType="Qty"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL9" description="Allowable high limit price for the trading day" offset="167" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL9" description="Allowable low limit price for the trading day" offset="175" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL9" description="Differential value for price banding" offset="183" semanticType="Price"/>
<field name="MainFraction" id="37702" type="uInt8NULL" description="Price Denominator of Main Fraction" offset="191" semanticType="int"/>
<field name="SubFraction" id="37703" type="uInt8NULL" description="Price Denominator of Sub Fraction" offset="192" semanticType="int"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates session date corresponding to the settlement price in tag 1150-TradingReferencePrice" offset="193" semanticType="LocalMktDate"/>
<group name="NoEvents" id="864" description="Number of repeating EventType entries" blockLength="9" dimensionType="groupSize">
<field name="EventType" id="865" type="EventType" description="Code to represent the type of event" offset="0" semanticType="int"/>
<field name="EventTime" id="1145" type="uInt64" description="Date and time of instument Activation or Expiration event sent as number of nanoseconds since Unix epoch" offset="1" semanticType="UTCTimestamp"/>
</group>
<group name="NoMDFeedTypes" id="1141" description="Number of FeedType entries" blockLength="4" dimensionType="groupSize">
<field name="MDFeedType" id="1022" type="MDFeedType" description="Describes a class of service for a given data feed. GBX- Real Book, GBI-Implied Book" offset="0" semanticType="String"/>
<field name="MarketDepth" id="264" type="Int8" description="Identifies the depth of book" offset="3" semanticType="int"/>
</group>
<group name="NoInstAttrib" id="870" description="Number of InstrAttribType entries" blockLength="4" dimensionType="groupSize">
<field name="InstAttribType" id="871" type="InstAttribType" description="Instrument Eligibility Attributes" semanticType="int"/>
<field name="InstAttribValue" id="872" type="InstAttribValue" description="Bitmap field of 32 Boolean type Instrument eligibility flags" offset="0" semanticType="MultipleCharValue"/>
</group>
<group name="NoLotTypeRules" id="1234" description="Number of entries" blockLength="5" dimensionType="groupSize">
<field name="LotType" id="1093" type="Int8" description="This tag is required to interpret the value in tag 1231-MinLotSize" offset="0" semanticType="int"/>
<field name="MinLotSize" id="1231" type="DecimalQty" description="Minimum quantity accepted for order entry. If tag 1093-LotType=4, this value is the minimum quantity for order entry expressed in the applicable units, specified in tag 996-UnitOfMeasure, e.g. megawatts" offset="1" semanticType="Qty"/>
</group>
<group name="NoLegs" id="555" description="Number of Leg entries" blockLength="18" dimensionType="groupSize">
<field name="LegSecurityID" id="602" type="Int32" description="Leg Security ID" offset="0" semanticType="int"/>
<field name="LegSecurityIDSource" id="603" type="SecurityIDSource" description="Identifies source of tag 602-LegSecurityID value" semanticType="char"/>
<field name="LegSide" id="624" type="LegSide" description="Leg side" offset="4" semanticType="int"/>
<field name="LegRatioQty" id="623" type="Int8" description="Leg ratio of quantity for this individual leg relative to the entire multi-leg instrument" offset="5" semanticType="Qty"/>
<field name="LegPrice" id="566" type="PRICENULL9" description="Price for the future leg of a UDS Covered instrument " offset="6" semanticType="Price"/>
<field name="LegOptionDelta" id="1017" type="DecimalQty" description="Delta used to calculate the quantity of futures used to cover the option or option strategy" offset="14" semanticType="Qty"/>
</group>
</ns2:message>
</ns2:messageSchema>
@@ -0,0 +1,955 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:messageSchema xmlns:ns2="http://www.fixprotocol.org/ns/simple/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" package="mktdata" id="1" version="9" semanticVersion="FIX5SP2" description="20180308" byteOrder="littleEndian" xsi:schemaLocation="http://www.fixtradingcommunity.org/pg/file/fplpo/read/1196759/simple-binary-encoding-rc2xsd SimpleBinary-RC2.xsd">
<types>
<type name="Asset" description="Asset" length="6" primitiveType="char" semanticType="String"/>
<type name="CFICode" length="6" primitiveType="char" semanticType="String"/>
<type name="CHAR" description="char" primitiveType="char"/>
<type name="Currency" description="Currency" length="3" primitiveType="char" semanticType="Currency"/>
<type name="InstAttribType" description="Eligibility" presence="constant" primitiveType="int8">24</type>
<type name="Int16" description="int16" primitiveType="int16"/>
<type name="Int32" description="int32" primitiveType="int32"/>
<type name="Int32NULL" presence="optional" nullValue="2147483647" primitiveType="int32"/>
<type name="Int8" description="int8" primitiveType="int8"/>
<type name="Int8NULL" description="int8 optional" presence="optional" nullValue="127" primitiveType="int8"/>
<type name="LocalMktDate" presence="optional" nullValue="65535" primitiveType="uint16" semanticType="LocalMktDate"/>
<type name="MDEntryTypeChannelReset" description="Channel Reset message entry type" presence="constant" primitiveType="char">J</type>
<type name="MDEntryTypeLimits" description="MDEntryTypeLimits" presence="constant" primitiveType="char">g</type>
<type name="MDEntryTypeTrade" description="MDEntryTypeTrade" presence="constant" primitiveType="char">2</type>
<type name="MDEntryTypeVol" description="MDEntryTypeVol" presence="constant" primitiveType="char">e</type>
<type name="MDFeedType" length="3" primitiveType="char" semanticType="String"/>
<type name="MDUpdateActionNew" description="MDUpdateActionNew" presence="constant" primitiveType="int8">0</type>
<type name="MDUpdateTypeNew" description="MDUpdateTypeNew" presence="constant" primitiveType="int8">0</type>
<type name="QuoteReqId" length="23" primitiveType="char" semanticType="String"/>
<type name="SecurityExchange" length="4" primitiveType="char" semanticType="Exchange"/>
<type name="SecurityGroup" length="6" primitiveType="char" semanticType="String"/>
<type name="SecurityIDSource" description="SecurityIDSource" presence="constant" length="1" primitiveType="char" semanticType="char">8</type>
<type name="SecuritySubType" length="5" primitiveType="char" semanticType="String"/>
<type name="SecurityType" description="SecurityType" length="6" primitiveType="char" semanticType="String"/>
<type name="Symbol" description="Symbol" length="20" primitiveType="char" semanticType="String"/>
<type name="Text" description="Text" length="180" primitiveType="char" semanticType="String"/>
<type name="UnderlyingSymbol" length="20" primitiveType="char" semanticType="String"/>
<type name="UnitOfMeasure" length="30" primitiveType="char" semanticType="String"/>
<type name="UserDefinedInstrument" length="1" primitiveType="char" semanticType="char"/>
<type name="uInt32" description="uInt32" primitiveType="uint32"/>
<type name="uInt32NULL" description="uInt32 optional" presence="optional" nullValue="4294967295" primitiveType="uint32"/>
<type name="uInt64" description="uInt64" primitiveType="uint64"/>
<type name="uInt64NULL" description="uInt64 optional" presence="optional" nullValue="18446744073709551615" primitiveType="uint64" sinceVersion="7"/>
<type name="uInt8" description="uInt8" primitiveType="uint8"/>
<type name="uInt8NULL" description="uInt8NULL" presence="optional" nullValue="255" primitiveType="uint8"/>
<composite name="Decimal9" description="Decimal with constant exponent -9" sinceVersion="9">
<type name="mantissa" description="mantissa" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-9</type>
</composite>
<composite name="Decimal9NULL" description="Optional Decimal with constant exponent -9 " sinceVersion="9">
<type name="mantissa" description="mantissa" presence="optional" nullValue="9223372036854775807" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-9</type>
</composite>
<composite name="DecimalQty" description="A number representing quantity" semanticType="Qty">
<type name="mantissa" description="mantissa " presence="optional" nullValue="2147483647" primitiveType="int32"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-4</type>
</composite>
<composite name="FLOAT" description="Decimal">
<type name="mantissa" description="mantissa" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-7</type>
</composite>
<composite name="MaturityMonthYear" description="Year, Month and Date" semanticType="MonthYear">
<type name="year" description="YYYY" presence="optional" nullValue="65535" primitiveType="uint16"/>
<type name="month" description="MM" presence="optional" nullValue="255" primitiveType="uint8"/>
<type name="day" description="DD" presence="optional" nullValue="255" primitiveType="uint8"/>
<type name="week" description="WW" presence="optional" nullValue="255" primitiveType="uint8"/>
</composite>
<composite name="PRICE" description="PRICE">
<type name="mantissa" description="mantissa" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-7</type>
</composite>
<composite name="PRICE9" description="Price with constant exponent -9" sinceVersion="9">
<type name="mantissa" description="mantissa" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-9</type>
</composite>
<composite name="PRICENULL" description="Price NULL">
<type name="mantissa" description="mantissa" presence="optional" nullValue="9223372036854775807" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-7</type>
</composite>
<composite name="PRICENULL9" description="Optional Price with constant exponent -9" sinceVersion="9">
<type name="mantissa" description="mantissa" presence="optional" nullValue="9223372036854775807" primitiveType="int64"/>
<type name="exponent" description="exponent" presence="constant" primitiveType="int8">-9</type>
</composite>
<composite name="groupSize" description="Repeating group dimensions" semanticType="NumInGroup">
<type name="blockLength" primitiveType="uint16"/>
<type name="numInGroup" primitiveType="uint8"/>
</composite>
<composite name="groupSize8Byte" description="8 Byte aligned repeating group dimensions" semanticType="NumInGroup">
<type name="blockLength" description="Length" primitiveType="uint16"/>
<type name="numInGroup" description="NumInGroup" offset="7" primitiveType="uint8"/>
</composite>
<composite name="groupSizeEncoding" description="Repeating group dimensions">
<type name="blockLength" primitiveType="uint16" semanticType="Length"/>
<type name="numInGroup" primitiveType="uint16" semanticType="NumInGroup"/>
</composite>
<composite name="messageHeader" description="Template ID and length of message root">
<type name="blockLength" primitiveType="uint16"/>
<type name="templateId" primitiveType="uint16"/>
<type name="schemaId" primitiveType="uint16"/>
<type name="version" primitiveType="uint16"/>
</composite>
<enum name="AggressorSide" encodingType="uInt8NULL">
<validValue name="NoAggressor" description="No Aggressor">0</validValue>
<validValue name="Buy" description="Buy">1</validValue>
<validValue name="Sell" description="Sell">2</validValue>
</enum>
<enum name="EventType" encodingType="uInt8">
<validValue name="Activation" description="Activation">5</validValue>
<validValue name="LastEligibleTradeDate" description="Last Eligible Trade Date">7</validValue>
</enum>
<enum name="HaltReason" encodingType="uInt8">
<validValue name="GroupSchedule" description="Group Schedule">0</validValue>
<validValue name="SurveillanceIntervention" description="Surveillance Intervention ">1</validValue>
<validValue name="MarketEvent" description="Market Event ">2</validValue>
<validValue name="InstrumentActivation" description="Instrument Activation">3</validValue>
<validValue name="InstrumentExpiration" description="Instrument Expiration">4</validValue>
<validValue name="Unknown" description="Unknown">5</validValue>
<validValue name="RecoveryInProcess" description="Recovery In Process" sinceVersion="3">6</validValue>
</enum>
<enum name="LegSide" encodingType="uInt8">
<validValue name="BuySide" description="Buy Side">1</validValue>
<validValue name="SellSide" description="Sell Side">2</validValue>
</enum>
<enum name="MDEntryType" encodingType="CHAR">
<validValue name="Bid" description="Bid">0</validValue>
<validValue name="Offer" description="Offer">1</validValue>
<validValue name="Trade" description="Trade">2</validValue>
<validValue name="OpenPrice" description="Open Price">4</validValue>
<validValue name="SettlementPrice" description="Settlement Price">6</validValue>
<validValue name="TradingSessionHighPrice" description="Trading Session High Price">7</validValue>
<validValue name="TradingSessionLowPrice" description="Trading Session Low Price">8</validValue>
<validValue name="ClearedVolume" description="Cleared Volume">B</validValue>
<validValue name="OpenInterest" description="Open Interest">C</validValue>
<validValue name="ImpliedBid" description="Implied Bid">E</validValue>
<validValue name="ImpliedOffer" description="Implied Offer">F</validValue>
<validValue name="BookReset" description="Book Reset">J</validValue>
<validValue name="SessionHighBid" description="Session High Bid">N</validValue>
<validValue name="SessionLowOffer" description="Session Low Offer">O</validValue>
<validValue name="FixingPrice" description="Fixing Price">W</validValue>
<validValue name="ElectronicVolume" description="Electronic Volume">e</validValue>
<validValue name="ThresholdLimitsandPriceBandVariation" description="Threshold Limits and Price Band Variation">g</validValue>
</enum>
<enum name="MDEntryTypeBook" encodingType="CHAR">
<validValue name="Bid" description="Bid">0</validValue>
<validValue name="Offer" description="Offer">1</validValue>
<validValue name="ImpliedBid" description="Implied Bid">E</validValue>
<validValue name="ImpliedOffer" description="Implied Offer">F</validValue>
<validValue name="BookReset" description="Book Reset">J</validValue>
</enum>
<enum name="MDEntryTypeDailyStatistics" encodingType="CHAR">
<validValue name="SettlementPrice" description="Settlement Price">6</validValue>
<validValue name="ClearedVolume" description="Cleared Volume">B</validValue>
<validValue name="OpenInterest" description="Open Interest">C</validValue>
<validValue name="FixingPrice" description="Fixing Price">W</validValue>
</enum>
<enum name="MDEntryTypeStatistics" encodingType="CHAR">
<validValue name="OpenPrice" description="Open Price">4</validValue>
<validValue name="HighTrade" description="High Trade">7</validValue>
<validValue name="LowTrade" description="Low Trade">8</validValue>
<validValue name="HighestBid" description="Highest Bid">N</validValue>
<validValue name="LowestOffer" description="Lowest Offer">O</validValue>
</enum>
<enum name="MDUpdateAction" encodingType="uInt8">
<validValue name="New" description="New">0</validValue>
<validValue name="Change" description="Change">1</validValue>
<validValue name="Delete" description="Delete">2</validValue>
<validValue name="DeleteThru" description="Delete Thru">3</validValue>
<validValue name="DeleteFrom" description="Delete From">4</validValue>
<validValue name="Overlay" description="Overlay">5</validValue>
</enum>
<enum name="OpenCloseSettlFlag" encodingType="uInt8NULL">
<validValue name="DailyOpenPrice" description="Daily Open Price">0</validValue>
<validValue name="IndicativeOpeningPrice" description="Indicative Opening Price">5</validValue>
</enum>
<enum name="OrderUpdateAction" encodingType="uInt8" sinceVersion="7">
<validValue name="New" description="New">0</validValue>
<validValue name="Update" description="Update">1</validValue>
<validValue name="Delete" description="Delete">2</validValue>
</enum>
<enum name="PutOrCall" encodingType="uInt8" sinceVersion="3">
<validValue name="Put" description="Put Option">0</validValue>
<validValue name="Call" description="Call Option">1</validValue>
</enum>
<enum name="SecurityTradingEvent" encodingType="uInt8">
<validValue name="NoEvent" description="No Event">0</validValue>
<validValue name="NoCancel" description="No Cancel">1</validValue>
<validValue name="ResetStatistics" description="Reset Statistics">4</validValue>
<validValue name="ImpliedMatchingON" description="Implied Matching ON">5</validValue>
<validValue name="ImpliedMatchingOFF" description="Implied Matching OFF">6</validValue>
</enum>
<enum name="SecurityTradingStatus" encodingType="uInt8NULL">
<validValue name="TradingHalt" description="Trading Halt">2</validValue>
<validValue name="Close" description="Close">4</validValue>
<validValue name="NewPriceIndication" description="New Price Indication">15</validValue>
<validValue name="ReadyToTrade" description="Ready To Trade">17</validValue>
<validValue name="NotAvailableForTrading" description="Not Available For Trading">18</validValue>
<validValue name="UnknownorInvalid" description="Unknown or Invalid">20</validValue>
<validValue name="PreOpen" description="Pre Open">21</validValue>
<validValue name="PreCross" description="Pre Cross">24</validValue>
<validValue name="Cross" description="Cross">25</validValue>
<validValue name="PostClose" description="Post Close">26</validValue>
<validValue name="NoChange" description="No Change">103</validValue>
</enum>
<enum name="SecurityUpdateAction" encodingType="CHAR">
<validValue name="Add" description="Add">A</validValue>
<validValue name="Delete" description="Delete">D</validValue>
<validValue name="Modify" description="Modify">M</validValue>
</enum>
<set name="InstAttribValue" encodingType="uInt32">
<choice name="ElectronicMatchEligible" description="1=Electronic Match Eligible">0</choice>
<choice name="OrderCrossEligible" description="1=Order Cross Eligible">1</choice>
<choice name="BlockTradeEligible" description="1=Block Trade Eligible">2</choice>
<choice name="EFPEligible" description="1=EFP Eligible">3</choice>
<choice name="EBFEligible" description="1=EBF Eligible">4</choice>
<choice name="EFSEligible" description="1=EFS Eligible">5</choice>
<choice name="EFREligible" description="1=EFR Eligible">6</choice>
<choice name="OTCEligible" description="1=OTC Eligible">7</choice>
<choice name="iLinkIndicativeMassQuotingEligible" description="1=iLink Indicative Mass Quoting Eligible">8</choice>
<choice name="NegativeStrikeEligible" description="1=Negative Strike Eligible">9</choice>
<choice name="NegativePriceOutrightEligible" description="1=Negative Price Outright Eligible">10</choice>
<choice name="IsFractional" description="1=Indicates product has fractional display price">11</choice>
<choice name="VolatilityQuotedOption" description="1=Volatility Quoted Option">12</choice>
<choice name="RFQCrossEligible" description="1=RFQ Cross Eligible">13</choice>
<choice name="ZeroPriceOutrightEligible" description="1=Zero Price Outright Eligible">14</choice>
<choice name="DecayingProductEligibility" description="1=Decaying Product Eligibility">15</choice>
<choice name="VariableProductEligibility" description="1=Variable Product Eligibility">16</choice>
<choice name="DailyProductEligibility" description="1=Daily Product Eligibility">17</choice>
<choice name="GTOrdersEligibility" description="1=GT Orders Eligibility">18</choice>
<choice name="ImpliedMatchingEligibility" description="1=Implied Matching Eligibility">19</choice>
<choice name="TriangulationEligible" description="1=Triangulation Eligible" sinceVersion="9">20</choice>
<choice name="VariableCabEligible" description="1=Variable Cab Eligible" sinceVersion="9">21</choice>
</set>
<set name="MatchEventIndicator" encodingType="uInt8">
<choice name="LastTradeMsg" description="1=Last trade message for the event, 0=Not last">0</choice>
<choice name="LastVolumeMsg" description="1=Last electronic volume message, 0=Not last">1</choice>
<choice name="LastQuoteMsg" description="1=Last real quote message, 0=Not last">2</choice>
<choice name="LastStatsMsg" description="1=Last statistics message, 0=Not last">3</choice>
<choice name="LastImpliedMsg" description="1=Last implied quote message, 0=Not last">4</choice>
<choice name="RecoveryMsg" description="1=Message is sent during recovery process">5</choice>
<choice name="Reserved" description="0=Reserved for future use">6</choice>
<choice name="EndOfEvent" description="1=Last message for the event, 0=Not last">7</choice>
</set>
<set name="SettlPriceType" encodingType="uInt8">
<choice name="FinalDaily" description="1=FinalDaily, 0=Preliminary">0</choice>
<choice name="Actual" description="1=Actual, 0=Theoretically Calculated">1</choice>
<choice name="Rounded" description="1=Rounded, 0=Non-Rounded or Undefined">2</choice>
<choice name="Intraday" description="1=Intraday, 0=Undefined" sinceVersion="4">3</choice>
<choice name="ReservedBits" description="Bits 4-6 are reserved">4</choice>
<choice name="NullValue" description="1=Entire set is NULL, 0=not NULL">7</choice>
</set>
</types>
<ns2:message name="ChannelReset4" id="4" description="ChannelReset" blockLength="9" semanticType="X">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="2" dimensionType="groupSize">
<field name="MDUpdateAction" id="279" type="MDUpdateTypeNew" description="Market Data update action" sinceVersion="2" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeChannelReset" description="Market Data entry type " semanticType="char"/>
<field name="ApplID" id="1180" type="Int16" description="Indicates the channel ID as defined in the XML configuration file" offset="0" sinceVersion="3" semanticType="int"/>
</group>
</ns2:message>
<ns2:message name="AdminHeartbeat12" id="12" description="AdminHeartbeat" blockLength="0" semanticType="0"/>
<ns2:message name="AdminLogin15" id="15" description="AdminLogin" blockLength="1" semanticType="A">
<field name="HeartBtInt" id="108" type="Int8" description="Heartbeat interval (seconds)" offset="0" semanticType="int"/>
</ns2:message>
<ns2:message name="AdminLogout16" id="16" description="AdminLogout" blockLength="180" semanticType="5">
<field name="Text" id="58" type="Text" description="Free format text string. May include logout confirmation or reason for logout" offset="0" semanticType="String"/>
</ns2:message>
<ns2:message name="MDInstrumentDefinitionFuture27" id="27" description="MDInstrumentDefinitionFuture" blockLength="216" semanticType="d" sinceVersion="2">
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="0" semanticType="MultipleCharValue"/>
<field name="TotNumReports" id="911" type="uInt32NULL" description="Total number of instruments in the Replay loop. Used on Replay Feed only " offset="1" semanticType="int"/>
<field name="SecurityUpdateAction" id="980" type="SecurityUpdateAction" description="Last Security update action on Incremental feed, 'D' or 'M' is used when a mid-week deletion or modification (i.e. extension) occurs" offset="5" semanticType="char"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="Timestamp of when the instrument was last added, modified or deleted" offset="6" semanticType="UTCTimestamp"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current state of the instrument. In Security Definition message this tag is available in the Instrument Replay feed only " offset="14" semanticType="int"/>
<field name="ApplID" id="1180" type="Int16" description="The channel ID as defined in the XML Configuration file" offset="15" semanticType="int"/>
<field name="MarketSegmentID" id="1300" type="uInt8" description="Identifies the market segment, populated for all CME Globex instruments" offset="17" semanticType="int"/>
<field name="UnderlyingProduct" id="462" type="uInt8" description="Product complex" offset="18" semanticType="int"/>
<field name="SecurityExchange" id="207" type="SecurityExchange" description="Exchange used to identify a security" offset="19" semanticType="Exchange"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group Code." offset="23" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="The underlying asset code also known as Product Code" offset="29" semanticType="String"/>
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol " offset="35" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Unique instrument ID" offset="55" semanticType="int"/>
<field name="SecurityIDSource" id="22" type="SecurityIDSource" description="Identifies class or source of tag 48-SecurityID value" semanticType="char"/>
<field name="SecurityType" id="167" type="SecurityType" description="Security Type" offset="59" semanticType="String"/>
<field name="CFICode" id="461" type="CFICode" description="ISO standard instrument categorization code" offset="65" semanticType="String"/>
<field name="MaturityMonthYear" id="200" type="MaturityMonthYear" description="This field provides the actual calendar date for contract maturity" offset="71" semanticType="MonthYear"/>
<field name="Currency" id="15" type="Currency" description="Identifies currency used for price" offset="76" semanticType="Currency"/>
<field name="SettlCurrency" id="120" type="Currency" description="Identifies currency used for settlement, if different from trading currency" offset="79" semanticType="Currency"/>
<field name="MatchAlgorithm" id="1142" type="CHAR" description="Matching algorithm " offset="82" semanticType="char"/>
<field name="MinTradeVol" id="562" type="uInt32" description="The minimum trading volume for a security" offset="83" semanticType="Qty"/>
<field name="MaxTradeVol" id="1140" type="uInt32" description="The maximum trading volume for a security" offset="87" semanticType="Qty"/>
<field name="MinPriceIncrement" id="969" type="PRICE" description="Minimum constant tick for the instrument, sent only if instrument is non-VTT (Variable Tick table) eligible" offset="91" semanticType="Price"/>
<field name="DisplayFactor" id="9787" type="FLOAT" description="Contains the multiplier to convert the CME Globex display price to the conventional price" offset="99" semanticType="float"/>
<field name="MainFraction" id="37702" type="uInt8NULL" description="Price Denominator of Main Fraction" offset="107" semanticType="int"/>
<field name="SubFraction" id="37703" type="uInt8NULL" description="Price Denominator of Sub Fraction" offset="108" semanticType="int"/>
<field name="PriceDisplayFormat" id="9800" type="uInt8NULL" description="Number of decimals in fractional display price" offset="109" semanticType="int"/>
<field name="UnitOfMeasure" id="996" type="UnitOfMeasure" description="Unit of measure for the products' original contract size. This will be populated for all products listed on CME Globex" offset="110" semanticType="String"/>
<field name="UnitOfMeasureQty" id="1147" type="PRICENULL" description="This field contains the contract size for each instrument. Used in combination with tag 996-UnitofMeasure" offset="140" semanticType="Qty"/>
<field name="TradingReferencePrice" id="1150" type="PRICENULL" description="Reference price for prelisted instruments or the last calculated Settlement whether it be Theoretical, Preliminary or a Final Settle of the session." offset="148" semanticType="Price"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="156" semanticType="MultipleCharValue"/>
<field name="OpenInterestQty" id="5792" type="Int32NULL" description="The total open interest for the market at the close of the prior trading session." offset="157" semanticType="int"/>
<field name="ClearedVolume" id="5791" type="Int32NULL" description="The total cleared volume of instrument traded during the prior trading session." offset="161" semanticType="int"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL" description="Allowable high limit price for the trading day" offset="165" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL" description="Allowable low limit price for the trading day" offset="173" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL" description="Differential value for price banding." offset="181" semanticType="Price"/>
<field name="DecayQuantity" id="5818" type="Int32NULL" description="Indicates the quantity that a contract will decay daily by once the decay start date is reached" offset="189" semanticType="Qty"/>
<field name="DecayStartDate" id="5819" type="LocalMktDate" description="Indicates the date at which a decaying contract will begin to decay" offset="193" semanticType="LocalMktDate"/>
<field name="OriginalContractSize" id="5849" type="Int32NULL" description="Fixed contract value assigned to each product" offset="195" semanticType="Qty"/>
<field name="ContractMultiplier" id="231" type="Int32NULL" description="Number of deliverable units per instrument, e.g., peak days in maturity month or number of calendar days in maturity month" offset="199" semanticType="int"/>
<field name="ContractMultiplierUnit" id="1435" type="Int8NULL" description="Indicates the type of multiplier being applied to the product. Optionally used in combination with tag 231-ContractMultiplier" offset="203" semanticType="int"/>
<field name="FlowScheduleType" id="1439" type="Int8NULL" description="The schedule according to which the electricity is delivered in a physical contract, or priced in a financial contract. Specifies whether the contract is defined according to the Easter Peak, Eastern Off-Peak, Western Peak or Western Off-Peak." offset="204" semanticType="int"/>
<field name="MinPriceIncrementAmount" id="1146" type="PRICENULL" description="Monetary value equivalent to the minimum price fluctuation" offset="205" semanticType="Price"/>
<field name="UserDefinedInstrument" id="9779" type="UserDefinedInstrument" description="User-defined instruments flag" offset="213" sinceVersion="3" semanticType="char"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates session date corresponding to the settlement price in tag 1150-TradingReferencePrice" offset="214" sinceVersion="6" semanticType="LocalMktDate"/>
<group name="NoEvents" id="864" description="Number of repeating EventType entries" blockLength="9" dimensionType="groupSize">
<field name="EventType" id="865" type="EventType" description="Code to represent the type of event" offset="0" semanticType="int"/>
<field name="EventTime" id="1145" type="uInt64" description="Date and Time of instument Activation or Expiration event sent as number of nanoseconds since Unix epoch" offset="1" semanticType="UTCTimestamp"/>
</group>
<group name="NoMDFeedTypes" id="1141" description="Number of repeating FeedType entries" blockLength="4" dimensionType="groupSize">
<field name="MDFeedType" id="1022" type="MDFeedType" description="Describes a class of service for a given data feed. GBX- Real Book, GBI-Implied Book" offset="0" semanticType="String"/>
<field name="MarketDepth" id="264" type="Int8" description="Book depth" offset="3" semanticType="int"/>
</group>
<group name="NoInstAttrib" id="870" description="Number of repeating InstrAttribType entries" blockLength="4" dimensionType="groupSize">
<field name="InstAttribType" id="871" type="InstAttribType" description="Instrument eligibility attributes" semanticType="int"/>
<field name="InstAttribValue" id="872" type="InstAttribValue" description="Bitmap field of 32 Boolean type instrument eligibility flags" offset="0" semanticType="MultipleCharValue"/>
</group>
<group name="NoLotTypeRules" id="1234" description="Number of entries" blockLength="5" dimensionType="groupSize">
<field name="LotType" id="1093" type="Int8" description="This tag is required to interpret the value in tag 1231-MinLotSize" offset="0" semanticType="int"/>
<field name="MinLotSize" id="1231" type="DecimalQty" description="Minimum quantity accepted for order entry. If tag 1093-LotType=4, this value is the minimum quantity for order entry expressed in the applicable units, specified in tag 996-UnitOfMeasure, e.g. megawatts" offset="1" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="MDInstrumentDefinitionSpread29" id="29" description="MDInstrumentDefinitionSpread" blockLength="195" semanticType="d" sinceVersion="2">
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="0" semanticType="MultipleCharValue"/>
<field name="TotNumReports" id="911" type="uInt32NULL" description="Total number of instruments in the Replay loop. Used on Replay Feed only" offset="1" semanticType="int"/>
<field name="SecurityUpdateAction" id="980" type="SecurityUpdateAction" description="Last Security update action on Incremental feed, 'D' or 'M' is used when a mid-week deletion or modification (i.e. extension) occurs" offset="5" semanticType="char"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="Timestamp of when the instrument was last added, modified or deleted" offset="6" semanticType="UTCTimestamp"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current state of the instrument. The data is available in the Instrument Replay feed only" offset="14" semanticType="int"/>
<field name="ApplID" id="1180" type="Int16" description="The channel ID as defined in the XML Configuration file" offset="15" semanticType="int"/>
<field name="MarketSegmentID" id="1300" type="uInt8" description="Identifies the market segment, populated for all CME Globex instruments" offset="17" semanticType="int"/>
<field name="UnderlyingProduct" id="462" type="uInt8NULL" description="Product complex" offset="18" semanticType="int"/>
<field name="SecurityExchange" id="207" type="SecurityExchange" description="Exchange used to identify a security" offset="19" semanticType="Exchange"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group Code" offset="23" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="The underlying asset code also known as Product Code" offset="29" semanticType="String"/>
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol. Previously used as Group Code " offset="35" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Unique instrument ID" offset="55" semanticType="int"/>
<field name="SecurityIDSource" id="22" type="SecurityIDSource" description="Identifies class or source of the security ID (Tag 48) value" semanticType="char"/>
<field name="SecurityType" id="167" type="SecurityType" description="Security Type" offset="59" semanticType="String"/>
<field name="CFICode" id="461" type="CFICode" description="ISO standard instrument categorization code" offset="65" semanticType="String"/>
<field name="MaturityMonthYear" id="200" type="MaturityMonthYear" description="This field provides the actual calendar date for contract maturity" offset="71" semanticType="MonthYear"/>
<field name="Currency" id="15" type="Currency" description="Identifies currency used for price" offset="76" semanticType="Currency"/>
<field name="SecuritySubType" id="762" type="SecuritySubType" description="Strategy type" offset="79" semanticType="String"/>
<field name="UserDefinedInstrument" id="9779" type="UserDefinedInstrument" description="User-defined instruments flag" offset="84" semanticType="char"/>
<field name="MatchAlgorithm" id="1142" type="CHAR" description="Matching algorithm" offset="85" semanticType="char"/>
<field name="MinTradeVol" id="562" type="uInt32" description="The minimum trading volume for a security" offset="86" semanticType="Qty"/>
<field name="MaxTradeVol" id="1140" type="uInt32" description="The maximum trading volume for a security" offset="90" semanticType="Qty"/>
<field name="MinPriceIncrement" id="969" type="PRICE" description="Minimum constant tick for the instrument, sent only if instrument is non-VTT (Variable Tick table) eligible" offset="94" semanticType="Price"/>
<field name="DisplayFactor" id="9787" type="FLOAT" description="Contains the multiplier to convert the CME Globex display price to the conventional price" offset="102" semanticType="float"/>
<field name="PriceDisplayFormat" id="9800" type="uInt8NULL" description="Number of decimals in fractional display price" offset="110" semanticType="int"/>
<field name="PriceRatio" id="5770" type="PRICENULL" description="Used for price calculation in spread and leg pricing" offset="111" semanticType="Price"/>
<field name="TickRule" id="6350" type="Int8NULL" description="Tick Rule " offset="119" semanticType="int"/>
<field name="UnitOfMeasure" id="996" type="UnitOfMeasure" description="Unit of measure for the products' original contract size" offset="120" semanticType="String"/>
<field name="TradingReferencePrice" id="1150" type="PRICENULL" description="Reference price - the most recently available Settlement whether it be Theoretical, Preliminary or a Final Settle of the session" offset="150" semanticType="Price"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="158" semanticType="MultipleCharValue"/>
<field name="OpenInterestQty" id="5792" type="Int32NULL" description="The total open interest for the market at the close of the prior trading session" offset="159" semanticType="Qty"/>
<field name="ClearedVolume" id="5791" type="Int32NULL" description="The total cleared volume of instrument traded during the prior trading session" offset="163" semanticType="Qty"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL" description="Allowable high limit price for the trading day" offset="167" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL" description="Allowable low limit price for the trading day" offset="175" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL" description="Differential value for price banding" offset="183" semanticType="Price"/>
<field name="MainFraction" id="37702" type="uInt8NULL" description="Price Denominator of Main Fraction" offset="191" semanticType="int"/>
<field name="SubFraction" id="37703" type="uInt8NULL" description="Price Denominator of Sub Fraction" offset="192" semanticType="int"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates session date corresponding to the settlement price in tag 1150-TradingReferencePrice" offset="193" sinceVersion="6" semanticType="LocalMktDate"/>
<group name="NoEvents" id="864" description="Number of repeating EventType entries" blockLength="9" dimensionType="groupSize">
<field name="EventType" id="865" type="EventType" description="Code to represent the type of event" offset="0" semanticType="int"/>
<field name="EventTime" id="1145" type="uInt64" description="Date and time of instument Activation or Expiration event sent as number of nanoseconds since Unix epoch" offset="1" semanticType="UTCTimestamp"/>
</group>
<group name="NoMDFeedTypes" id="1141" description="Number of FeedType entries" blockLength="4" dimensionType="groupSize">
<field name="MDFeedType" id="1022" type="MDFeedType" description="Describes a class of service for a given data feed. GBX- Real Book, GBI-Implied Book" offset="0" semanticType="String"/>
<field name="MarketDepth" id="264" type="Int8" description="Identifies the depth of book" offset="3" semanticType="int"/>
</group>
<group name="NoInstAttrib" id="870" description="Number of InstrAttribType entries" blockLength="4" dimensionType="groupSize">
<field name="InstAttribType" id="871" type="InstAttribType" description="Instrument Eligibility Attributes" semanticType="int"/>
<field name="InstAttribValue" id="872" type="InstAttribValue" description="Bitmap field of 32 Boolean type Instrument eligibility flags" offset="0" semanticType="MultipleCharValue"/>
</group>
<group name="NoLotTypeRules" id="1234" description="Number of entries" blockLength="5" dimensionType="groupSize">
<field name="LotType" id="1093" type="Int8" description="This tag is required to interpret the value in tag 1231-MinLotSize" offset="0" semanticType="int"/>
<field name="MinLotSize" id="1231" type="DecimalQty" description="Minimum quantity accepted for order entry. If tag 1093-LotType=4, this value is the minimum quantity for order entry expressed in the applicable units, specified in tag 996-UnitOfMeasure, e.g. megawatts" offset="1" semanticType="Qty"/>
</group>
<group name="NoLegs" id="555" description="Number of Leg entries" blockLength="18" dimensionType="groupSize">
<field name="LegSecurityID" id="602" type="Int32" description="Leg Security ID" offset="0" semanticType="int"/>
<field name="LegSecurityIDSource" id="603" type="SecurityIDSource" description="Identifies source of tag 602-LegSecurityID value" semanticType="char"/>
<field name="LegSide" id="624" type="LegSide" description="Leg side" offset="4" semanticType="int"/>
<field name="LegRatioQty" id="623" type="Int8" description="Leg ratio of quantity for this individual leg relative to the entire multi-leg instrument" offset="5" semanticType="Qty"/>
<field name="LegPrice" id="566" type="PRICENULL" description="Price for the future leg of a UDS Covered instrument " offset="6" semanticType="Price"/>
<field name="LegOptionDelta" id="1017" type="DecimalQty" description="Delta used to calculate the quantity of futures used to cover the option or option strategy" offset="14" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="SecurityStatus30" id="30" description="SecurityStatus" blockLength="30" semanticType="f" sinceVersion="2">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch." offset="0" semanticType="UTCTimestamp"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group" offset="8" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="Product Code within Security Group specified" offset="14" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32NULL" description="If this tag is present, 35=f message is sent for the instrument" offset="20" semanticType="int"/>
<field name="TradeDate" id="75" type="LocalMktDate" description="Trade Session Date" offset="24" semanticType="LocalMktDate"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="26" semanticType="MultipleCharValue"/>
<field name="SecurityTradingStatus" id="326" type="SecurityTradingStatus" description="Identifies the trading status applicable to the instrument or Security Group" offset="27" semanticType="int"/>
<field name="HaltReason" id="327" type="HaltReason" description="Identifies the reason for the status change" offset="28" semanticType="int"/>
<field name="SecurityTradingEvent" id="1174" type="SecurityTradingEvent" description="Identifies an additional event or a rule related to the status" offset="29" semanticType="int"/>
</ns2:message>
<ns2:message name="MDIncrementalRefreshBook32" id="32" description="MDIncrementalRefreshBook" blockLength="11" semanticType="X" sinceVersion="2">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="32" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICENULL" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Market Data entry size" offset="8" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="12" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Market Data entry sequence number per instrument update" offset="16" semanticType="int"/>
<field name="NumberOfOrders" id="346" type="Int32NULL" description="In Book entry - aggregate number of orders at given price level" offset="20" semanticType="int"/>
<field name="MDPriceLevel" id="1023" type="uInt8" description="Aggregate book level" offset="24" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description=" Market Data update action" offset="25" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeBook" description="Market Data entry type" offset="26" semanticType="char"/>
</group>
<group name="NoOrderIDEntries" id="37705" description="Number of OrderID entries" blockLength="24" sinceVersion="7" dimensionType="groupSize8Byte">
<field name="OrderID" id="37" type="uInt64" description="Unique Order ID" offset="0" semanticType="int"/>
<field name="MDOrderPriority" id="37707" type="uInt64NULL" description="Order priority for execution on the order book" offset="8" semanticType="int"/>
<field name="MDDisplayQty" id="37706" type="Int32NULL" description="Visible qty of order" offset="16" semanticType="int"/>
<field name="ReferenceID" id="9633" type="uInt8NULL" description="Reference to corresponding Price and Security ID, sequence of MD entry in the message" offset="20" semanticType="int"/>
<field name="OrderUpdateAction" id="37708" type="OrderUpdateAction" description="Order book update action to be applied to the order referenced by OrderID" offset="21" semanticType="int"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshDailyStatistics33" id="33" description="MDIncrementalRefreshDailyStatistics" blockLength="11" semanticType="X" sinceVersion="2">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="32" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICENULL" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Market Data entry size" offset="8" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="12" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Market Data entry sequence number per instrument update" offset="16" semanticType="int"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates trade session date corresponding to a statistic entry" offset="20" semanticType="LocalMktDate"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="22" semanticType="MultipleCharValue"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action" offset="23" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeDailyStatistics" description="Market Data entry type" offset="24" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshLimitsBanding34" id="34" description="MDIncrementalRefreshLimitsBanding" blockLength="11" semanticType="X" sinceVersion="2">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="32" dimensionType="groupSize">
<field name="HighLimitPrice" id="1149" type="PRICENULL" description="Upper price threshold for the instrument" offset="0" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL" description="Lower price threshold for the instrument" offset="8" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL" description="Differential static value for price banding" offset="16" semanticType="Price"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="24" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="MD Entry sequence number per instrument update" offset="28" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateActionNew" description="Market Data entry update action. In order to delete banding value, high or low limit, the deleted price field is populated with a NULL " semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeLimits" description="Market Data entry type " semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshSessionStatistics35" id="35" description="MDIncrementalRefreshSessionStatistics" blockLength="11" semanticType="X" sinceVersion="2">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="24" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICE" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="8" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="MD Entry sequence number per instrument update" offset="12" semanticType="int"/>
<field name="OpenCloseSettlFlag" id="286" type="OpenCloseSettlFlag" description="Flag describing IOP and Open Price entries" offset="16" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action " offset="17" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeStatistics" description="Market Data entry type " offset="18" semanticType="char"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Indicative Opening Quantity " offset="19" sinceVersion="8" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshVolume37" id="37" description="MDIncrementalRefreshVolume" blockLength="11" semanticType="X" sinceVersion="2">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="16" dimensionType="groupSize">
<field name="MDEntrySize" id="271" type="Int32" description="Cumulative traded volume" offset="0" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="4" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Market Data entry sequence number per instrument update" offset="8" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action" offset="12" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeVol" description="Electronic Volume entry provides cumulative session trade volume updated with the event" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="SnapshotFullRefresh38" id="38" description="SnapshotFullRefresh" blockLength="59" semanticType="W" sinceVersion="2">
<field name="LastMsgSeqNumProcessed" id="369" type="uInt32" description="Sequence number of the last Incremental feed packet processed. This value is used to synchronize the snapshot loop with the real-time feed" offset="0" semanticType="SeqNum"/>
<field name="TotNumReports" id="911" type="uInt32" description="Total number of messages replayed in the loop" offset="4" semanticType="int"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="8" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Sequence number of the last Market Data entry processed for the instrument" offset="12" semanticType="SeqNum"/>
<field name="TransactTime" id="60" type="uInt64" description="Timestamp of the last event security participated in, sent as number of nanoseconds since Unix epoch" offset="16" semanticType="UTCTimestamp"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="UTC Date and time of last Security Definition add, update or delete on a given Market Data channel" offset="24" semanticType="UTCTimestamp"/>
<field name="TradeDate" id="75" type="LocalMktDate" description="Trade session date sent as number of days since Unix epoch" offset="32" semanticType="LocalMktDate"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current trading state of the instrument" offset="34" semanticType="int"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL" description="Upper price threshold for the instrument" offset="35" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL" description="Lower price threshold for the instrument" offset="43" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL" description="Differential value for price banding" offset="51" semanticType="Price"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="22" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICENULL" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Market Data entry quantity" offset="8" semanticType="Qty"/>
<field name="NumberOfOrders" id="346" type="Int32NULL" description="Aggregate number of orders at the given price level" offset="12" semanticType="int"/>
<field name="MDPriceLevel" id="1023" type="Int8NULL" description="Aggregate book position" offset="16" semanticType="int"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates the date of trade session corresponding to a statistic entry" offset="17" semanticType="LocalMktDate"/>
<field name="OpenCloseSettlFlag" id="286" type="OpenCloseSettlFlag" description="Flag describing Open Price entry" offset="19" semanticType="int"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="20" semanticType="MultipleCharValue"/>
<field name="MDEntryType" id="269" type="MDEntryType" description="Market Data entry type" offset="21" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="QuoteRequest39" id="39" description="QuoteRequest" blockLength="35" semanticType="R" sinceVersion="3">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="QuoteReqID" id="131" type="QuoteReqId" description="Quote Request ID defined by the exchange" offset="8" semanticType="String"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="31" semanticType="MultipleCharValue"/>
<group name="NoRelatedSym" id="146" description="Indicates the number of repeating symbols specified" blockLength="32" dimensionType="groupSize">
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol" offset="0" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="20" semanticType="int"/>
<field name="OrderQty" id="38" type="Int32NULL" description="Quantity requested" offset="24" semanticType="Qty"/>
<field name="QuoteType" id="537" type="Int8" description="Type of quote requested" offset="28" semanticType="int"/>
<field name="Side" id="54" type="Int8NULL" description="Side requested" offset="29" semanticType="int"/>
</group>
</ns2:message>
<ns2:message name="MDInstrumentDefinitionOption41" id="41" description="MDInstrumentDefinitionOption" blockLength="213" semanticType="d" sinceVersion="3">
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="0" semanticType="MultipleCharValue"/>
<field name="TotNumReports" id="911" type="uInt32NULL" description="Total number of instruments in the Replay loop. Used on Replay Feed only " offset="1" semanticType="int"/>
<field name="SecurityUpdateAction" id="980" type="SecurityUpdateAction" description="Last Security update action on Incremental feed, 'D' or 'M' is used when a mid-week deletion or modification (i.e. extension) occurs" offset="5" semanticType="char"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="Timestamp of when the instrument was last added, modified or deleted" offset="6" semanticType="UTCTimestamp"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current state of the instrument. The data is available in the Instrument Replay feed only " offset="14" semanticType="int"/>
<field name="ApplID" id="1180" type="Int16" description="The channel ID as defined in the XML Configuration file" offset="15" semanticType="int"/>
<field name="MarketSegmentID" id="1300" type="uInt8" description="Identifies the market segment, populated for all CME Globex instruments" offset="17" semanticType="int"/>
<field name="UnderlyingProduct" id="462" type="uInt8" description="Indicates the product complex" offset="18" semanticType="int"/>
<field name="SecurityExchange" id="207" type="SecurityExchange" description="Exchange used to identify a security" offset="19" semanticType="Exchange"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group Code " offset="23" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="The underlying asset code also known as Product Code" offset="29" semanticType="String"/>
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol. Previously used as Instrument Group Code " offset="35" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Unique Instrument ID" offset="55" semanticType="int"/>
<field name="SecurityIDSource" id="22" type="SecurityIDSource" description="Identifies class or source of tag 48-SecurityID value" semanticType="char"/>
<field name="SecurityType" id="167" type="SecurityType" description="Security Type" offset="59" semanticType="String"/>
<field name="CFICode" id="461" type="CFICode" description="ISO standard instrument categorization code" offset="65" semanticType="String"/>
<field name="PutOrCall" id="201" type="PutOrCall" description="Indicates whether an option instrument is a put or call" offset="71" semanticType="int"/>
<field name="MaturityMonthYear" id="200" type="MaturityMonthYear" description="This field provides the actual calendar date for contract maturity" offset="72" semanticType="MonthYear"/>
<field name="Currency" id="15" type="Currency" description="Identifies currency used for price" offset="77" semanticType="Currency"/>
<field name="StrikePrice" id="202" type="PRICENULL" description="Strike Price for an option instrument" offset="80" semanticType="Price"/>
<field name="StrikeCurrency" id="947" type="Currency" description="Currency in which the StrikePrice is denominated" offset="88" semanticType="Currency"/>
<field name="SettlCurrency" id="120" type="Currency" description="Identifies currency used for settlement, if different from trade price currency" offset="91" semanticType="Currency"/>
<field name="MinCabPrice" id="9850" type="PRICENULL" description="Defines cabinet price for outright options products" offset="94" semanticType="Price"/>
<field name="MatchAlgorithm" id="1142" type="CHAR" description="Matching algorithm" offset="102" semanticType="char"/>
<field name="MinTradeVol" id="562" type="uInt32" description="The minimum trading volume for a security." offset="103" semanticType="Qty"/>
<field name="MaxTradeVol" id="1140" type="uInt32" description="The maximum trading volume for a security." offset="107" semanticType="Qty"/>
<field name="MinPriceIncrement" id="969" type="PRICENULL" description="Minimum constant tick for the instrument" offset="111" semanticType="Price"/>
<field name="MinPriceIncrementAmount" id="1146" type="PRICENULL" description="Monetary value equivalent to the minimum price fluctuation" offset="119" semanticType="Price"/>
<field name="DisplayFactor" id="9787" type="FLOAT" description="Contains the multiplier to convert the CME Globex display price to the conventional price" offset="127" semanticType="float"/>
<field name="TickRule" id="6350" type="Int8NULL" description="VTT code referencing variable tick table " offset="135" semanticType="int"/>
<field name="MainFraction" id="37702" type="uInt8NULL" description="Price Denominator of Main Fraction" offset="136" semanticType="int"/>
<field name="SubFraction" id="37703" type="uInt8NULL" description="Price Denominator of Sub Fraction" offset="137" semanticType="int"/>
<field name="PriceDisplayFormat" id="9800" type="uInt8NULL" description="Number of decimals in fractional display price" offset="138" semanticType="int"/>
<field name="UnitOfMeasure" id="996" type="UnitOfMeasure" description="Unit of measure for the products' original contract size. This will be populated for all products listed on CME Globex" offset="139" semanticType="String"/>
<field name="UnitOfMeasureQty" id="1147" type="PRICENULL" description="This field contains the contract size for each instrument. Used in combination with tag 996-UnitofMeasure" offset="169" semanticType="Qty"/>
<field name="TradingReferencePrice" id="1150" type="PRICENULL" description="Reference price - the most recently available Settlement whether it be Theoretical, Preliminary or a Final Settle of the session" offset="177" semanticType="Price"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="185" semanticType="MultipleCharValue"/>
<field name="ClearedVolume" id="5791" type="Int32NULL" description="The total cleared volume of instrument traded during the prior trading session" offset="186" semanticType="Qty"/>
<field name="OpenInterestQty" id="5792" type="Int32NULL" description="The total open interest for the market at the close of the prior trading session." offset="190" semanticType="Qty"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL" description="Allowable low limit price for the trading day " offset="194" semanticType="Price"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL" description="Allowable high limit price for the trading day" offset="202" semanticType="Price"/>
<field name="UserDefinedInstrument" id="9779" type="UserDefinedInstrument" description="User-defined instruments flag" offset="210" semanticType="char"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates session date corresponding to the settlement price in tag 1150-TradingReferencePrice" offset="211" sinceVersion="6" semanticType="LocalMktDate"/>
<group name="NoEvents" id="864" description="Number of EventType entries" blockLength="9" dimensionType="groupSize">
<field name="EventType" id="865" type="EventType" description="Code to represent the type of event" offset="0" semanticType="int"/>
<field name="EventTime" id="1145" type="uInt64" description="Date and Time of instument Activation or Expiration event sent as number of nanoseconds since Unix epoch" offset="1" semanticType="UTCTimestamp"/>
</group>
<group name="NoMDFeedTypes" id="1141" description="Number of FeedType entries" blockLength="4" dimensionType="groupSize">
<field name="MDFeedType" id="1022" type="MDFeedType" description="Describes a class of service for a given data feed. GBX- Real Book, GBI-Implied Book" offset="0" semanticType="String"/>
<field name="MarketDepth" id="264" type="Int8" description="Book depth" offset="3" semanticType="int"/>
</group>
<group name="NoInstAttrib" id="870" description="Number of InstrAttribType entries" blockLength="4" dimensionType="groupSize">
<field name="InstAttribType" id="871" type="InstAttribType" description="Instrument Eligibility Attributes" semanticType="int"/>
<field name="InstAttribValue" id="872" type="InstAttribValue" description="Bitmap field of 32 Boolean type Instrument eligibility flags" offset="0" semanticType="MultipleCharValue"/>
</group>
<group name="NoLotTypeRules" id="1234" description="Number of entries" blockLength="5" dimensionType="groupSize">
<field name="LotType" id="1093" type="Int8" description="This tag is required to interpret the value in tag 1231-MinLotSize" offset="0" semanticType="int"/>
<field name="MinLotSize" id="1231" type="DecimalQty" description="Minimum quantity accepted for order entry. If tag 1093-LotType=4, this value is the minimum quantity for order entry expressed in the applicable units, specified in tag 996-UnitOfMeasure, e.g. megawatts" offset="1" semanticType="Qty"/>
</group>
<group name="NoUnderlyings" id="711" description="Number of underlying instruments" blockLength="24" dimensionType="groupSize">
<field name="UnderlyingSecurityID" id="309" type="Int32" description="Unique Instrument ID as qualified by the exchange per tag 305-UnderlyingSecurityIDSource" offset="0" semanticType="int"/>
<field name="UnderlyingSecurityIDSource" id="305" type="SecurityIDSource" description="This value is always '8' for CME" semanticType="char"/>
<field name="UnderlyingSymbol" id="311" type="UnderlyingSymbol" description="Underlying Instrument Symbol (Contract Name)" offset="4" semanticType="String"/>
</group>
<group name="NoRelatedInstruments" id="1647" description="Number of related instruments group" blockLength="24" sinceVersion="7" dimensionType="groupSize">
<field name="RelatedSecurityID" id="1650" type="Int32" description="Related Security ID" offset="0" semanticType="int"/>
<field name="RelatedSecurityIDSource" id="1651" type="SecurityIDSource" description="Related Security ID source" semanticType="char"/>
<field name="RelatedSymbol" id="1649" type="Symbol" description="Related instrument Symbol" offset="4" semanticType="String"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshTradeSummary42" id="42" description="MDIncrementalRefreshTradeSummary" blockLength="11" semanticType="X" sinceVersion="5">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of Trade Summary entries" blockLength="32" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICE" description="Trade price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32" description="Consolidated trade quantity" offset="8" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID as defined by CME" offset="12" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Sequence number per instrument update" offset="16" semanticType="int"/>
<field name="NumberOfOrders" id="346" type="Int32NULL" description="The total number of real orders per instrument that participated in a match step within a match event" offset="20" semanticType="int"/>
<field name="AggressorSide" id="5797" type="AggressorSide" description="Indicates which side is the aggressor or if there is no aggressor" offset="24" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action" offset="25" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeTrade" description="Market Data entry type" semanticType="char"/>
<field name="MDTradeEntryID" id="37711" type="uInt32NULL" description="Market Data Trade entry ID" offset="26" sinceVersion="7" semanticType="int"/>
</group>
<group name="NoOrderIDEntries" id="37705" description="Number of OrderID entries" blockLength="16" dimensionType="groupSize8Byte">
<field name="OrderID" id="37" type="uInt64" description="Unique order identifier as assigned by the exchange" offset="0" semanticType="int"/>
<field name="LastQty" id="32" type="Int32" description="Quantity bought or sold on this last fill" offset="8" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshOrderBook43" id="43" description="MDIncrementalRefreshOrderBook" blockLength="11" semanticType="X" sinceVersion="7">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="40" dimensionType="groupSize">
<field name="OrderID" id="37" type="uInt64NULL" description="Order ID" offset="0" semanticType="String"/>
<field name="MDOrderPriority" id="37707" type="uInt64NULL" description="Order priority for execution on the order book" offset="8" semanticType="int"/>
<field name="MDEntryPx" id="270" type="PRICENULL" description="Order price" offset="16" semanticType="Price"/>
<field name="MDDisplayQty" id="37706" type="Int32NULL" description="Visible order qty" offset="24" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="28" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Order book update action to be applied to the order referenced by OrderID" offset="32" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeBook" description="Market Data entry type" offset="33" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="SnapshotFullRefreshOrderBook44" id="44" description="SnapshotFullRefreshOrderBook" blockLength="28" semanticType="W" sinceVersion="7">
<field name="LastMsgSeqNumProcessed" id="369" type="uInt32" description="Sequence number of the last Incremental feed packet processed. This value is used to synchronize the snapshot loop with the real-time feed" offset="0" semanticType="SeqNum"/>
<field name="TotNumReports" id="911" type="uInt32" description="Total number of instruments in the replayed loop" offset="4" semanticType="int"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="8" semanticType="String"/>
<field name="NoChunks" id="37709" type="uInt32" description="Total number of packets that constitutes a single instrument order book" offset="12" semanticType="int"/>
<field name="CurrentChunk" id="37710" type="uInt32" description="Chunk sequence" offset="16" semanticType="int"/>
<field name="TransactTime" id="60" type="uInt64" description="Timestamp of the last event security participated in, sent as number of nanoseconds since Unix epoch" offset="20" semanticType="UTCTimestamp"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="29" dimensionType="groupSize">
<field name="OrderID" id="37" type="uInt64" description="Unique Order ID" offset="0" semanticType="int"/>
<field name="MDOrderPriority" id="37707" type="uInt64NULL" description="Order priority for execution on the order book" offset="8" semanticType="int"/>
<field name="MDEntryPx" id="270" type="PRICE" description="Order Price" offset="16" semanticType="Price"/>
<field name="MDDisplayQty" id="37706" type="Int32" description="Visible order qty" offset="24" semanticType="Qty"/>
<field name="MDEntryType" id="269" type="MDEntryTypeBook" description="Market Data entry type" offset="28" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshBook46" id="46" description="MDIncrementalRefreshBook" blockLength="11" semanticType="X" sinceVersion="9">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="32" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICENULL9" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Market Data entry size" offset="8" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="12" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Market Data entry sequence number per instrument update" offset="16" semanticType="int"/>
<field name="NumberOfOrders" id="346" type="Int32NULL" description="In Book entry - aggregate number of orders at given price level" offset="20" semanticType="int"/>
<field name="MDPriceLevel" id="1023" type="uInt8" description="Aggregate book level" offset="24" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description=" Market Data update action" offset="25" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeBook" description="Market Data entry type" offset="26" semanticType="char"/>
</group>
<group name="NoOrderIDEntries" id="37705" description="Number of OrderID entries" blockLength="24" dimensionType="groupSize8Byte">
<field name="OrderID" id="37" type="uInt64" description="Unique Order ID" offset="0" semanticType="int"/>
<field name="MDOrderPriority" id="37707" type="uInt64NULL" description="Order priority for execution on the order book" offset="8" semanticType="int"/>
<field name="MDDisplayQty" id="37706" type="Int32NULL" description="Visible qty of order" offset="16" semanticType="Qty"/>
<field name="ReferenceID" id="9633" type="uInt8NULL" description="Reference to corresponding Price and Security ID, sequence of MD entry in the message" offset="20" semanticType="int"/>
<field name="OrderUpdateAction" id="37708" type="OrderUpdateAction" description="Order book update action to be applied to the order referenced by OrderID" offset="21" semanticType="int"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshOrderBook47" id="47" description="MDIncrementalRefreshOrderBook" blockLength="11" semanticType="X" sinceVersion="9">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="40" dimensionType="groupSize">
<field name="OrderID" id="37" type="uInt64NULL" description="Order ID" offset="0" semanticType="int"/>
<field name="MDOrderPriority" id="37707" type="uInt64NULL" description="Order priority for execution on the order book" offset="8" semanticType="int"/>
<field name="MDEntryPx" id="270" type="PRICENULL9" description="Order price" offset="16" semanticType="Price"/>
<field name="MDDisplayQty" id="37706" type="Int32NULL" description="Visible order qty" offset="24" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="28" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Order book update action to be applied to the order referenced by OrderID" offset="32" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeBook" description="Market Data entry type " offset="33" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshTradeSummary48" id="48" description="MDIncrementalRefreshTradeSummary" blockLength="11" semanticType="X" sinceVersion="9">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of Trade Summary entries" blockLength="32" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICE9" description="Trade price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32" description="Consolidated trade quantity" offset="8" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID as defined by CME" offset="12" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Sequence number per instrument update" offset="16" semanticType="int"/>
<field name="NumberOfOrders" id="346" type="Int32" description="The total number of real orders per instrument that participated in a match step within a match event" offset="20" semanticType="int"/>
<field name="AggressorSide" id="5797" type="AggressorSide" description="Indicates which side is the aggressor or if there is no aggressor" offset="24" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action" offset="25" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeTrade" description="Market Data entry type" semanticType="char"/>
<field name="MDTradeEntryID" id="37711" type="uInt32NULL" description="Market Data Trade entry ID" offset="26" semanticType="int"/>
</group>
<group name="NoOrderIDEntries" id="37705" description="Number of OrderID entries" blockLength="16" dimensionType="groupSize8Byte">
<field name="OrderID" id="37" type="uInt64" description="Unique order identifier as assigned by the exchange" offset="0" semanticType="int"/>
<field name="LastQty" id="32" type="Int32" description="Quantity bought or sold on this last fill" offset="8" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshDailyStatistics49" id="49" description="MDIncrementalRefreshDailyStatistics" blockLength="11" semanticType="X" sinceVersion="9">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="32" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICENULL9" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Market Data entry size" offset="8" semanticType="Qty"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="12" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Market Data entry sequence number per instrument update" offset="16" semanticType="int"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates trade session date corresponding to a statistic entry" offset="20" semanticType="LocalMktDate"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="22" semanticType="MultipleCharValue"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action" offset="23" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeDailyStatistics" description="Market Data entry type" offset="24" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshLimitsBanding50" id="50" description="MDIncrementalRefreshLimitsBanding" blockLength="11" semanticType="X" sinceVersion="9">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="32" dimensionType="groupSize">
<field name="HighLimitPrice" id="1149" type="PRICENULL9" description="Upper price threshold for the instrument" offset="0" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL9" description="Lower price threshold for the instrument" offset="8" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL9" description="Differential static value for price banding" offset="16" semanticType="Price"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="24" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="MD Entry sequence number per instrument update" offset="28" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateActionNew" description="Market Data entry update action. In order to delete banding value, high or low limit, the deleted price field is populated with a NULL " semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeLimits" description="Market Data entry type " semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDIncrementalRefreshSessionStatistics51" id="51" description="MDIncrementalRefreshSessionStatistics" blockLength="11" semanticType="X" sinceVersion="9">
<field name="TransactTime" id="60" type="uInt64" description="Start of event processing time in number of nanoseconds since Unix epoch" offset="0" semanticType="UTCTimestamp"/>
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="8" semanticType="MultipleCharValue"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="24" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICE9" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID " offset="8" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="MD Entry sequence number per instrument update" offset="12" semanticType="int"/>
<field name="OpenCloseSettlFlag" id="286" type="OpenCloseSettlFlag" description="Flag describing IOP and Open Price entries" offset="16" semanticType="int"/>
<field name="MDUpdateAction" id="279" type="MDUpdateAction" description="Market Data update action " offset="17" semanticType="int"/>
<field name="MDEntryType" id="269" type="MDEntryTypeStatistics" description="Market Data entry type " offset="18" semanticType="char"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Indicative Opening Quantity " offset="19" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="SnapshotFullRefresh52" id="52" description="SnapshotFullRefresh" blockLength="59" semanticType="W" sinceVersion="9">
<field name="LastMsgSeqNumProcessed" id="369" type="uInt32" description="Sequence number of the last Incremental feed packet processed. This value is used to synchronize the snapshot loop with the real-time feed" offset="0" semanticType="SeqNum"/>
<field name="TotNumReports" id="911" type="uInt32" description="Total number of messages replayed in the loop" offset="4" semanticType="int"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="8" semanticType="int"/>
<field name="RptSeq" id="83" type="uInt32" description="Sequence number of the last Market Data entry processed for the instrument" offset="12" semanticType="int"/>
<field name="TransactTime" id="60" type="uInt64" description="Timestamp of the last event security participated in, sent as number of nanoseconds since Unix epoch" offset="16" semanticType="UTCTimestamp"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="UTC Date and time of last Security Definition add, update or delete on a given Market Data channel" offset="24" semanticType="UTCTimestamp"/>
<field name="TradeDate" id="75" type="LocalMktDate" description="Trade session date sent as number of days since Unix epoch" offset="32" semanticType="LocalMktDate"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current trading state of the instrument" offset="34" semanticType="int"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL9" description="Upper price threshold for the instrument" offset="35" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL9" description="Lower price threshold for the instrument" offset="43" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL9" description="Differential value for price banding" offset="51" semanticType="Price"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="22" dimensionType="groupSize">
<field name="MDEntryPx" id="270" type="PRICENULL9" description="Market Data entry price" offset="0" semanticType="Price"/>
<field name="MDEntrySize" id="271" type="Int32NULL" description="Market Data entry quantity" offset="8" semanticType="Qty"/>
<field name="NumberOfOrders" id="346" type="Int32NULL" description="Aggregate number of orders at the given price level" offset="12" semanticType="int"/>
<field name="MDPriceLevel" id="1023" type="Int8NULL" description="Aggregate book position" offset="16" semanticType="int"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates the date of trade session corresponding to a statistic entry" offset="17" semanticType="LocalMktDate"/>
<field name="OpenCloseSettlFlag" id="286" type="OpenCloseSettlFlag" description="Flag describing Open Price entry" offset="19" semanticType="int"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="20" semanticType="MultipleCharValue"/>
<field name="MDEntryType" id="269" type="MDEntryType" description="Market Data entry type" offset="21" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="SnapshotFullRefreshOrderBook53" id="53" description="SnapshotFullRefreshOrderBook" blockLength="28" semanticType="W" sinceVersion="9">
<field name="LastMsgSeqNumProcessed" id="369" type="uInt32" description="Sequence number of the last Incremental feed packet processed. This value is used to synchronize the snapshot loop with the real-time feed" offset="0" semanticType="SeqNum"/>
<field name="TotNumReports" id="911" type="uInt32" description="Total number of instruments in the replayed loop" offset="4" semanticType="int"/>
<field name="SecurityID" id="48" type="Int32" description="Security ID" offset="8" semanticType="int"/>
<field name="NoChunks" id="37709" type="uInt32" description="Total number of packets that constitutes a single instrument order book" offset="12" semanticType="int"/>
<field name="CurrentChunk" id="37710" type="uInt32" description="Chunk sequence" offset="16" semanticType="int"/>
<field name="TransactTime" id="60" type="uInt64" description="Timestamp of the last event security participated in, sent as number of nanoseconds since Unix epoch" offset="20" semanticType="UTCTimestamp"/>
<group name="NoMDEntries" id="268" description="Number of entries in Market Data message" blockLength="29" dimensionType="groupSize">
<field name="OrderID" id="37" type="uInt64" description="Unique Order ID" offset="0" semanticType="int"/>
<field name="MDOrderPriority" id="37707" type="uInt64NULL" description="Order priority for execution on the order book" offset="8" semanticType="int"/>
<field name="MDEntryPx" id="270" type="PRICE9" description="Order Price" offset="16" semanticType="Price"/>
<field name="MDDisplayQty" id="37706" type="Int32" description="Visible order qty" offset="24" semanticType="Qty"/>
<field name="MDEntryType" id="269" type="MDEntryTypeBook" description="Market Data entry type" offset="28" semanticType="char"/>
</group>
</ns2:message>
<ns2:message name="MDInstrumentDefinitionFuture54" id="54" description="MDInstrumentDefinitionFuture" blockLength="216" semanticType="d" sinceVersion="9">
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="0" semanticType="MultipleCharValue"/>
<field name="TotNumReports" id="911" type="uInt32NULL" description="Total number of instruments in the Replay loop. Used on Replay Feed only " offset="1" semanticType="int"/>
<field name="SecurityUpdateAction" id="980" type="SecurityUpdateAction" description="Last Security update action on Incremental feed, 'D' or 'M' is used when a mid-week deletion or modification (i.e. extension) occurs" offset="5" semanticType="char"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="Timestamp of when the instrument was last added, modified or deleted" offset="6" semanticType="UTCTimestamp"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current state of the instrument. In Security Definition message this tag is available in the Instrument Replay feed only " offset="14" semanticType="int"/>
<field name="ApplID" id="1180" type="Int16" description="The channel ID as defined in the XML Configuration file" offset="15" semanticType="int"/>
<field name="MarketSegmentID" id="1300" type="uInt8" description="Identifies the market segment, populated for all CME Globex instruments" offset="17" semanticType="int"/>
<field name="UnderlyingProduct" id="462" type="uInt8" description="Product complex" offset="18" semanticType="int"/>
<field name="SecurityExchange" id="207" type="SecurityExchange" description="Exchange used to identify a security" offset="19" semanticType="Exchange"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group Code." offset="23" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="The underlying asset code also known as Product Code" offset="29" semanticType="String"/>
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol " offset="35" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Unique instrument ID" offset="55" semanticType="int"/>
<field name="SecurityIDSource" id="22" type="SecurityIDSource" description="Identifies class or source of tag 48-SecurityID value" semanticType="char"/>
<field name="SecurityType" id="167" type="SecurityType" description="Security Type" offset="59" semanticType="String"/>
<field name="CFICode" id="461" type="CFICode" description="ISO standard instrument categorization code" offset="65" semanticType="String"/>
<field name="MaturityMonthYear" id="200" type="MaturityMonthYear" description="This field provides the actual calendar date for contract maturity" offset="71" semanticType="MonthYear"/>
<field name="Currency" id="15" type="Currency" description="Identifies currency used for price" offset="76" semanticType="Currency"/>
<field name="SettlCurrency" id="120" type="Currency" description="Identifies currency used for settlement, if different from trading currency" offset="79" semanticType="Currency"/>
<field name="MatchAlgorithm" id="1142" type="CHAR" description="Matching algorithm " offset="82" semanticType="char"/>
<field name="MinTradeVol" id="562" type="uInt32" description="The minimum trading volume for a security" offset="83" semanticType="Qty"/>
<field name="MaxTradeVol" id="1140" type="uInt32" description="The maximum trading volume for a security" offset="87" semanticType="Qty"/>
<field name="MinPriceIncrement" id="969" type="PRICE9" description="Minimum constant tick for the instrument, sent only if instrument is non-VTT (Variable Tick table) eligible" offset="91" semanticType="Price"/>
<field name="DisplayFactor" id="9787" type="Decimal9" description="Contains the multiplier to convert the CME Globex display price to the conventional price" offset="99" semanticType="float"/>
<field name="MainFraction" id="37702" type="uInt8NULL" description="Price Denominator of Main Fraction" offset="107" semanticType="int"/>
<field name="SubFraction" id="37703" type="uInt8NULL" description="Price Denominator of Sub Fraction" offset="108" semanticType="int"/>
<field name="PriceDisplayFormat" id="9800" type="uInt8NULL" description="Number of decimals in fractional display price" offset="109" semanticType="int"/>
<field name="UnitOfMeasure" id="996" type="UnitOfMeasure" description="Unit of measure for the products' original contract size. This will be populated for all products listed on CME Globex" offset="110" semanticType="String"/>
<field name="UnitOfMeasureQty" id="1147" type="Decimal9NULL" description="This field contains the contract size for each instrument. Used in combination with tag 996-UnitofMeasure" offset="140" semanticType="Qty"/>
<field name="TradingReferencePrice" id="1150" type="PRICENULL9" description="Reference price for prelisted instruments or the last calculated Settlement whether it be Theoretical, Preliminary or a Final Settle of the session." offset="148" semanticType="Price"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="156" semanticType="MultipleCharValue"/>
<field name="OpenInterestQty" id="5792" type="Int32NULL" description="The total open interest for the market at the close of the prior trading session." offset="157" semanticType="Qty"/>
<field name="ClearedVolume" id="5791" type="Int32NULL" description="The total cleared volume of instrument traded during the prior trading session." offset="161" semanticType="Qty"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL9" description="Allowable high limit price for the trading day" offset="165" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL9" description="Allowable low limit price for the trading day" offset="173" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL9" description="Differential value for price banding." offset="181" semanticType="Price"/>
<field name="DecayQuantity" id="5818" type="Int32NULL" description="Indicates the quantity that a contract will decay daily by once the decay start date is reached" offset="189" semanticType="Qty"/>
<field name="DecayStartDate" id="5819" type="LocalMktDate" description="Indicates the date at which a decaying contract will begin to decay" offset="193" semanticType="LocalMktDate"/>
<field name="OriginalContractSize" id="5849" type="Int32NULL" description="Fixed contract value assigned to each product" offset="195" semanticType="Qty"/>
<field name="ContractMultiplier" id="231" type="Int32NULL" description="Number of deliverable units per instrument, e.g., peak days in maturity month or number of calendar days in maturity month" offset="199" semanticType="int"/>
<field name="ContractMultiplierUnit" id="1435" type="Int8NULL" description="Indicates the type of multiplier being applied to the product. Optionally used in combination with tag 231-ContractMultiplier" offset="203" semanticType="int"/>
<field name="FlowScheduleType" id="1439" type="Int8NULL" description="The schedule according to which the electricity is delivered in a physical contract, or priced in a financial contract. Specifies whether the contract is defined according to the Easter Peak, Eastern Off-Peak, Western Peak or Western Off-Peak." offset="204" semanticType="int"/>
<field name="MinPriceIncrementAmount" id="1146" type="PRICENULL9" description="Monetary value equivalent to the minimum price fluctuation" offset="205" semanticType="Price"/>
<field name="UserDefinedInstrument" id="9779" type="UserDefinedInstrument" description="User-defined instruments flag" offset="213" semanticType="char"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates session date corresponding to the settlement price in tag 1150-TradingReferencePrice" offset="214" semanticType="LocalMktDate"/>
<group name="NoEvents" id="864" description="Number of repeating EventType entries" blockLength="9" dimensionType="groupSize">
<field name="EventType" id="865" type="EventType" description="Code to represent the type of event" offset="0" semanticType="int"/>
<field name="EventTime" id="1145" type="uInt64" description="Date and Time of instument Activation or Expiration event sent as number of nanoseconds since Unix epoch" offset="1" semanticType="UTCTimestamp"/>
</group>
<group name="NoMDFeedTypes" id="1141" description="Number of repeating FeedType entries" blockLength="4" dimensionType="groupSize">
<field name="MDFeedType" id="1022" type="MDFeedType" description="Describes a class of service for a given data feed. GBX- Real Book, GBI-Implied Book" offset="0" semanticType="String"/>
<field name="MarketDepth" id="264" type="Int8" description="Book depth" offset="3" semanticType="int"/>
</group>
<group name="NoInstAttrib" id="870" description="Number of repeating InstrAttribType entries" blockLength="4" dimensionType="groupSize">
<field name="InstAttribType" id="871" type="InstAttribType" description="Instrument eligibility attributes" semanticType="int"/>
<field name="InstAttribValue" id="872" type="InstAttribValue" description="Bitmap field of 32 Boolean type instrument eligibility flags" offset="0" semanticType="MultipleCharValue"/>
</group>
<group name="NoLotTypeRules" id="1234" description="Number of entries" blockLength="5" dimensionType="groupSize">
<field name="LotType" id="1093" type="Int8" description="This tag is required to interpret the value in tag 1231-MinLotSize" offset="0" semanticType="int"/>
<field name="MinLotSize" id="1231" type="DecimalQty" description="Minimum quantity accepted for order entry. If tag 1093-LotType=4, this value is the minimum quantity for order entry expressed in the applicable units, specified in tag 996-UnitOfMeasure, e.g. megawatts" offset="1" semanticType="Qty"/>
</group>
</ns2:message>
<ns2:message name="MDInstrumentDefinitionOption55" id="55" description="MDInstrumentDefinitionOption" blockLength="213" semanticType="d" sinceVersion="9">
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="0" semanticType="MultipleCharValue"/>
<field name="TotNumReports" id="911" type="uInt32NULL" description="Total number of instruments in the Replay loop. Used on Replay Feed only " offset="1" semanticType="int"/>
<field name="SecurityUpdateAction" id="980" type="SecurityUpdateAction" description="Last Security update action on Incremental feed, 'D' or 'M' is used when a mid-week deletion or modification (i.e. extension) occurs" offset="5" semanticType="char"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="Timestamp of when the instrument was last added, modified or deleted" offset="6" semanticType="UTCTimestamp"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current state of the instrument. The data is available in the Instrument Replay feed only " offset="14" semanticType="int"/>
<field name="ApplID" id="1180" type="Int16" description="The channel ID as defined in the XML Configuration file" offset="15" semanticType="int"/>
<field name="MarketSegmentID" id="1300" type="uInt8" description="Identifies the market segment, populated for all CME Globex instruments" offset="17" semanticType="int"/>
<field name="UnderlyingProduct" id="462" type="uInt8" description="Indicates the product complex" offset="18" semanticType="int"/>
<field name="SecurityExchange" id="207" type="SecurityExchange" description="Exchange used to identify a security" offset="19" semanticType="Exchange"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group Code " offset="23" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="The underlying asset code also known as Product Code" offset="29" semanticType="String"/>
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol. Previously used as Instrument Group Code " offset="35" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Unique Instrument ID" offset="55" semanticType="int"/>
<field name="SecurityIDSource" id="22" type="SecurityIDSource" description="Identifies class or source of tag 48-SecurityID value" semanticType="char"/>
<field name="SecurityType" id="167" type="SecurityType" description="Security Type" offset="59" semanticType="String"/>
<field name="CFICode" id="461" type="CFICode" description="ISO standard instrument categorization code" offset="65" semanticType="String"/>
<field name="PutOrCall" id="201" type="PutOrCall" description="Indicates whether an option instrument is a put or call" offset="71" semanticType="int"/>
<field name="MaturityMonthYear" id="200" type="MaturityMonthYear" description="This field provides the actual calendar date for contract maturity" offset="72" semanticType="MonthYear"/>
<field name="Currency" id="15" type="Currency" description="Identifies currency used for price" offset="77" semanticType="Currency"/>
<field name="StrikePrice" id="202" type="PRICENULL9" description="Strike Price for an option instrument" offset="80" semanticType="Price"/>
<field name="StrikeCurrency" id="947" type="Currency" description="Currency in which the StrikePrice is denominated" offset="88" semanticType="Currency"/>
<field name="SettlCurrency" id="120" type="Currency" description="Identifies currency used for settlement, if different from trade price currency" offset="91" semanticType="Currency"/>
<field name="MinCabPrice" id="9850" type="PRICENULL9" description="Defines cabinet price for outright options products" offset="94" semanticType="Price"/>
<field name="MatchAlgorithm" id="1142" type="CHAR" description="Matching algorithm" offset="102" semanticType="char"/>
<field name="MinTradeVol" id="562" type="uInt32" description="The minimum trading volume for a security." offset="103" semanticType="Qty"/>
<field name="MaxTradeVol" id="1140" type="uInt32" description="The maximum trading volume for a security." offset="107" semanticType="Qty"/>
<field name="MinPriceIncrement" id="969" type="PRICENULL9" description="Minimum constant tick for the instrument" offset="111" semanticType="Price"/>
<field name="MinPriceIncrementAmount" id="1146" type="PRICENULL9" description="Monetary value equivalent to the minimum price fluctuation" offset="119" semanticType="Price"/>
<field name="DisplayFactor" id="9787" type="Decimal9" description="Contains the multiplier to convert the CME Globex display price to the conventional price" offset="127" semanticType="float"/>
<field name="TickRule" id="6350" type="Int8NULL" description="VTT code referencing variable tick table " offset="135" semanticType="int"/>
<field name="MainFraction" id="37702" type="uInt8NULL" description="Price Denominator of Main Fraction" offset="136" semanticType="int"/>
<field name="SubFraction" id="37703" type="uInt8NULL" description="Price Denominator of Sub Fraction" offset="137" semanticType="int"/>
<field name="PriceDisplayFormat" id="9800" type="uInt8NULL" description="Number of decimals in fractional display price" offset="138" semanticType="int"/>
<field name="UnitOfMeasure" id="996" type="UnitOfMeasure" description="Unit of measure for the products' original contract size. This will be populated for all products listed on CME Globex" offset="139" semanticType="String"/>
<field name="UnitOfMeasureQty" id="1147" type="Decimal9NULL" description="This field contains the contract size for each instrument. Used in combination with tag 996-UnitofMeasure" offset="169" semanticType="Qty"/>
<field name="TradingReferencePrice" id="1150" type="PRICENULL9" description="Reference price - the most recently available Settlement whether it be Theoretical, Preliminary or a Final Settle of the session" offset="177" semanticType="Price"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="185" semanticType="MultipleCharValue"/>
<field name="ClearedVolume" id="5791" type="Int32NULL" description="The total cleared volume of instrument traded during the prior trading session" offset="186" semanticType="Qty"/>
<field name="OpenInterestQty" id="5792" type="Int32NULL" description="The total open interest for the market at the close of the prior trading session." offset="190" semanticType="Qty"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL9" description="Allowable low limit price for the trading day " offset="194" semanticType="Price"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL9" description="Allowable high limit price for the trading day" offset="202" semanticType="Price"/>
<field name="UserDefinedInstrument" id="9779" type="UserDefinedInstrument" description="User-defined instruments flag" offset="210" semanticType="char"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates session date corresponding to the settlement price in tag 1150-TradingReferencePrice" offset="211" semanticType="LocalMktDate"/>
<group name="NoEvents" id="864" description="Number of EventType entries" blockLength="9" dimensionType="groupSize">
<field name="EventType" id="865" type="EventType" description="Code to represent the type of event" offset="0" semanticType="int"/>
<field name="EventTime" id="1145" type="uInt64" description="Date and Time of instument Activation or Expiration event sent as number of nanoseconds since Unix epoch" offset="1" semanticType="UTCTimestamp"/>
</group>
<group name="NoMDFeedTypes" id="1141" description="Number of FeedType entries" blockLength="4" dimensionType="groupSize">
<field name="MDFeedType" id="1022" type="MDFeedType" description="Describes a class of service for a given data feed. GBX- Real Book, GBI-Implied Book" offset="0" semanticType="String"/>
<field name="MarketDepth" id="264" type="Int8" description="Book depth" offset="3" semanticType="int"/>
</group>
<group name="NoInstAttrib" id="870" description="Number of InstrAttribType entries" blockLength="4" dimensionType="groupSize">
<field name="InstAttribType" id="871" type="InstAttribType" description="Instrument Eligibility Attributes" semanticType="int"/>
<field name="InstAttribValue" id="872" type="InstAttribValue" description="Bitmap field of 32 Boolean type Instrument eligibility flags" offset="0" semanticType="MultipleCharValue"/>
</group>
<group name="NoLotTypeRules" id="1234" description="Number of entries" blockLength="5" dimensionType="groupSize">
<field name="LotType" id="1093" type="Int8" description="This tag is required to interpret the value in tag 1231-MinLotSize" offset="0" semanticType="int"/>
<field name="MinLotSize" id="1231" type="DecimalQty" description="Minimum quantity accepted for order entry. If tag 1093-LotType=4, this value is the minimum quantity for order entry expressed in the applicable units, specified in tag 996-UnitOfMeasure, e.g. megawatts" offset="1" semanticType="Qty"/>
</group>
<group name="NoUnderlyings" id="711" description="Number of underlying instruments" blockLength="24" dimensionType="groupSize">
<field name="UnderlyingSecurityID" id="309" type="Int32" description="Unique Instrument ID as qualified by the exchange per tag 305-UnderlyingSecurityIDSource" offset="0" semanticType="int"/>
<field name="UnderlyingSecurityIDSource" id="305" type="SecurityIDSource" description="This value is always '8' for CME" semanticType="char"/>
<field name="UnderlyingSymbol" id="311" type="UnderlyingSymbol" description="Underlying Instrument Symbol (Contract Name)" offset="4" semanticType="String"/>
</group>
<group name="NoRelatedInstruments" id="1647" description="Number of related instruments group" blockLength="24" dimensionType="groupSize">
<field name="RelatedSecurityID" id="1650" type="Int32" description="Related Security ID" offset="0" semanticType="int"/>
<field name="RelatedSecurityIDSource" id="1651" type="SecurityIDSource" description="Related Security ID source" semanticType="char"/>
<field name="RelatedSymbol" id="1649" type="Symbol" description="Related instrument Symbol" offset="4" semanticType="String"/>
</group>
</ns2:message>
<ns2:message name="MDInstrumentDefinitionSpread56" id="56" description="MDInstrumentDefinitionSpread" blockLength="195" semanticType="d" sinceVersion="9">
<field name="MatchEventIndicator" id="5799" type="MatchEventIndicator" description="Bitmap field of eight Boolean type indicators reflecting the end of updates for a given Globex event" offset="0" semanticType="MultipleCharValue"/>
<field name="TotNumReports" id="911" type="uInt32NULL" description="Total number of instruments in the Replay loop. Used on Replay Feed only" offset="1" semanticType="int"/>
<field name="SecurityUpdateAction" id="980" type="SecurityUpdateAction" description="Last Security update action on Incremental feed, 'D' or 'M' is used when a mid-week deletion or modification (i.e. extension) occurs" offset="5" semanticType="char"/>
<field name="LastUpdateTime" id="779" type="uInt64" description="Timestamp of when the instrument was last added, modified or deleted" offset="6" semanticType="UTCTimestamp"/>
<field name="MDSecurityTradingStatus" id="1682" type="SecurityTradingStatus" description="Identifies the current state of the instrument. The data is available in the Instrument Replay feed only" offset="14" semanticType="int"/>
<field name="ApplID" id="1180" type="Int16" description="The channel ID as defined in the XML Configuration file" offset="15" semanticType="int"/>
<field name="MarketSegmentID" id="1300" type="uInt8" description="Identifies the market segment, populated for all CME Globex instruments" offset="17" semanticType="int"/>
<field name="UnderlyingProduct" id="462" type="uInt8NULL" description="Product complex" offset="18" semanticType="int"/>
<field name="SecurityExchange" id="207" type="SecurityExchange" description="Exchange used to identify a security" offset="19" semanticType="Exchange"/>
<field name="SecurityGroup" id="1151" type="SecurityGroup" description="Security Group Code" offset="23" semanticType="String"/>
<field name="Asset" id="6937" type="Asset" description="The underlying asset code also known as Product Code" offset="29" semanticType="String"/>
<field name="Symbol" id="55" type="Symbol" description="Instrument Name or Symbol. Previously used as Group Code " offset="35" semanticType="String"/>
<field name="SecurityID" id="48" type="Int32" description="Unique instrument ID" offset="55" semanticType="int"/>
<field name="SecurityIDSource" id="22" type="SecurityIDSource" description="Identifies class or source of the security ID (Tag 48) value" semanticType="char"/>
<field name="SecurityType" id="167" type="SecurityType" description="Security Type" offset="59" semanticType="String"/>
<field name="CFICode" id="461" type="CFICode" description="ISO standard instrument categorization code" offset="65" semanticType="String"/>
<field name="MaturityMonthYear" id="200" type="MaturityMonthYear" description="This field provides the actual calendar date for contract maturity" offset="71" semanticType="MonthYear"/>
<field name="Currency" id="15" type="Currency" description="Identifies currency used for price" offset="76" semanticType="Currency"/>
<field name="SecuritySubType" id="762" type="SecuritySubType" description="Strategy type" offset="79" semanticType="String"/>
<field name="UserDefinedInstrument" id="9779" type="UserDefinedInstrument" description="User-defined instruments flag" offset="84" semanticType="char"/>
<field name="MatchAlgorithm" id="1142" type="CHAR" description="Matching algorithm" offset="85" semanticType="char"/>
<field name="MinTradeVol" id="562" type="uInt32" description="The minimum trading volume for a security" offset="86" semanticType="Qty"/>
<field name="MaxTradeVol" id="1140" type="uInt32" description="The maximum trading volume for a security" offset="90" semanticType="Qty"/>
<field name="MinPriceIncrement" id="969" type="PRICENULL9" description="Minimum constant tick for the instrument, sent only if instrument is non-VTT (Variable Tick table) eligible" offset="94" semanticType="Price"/>
<field name="DisplayFactor" id="9787" type="Decimal9" description="Contains the multiplier to convert the CME Globex display price to the conventional price" offset="102" semanticType="float"/>
<field name="PriceDisplayFormat" id="9800" type="uInt8NULL" description="Number of decimals in fractional display price" offset="110" semanticType="int"/>
<field name="PriceRatio" id="5770" type="PRICENULL9" description="Used for price calculation in spread and leg pricing" offset="111" semanticType="Price"/>
<field name="TickRule" id="6350" type="Int8NULL" description="Tick Rule " offset="119" semanticType="int"/>
<field name="UnitOfMeasure" id="996" type="UnitOfMeasure" description="Unit of measure for the products' original contract size" offset="120" semanticType="String"/>
<field name="TradingReferencePrice" id="1150" type="PRICENULL9" description="Reference price - the most recently available Settlement whether it be Theoretical, Preliminary or a Final Settle of the session" offset="150" semanticType="Price"/>
<field name="SettlPriceType" id="731" type="SettlPriceType" description="Bitmap field of eight Boolean type indicators representing settlement price type" offset="158" semanticType="MultipleCharValue"/>
<field name="OpenInterestQty" id="5792" type="Int32NULL" description="The total open interest for the market at the close of the prior trading session" offset="159" semanticType="Qty"/>
<field name="ClearedVolume" id="5791" type="Int32NULL" description="The total cleared volume of instrument traded during the prior trading session" offset="163" semanticType="Qty"/>
<field name="HighLimitPrice" id="1149" type="PRICENULL9" description="Allowable high limit price for the trading day" offset="167" semanticType="Price"/>
<field name="LowLimitPrice" id="1148" type="PRICENULL9" description="Allowable low limit price for the trading day" offset="175" semanticType="Price"/>
<field name="MaxPriceVariation" id="1143" type="PRICENULL9" description="Differential value for price banding" offset="183" semanticType="Price"/>
<field name="MainFraction" id="37702" type="uInt8NULL" description="Price Denominator of Main Fraction" offset="191" semanticType="int"/>
<field name="SubFraction" id="37703" type="uInt8NULL" description="Price Denominator of Sub Fraction" offset="192" semanticType="int"/>
<field name="TradingReferenceDate" id="5796" type="LocalMktDate" description="Indicates session date corresponding to the settlement price in tag 1150-TradingReferencePrice" offset="193" semanticType="LocalMktDate"/>
<group name="NoEvents" id="864" description="Number of repeating EventType entries" blockLength="9" dimensionType="groupSize">
<field name="EventType" id="865" type="EventType" description="Code to represent the type of event" offset="0" semanticType="int"/>
<field name="EventTime" id="1145" type="uInt64" description="Date and time of instument Activation or Expiration event sent as number of nanoseconds since Unix epoch" offset="1" semanticType="UTCTimestamp"/>
</group>
<group name="NoMDFeedTypes" id="1141" description="Number of FeedType entries" blockLength="4" dimensionType="groupSize">
<field name="MDFeedType" id="1022" type="MDFeedType" description="Describes a class of service for a given data feed. GBX- Real Book, GBI-Implied Book" offset="0" semanticType="String"/>
<field name="MarketDepth" id="264" type="Int8" description="Identifies the depth of book" offset="3" semanticType="int"/>
</group>
<group name="NoInstAttrib" id="870" description="Number of InstrAttribType entries" blockLength="4" dimensionType="groupSize">
<field name="InstAttribType" id="871" type="InstAttribType" description="Instrument Eligibility Attributes" semanticType="int"/>
<field name="InstAttribValue" id="872" type="InstAttribValue" description="Bitmap field of 32 Boolean type Instrument eligibility flags" offset="0" semanticType="MultipleCharValue"/>
</group>
<group name="NoLotTypeRules" id="1234" description="Number of entries" blockLength="5" dimensionType="groupSize">
<field name="LotType" id="1093" type="Int8" description="This tag is required to interpret the value in tag 1231-MinLotSize" offset="0" semanticType="int"/>
<field name="MinLotSize" id="1231" type="DecimalQty" description="Minimum quantity accepted for order entry. If tag 1093-LotType=4, this value is the minimum quantity for order entry expressed in the applicable units, specified in tag 996-UnitOfMeasure, e.g. megawatts" offset="1" semanticType="Qty"/>
</group>
<group name="NoLegs" id="555" description="Number of Leg entries" blockLength="18" dimensionType="groupSize">
<field name="LegSecurityID" id="602" type="Int32" description="Leg Security ID" offset="0" semanticType="int"/>
<field name="LegSecurityIDSource" id="603" type="SecurityIDSource" description="Identifies source of tag 602-LegSecurityID value" semanticType="char"/>
<field name="LegSide" id="624" type="LegSide" description="Leg side" offset="4" semanticType="int"/>
<field name="LegRatioQty" id="623" type="Int8" description="Leg ratio of quantity for this individual leg relative to the entire multi-leg instrument" offset="5" semanticType="Qty"/>
<field name="LegPrice" id="566" type="PRICENULL9" description="Price for the future leg of a UDS Covered instrument " offset="6" semanticType="Price"/>
<field name="LegOptionDelta" id="1017" type="DecimalQty" description="Delta used to calculate the quantity of futures used to cover the option or option strategy" offset="14" semanticType="Qty"/>
</group>
</ns2:message>
</ns2:messageSchema>
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,195 +86,268 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
#include "AggressorSide.h"
#include "Decimal9.h"
#include "Decimal9NULL.h"
#include "DecimalQty.h"
#include "EventType.h"
#include "FLOAT.h"
#include "GroupSize.h"
#include "GroupSize8Byte.h"
#include "HaltReason.h"
#include "InstAttribValue.h"
#include "LegSide.h"
#include "MDEntryType.h"
#include "MDEntryTypeBook.h"
#include "MDEntryTypeDailyStatistics.h"
#include "MDEntryTypeStatistics.h"
#include "MDUpdateAction.h"
#include "OpenCloseSettlFlag.h"
#include "MatchEventIndicator.h"
#include "MaturityMonthYear.h"
#include "MessageHeader.h"
#include "OpenCloseSettlFlag.h"
#include "OrderUpdateAction.h"
#include "PRICE.h"
#include "PRICE9.h"
#include "PRICENULL.h"
#include "FLOAT.h"
#include "MDEntryTypeDailyStatistics.h"
#include "EventType.h"
#include "DecimalQty.h"
#include "MDUpdateAction.h"
#include "PRICENULL9.h"
#include "PutOrCall.h"
#include "SecurityTradingEvent.h"
#include "GroupSize8Byte.h"
#include "HaltReason.h"
#include "PRICE9.h"
#include "MDEntryType.h"
#include "PRICENULL.h"
#include "SecurityTradingStatus.h"
#include "LegSide.h"
#include "MessageHeader.h"
#include "PRICE.h"
#include "OrderUpdateAction.h"
#include "PutOrCall.h"
#include "SecurityUpdateAction.h"
#include "SecurityTradingEvent.h"
#include "Decimal9.h"
#include "MDEntryTypeStatistics.h"
#include "InstAttribValue.h"
#include "AggressorSide.h"
#include "GroupSize.h"
#include "SettlPriceType.h"
#include "Decimal9NULL.h"
namespace mdp3 {
class AdminHeartbeat12 {
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_position = 0;
std::uint64_t m_actingVersion = 0;
class AdminHeartbeat12
{
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_position = 0;
std::uint64_t m_actingVersion = 0;
inline std::uint64_t *sbePositionPtr() SBE_NOEXCEPT { return &m_position; }
inline std::uint64_t *sbePositionPtr() SBE_NOEXCEPT
{
return &m_position;
}
public:
enum MetaAttribute { EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE };
public:
static const std::uint16_t SBE_BLOCK_LENGTH = static_cast<std::uint16_t>(0);
static const std::uint16_t SBE_TEMPLATE_ID = static_cast<std::uint16_t>(12);
static const std::uint16_t SBE_SCHEMA_ID = static_cast<std::uint16_t>(1);
static const std::uint16_t SBE_SCHEMA_VERSION = static_cast<std::uint16_t>(9);
union sbe_float_as_uint_u {
float fp_value;
std::uint32_t uint_value;
};
enum MetaAttribute
{
EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE
};
union sbe_double_as_uint_u {
double fp_value;
std::uint64_t uint_value;
};
union sbe_float_as_uint_u
{
float fp_value;
std::uint32_t uint_value;
};
AdminHeartbeat12() = default;
union sbe_double_as_uint_u
{
double fp_value;
std::uint64_t uint_value;
};
AdminHeartbeat12(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingBlockLength,
const std::uint64_t actingVersion)
: m_buffer(buffer), m_bufferLength(bufferLength), m_offset(offset),
m_position(sbeCheckPosition(offset + actingBlockLength)),
m_actingVersion(actingVersion) {}
using messageHeader = MessageHeader;
AdminHeartbeat12(char *buffer, const std::uint64_t bufferLength)
: AdminHeartbeat12(
buffer, 0, bufferLength, sbeBlockLength(), sbeSchemaVersion()) {}
AdminHeartbeat12() = default;
AdminHeartbeat12(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingBlockLength,
const std::uint64_t actingVersion)
: AdminHeartbeat12(
buffer, 0, bufferLength, actingBlockLength, actingVersion) {}
AdminHeartbeat12(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingBlockLength,
const std::uint64_t actingVersion) :
m_buffer(buffer),
m_bufferLength(bufferLength),
m_offset(offset),
m_position(sbeCheckPosition(offset + actingBlockLength)),
m_actingVersion(actingVersion)
{
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeBlockLength() SBE_NOEXCEPT {
return (std::uint16_t)0;
}
AdminHeartbeat12(char *buffer, const std::uint64_t bufferLength) :
AdminHeartbeat12(buffer, 0, bufferLength, sbeBlockLength(), sbeSchemaVersion())
{
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeTemplateId() SBE_NOEXCEPT {
return (std::uint16_t)12;
}
AdminHeartbeat12(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingBlockLength,
const std::uint64_t actingVersion) :
AdminHeartbeat12(buffer, 0, bufferLength, actingBlockLength, actingVersion)
{
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT {
return (std::uint16_t)1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeBlockLength() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(0);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeSchemaVersion() SBE_NOEXCEPT {
return (std::uint16_t)9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t sbeBlockAndHeaderLength() SBE_NOEXCEPT
{
return messageHeader::encodedLength() + sbeBlockLength();
}
SBE_NODISCARD static SBE_CONSTEXPR const char *
sbeSemanticType() SBE_NOEXCEPT {
return "0";
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeTemplateId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(12);
}
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT { return m_offset; }
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(1);
}
AdminHeartbeat12 &wrapForEncode(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength) {
return *this = AdminHeartbeat12(
buffer, offset, bufferLength, sbeBlockLength(),
sbeSchemaVersion());
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaVersion() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(9);
}
AdminHeartbeat12 &wrapAndApplyHeader(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength) {
MessageHeader hdr(buffer, offset, bufferLength, sbeSchemaVersion());
SBE_NODISCARD static SBE_CONSTEXPR const char *sbeSemanticType() SBE_NOEXCEPT
{
return "0";
}
hdr.blockLength(sbeBlockLength())
.templateId(sbeTemplateId())
.schemaId(sbeSchemaId())
.version(sbeSchemaVersion());
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT
{
return m_offset;
}
return *this = AdminHeartbeat12(
buffer, offset + MessageHeader::encodedLength(), bufferLength,
sbeBlockLength(), sbeSchemaVersion());
}
AdminHeartbeat12 &wrapForEncode(char *buffer, const std::uint64_t offset, const std::uint64_t bufferLength)
{
return *this = AdminHeartbeat12(buffer, offset, bufferLength, sbeBlockLength(), sbeSchemaVersion());
}
AdminHeartbeat12 &wrapForDecode(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingBlockLength,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength) {
return *this = AdminHeartbeat12(
buffer, offset, bufferLength, actingBlockLength,
actingVersion);
}
AdminHeartbeat12 &wrapAndApplyHeader(char *buffer, const std::uint64_t offset, const std::uint64_t bufferLength)
{
messageHeader hdr(buffer, offset, bufferLength, sbeSchemaVersion());
SBE_NODISCARD std::uint64_t sbePosition() const SBE_NOEXCEPT {
return m_position;
}
hdr
.blockLength(sbeBlockLength())
.templateId(sbeTemplateId())
.schemaId(sbeSchemaId())
.version(sbeSchemaVersion());
std::uint64_t sbeCheckPosition(const std::uint64_t position) {
if (SBE_BOUNDS_CHECK_EXPECT((position > m_bufferLength), false)) {
throw std::runtime_error("buffer too short [E100]");
}
return position;
}
return *this = AdminHeartbeat12(
buffer,
offset + messageHeader::encodedLength(),
bufferLength,
sbeBlockLength(),
sbeSchemaVersion());
}
void sbePosition(const std::uint64_t position) {
m_position = sbeCheckPosition(position);
}
AdminHeartbeat12 &wrapForDecode(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingBlockLength,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength)
{
return *this = AdminHeartbeat12(buffer, offset, bufferLength, actingBlockLength, actingVersion);
}
SBE_NODISCARD std::uint64_t encodedLength() const SBE_NOEXCEPT {
return sbePosition() - m_offset;
}
SBE_NODISCARD std::uint64_t sbePosition() const SBE_NOEXCEPT
{
return m_position;
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT { return m_buffer; }
// NOLINTNEXTLINE(readability-convert-member-functions-to-static)
std::uint64_t sbeCheckPosition(const std::uint64_t position)
{
if (SBE_BOUNDS_CHECK_EXPECT((position > m_bufferLength), false))
{
throw std::runtime_error("buffer too short [E100]");
}
return position;
}
SBE_NODISCARD char *buffer() SBE_NOEXCEPT { return m_buffer; }
void sbePosition(const std::uint64_t position)
{
m_position = sbeCheckPosition(position);
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT {
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t encodedLength() const SBE_NOEXCEPT
{
return sbePosition() - m_offset;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT {
return m_actingVersion;
}
SBE_NODISCARD std::uint64_t decodeLength() const
{
AdminHeartbeat12 skipper(m_buffer, m_offset, m_bufferLength, sbeBlockLength(), m_actingVersion);
skipper.skip();
return skipper.encodedLength();
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &operator<<(
std::basic_ostream<CharT, Traits> &builder, AdminHeartbeat12 _writer) {
AdminHeartbeat12 writer(
_writer.m_buffer, _writer.m_offset, _writer.m_bufferLength,
_writer.sbeBlockLength(), _writer.m_actingVersion);
builder << '{';
builder << R"("Name": "AdminHeartbeat12", )";
builder << R"("sbeTemplateId": )";
builder << writer.sbeTemplateId();
builder << ", ";
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT
{
return m_buffer;
}
builder << '}';
SBE_NODISCARD char *buffer() SBE_NOEXCEPT
{
return m_buffer;
}
return builder;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT
{
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT
{
return m_actingVersion;
}
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& builder, AdminHeartbeat12 _writer)
{
AdminHeartbeat12 writer(_writer.m_buffer, _writer.m_offset,
_writer.m_bufferLength, _writer.sbeBlockLength(), _writer.m_actingVersion);
builder << '{';
builder << R"("Name": "AdminHeartbeat12", )";
builder << R"("sbeTemplateId": )";
builder << writer.sbeTemplateId();
builder << ", ";
builder << '}';
return builder;
}
void skip()
{
}
SBE_NODISCARD static SBE_CONSTEXPR bool isConstLength() SBE_NOEXCEPT
{
return true;
}
SBE_NODISCARD static std::size_t computeLength()
{
#if defined(__GNUG__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wtype-limits"
#endif
std::size_t length = sbeBlockLength();
return length;
#if defined(__GNUG__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,263 +86,342 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
#include "AggressorSide.h"
#include "Decimal9.h"
#include "Decimal9NULL.h"
#include "DecimalQty.h"
#include "EventType.h"
#include "FLOAT.h"
#include "GroupSize.h"
#include "GroupSize8Byte.h"
#include "HaltReason.h"
#include "InstAttribValue.h"
#include "LegSide.h"
#include "MDEntryType.h"
#include "MDEntryTypeBook.h"
#include "MDEntryTypeDailyStatistics.h"
#include "MDEntryTypeStatistics.h"
#include "MDUpdateAction.h"
#include "OpenCloseSettlFlag.h"
#include "MatchEventIndicator.h"
#include "MaturityMonthYear.h"
#include "MessageHeader.h"
#include "OpenCloseSettlFlag.h"
#include "OrderUpdateAction.h"
#include "PRICE.h"
#include "PRICE9.h"
#include "PRICENULL.h"
#include "FLOAT.h"
#include "MDEntryTypeDailyStatistics.h"
#include "EventType.h"
#include "DecimalQty.h"
#include "MDUpdateAction.h"
#include "PRICENULL9.h"
#include "PutOrCall.h"
#include "SecurityTradingEvent.h"
#include "GroupSize8Byte.h"
#include "HaltReason.h"
#include "PRICE9.h"
#include "MDEntryType.h"
#include "PRICENULL.h"
#include "SecurityTradingStatus.h"
#include "LegSide.h"
#include "MessageHeader.h"
#include "PRICE.h"
#include "OrderUpdateAction.h"
#include "PutOrCall.h"
#include "SecurityUpdateAction.h"
#include "SecurityTradingEvent.h"
#include "Decimal9.h"
#include "MDEntryTypeStatistics.h"
#include "InstAttribValue.h"
#include "AggressorSide.h"
#include "GroupSize.h"
#include "SettlPriceType.h"
#include "Decimal9NULL.h"
namespace mdp3 {
class AdminLogin15 {
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_position = 0;
std::uint64_t m_actingVersion = 0;
class AdminLogin15
{
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_position = 0;
std::uint64_t m_actingVersion = 0;
inline std::uint64_t *sbePositionPtr() SBE_NOEXCEPT { return &m_position; }
inline std::uint64_t *sbePositionPtr() SBE_NOEXCEPT
{
return &m_position;
}
public:
enum MetaAttribute { EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE };
public:
static const std::uint16_t SBE_BLOCK_LENGTH = static_cast<std::uint16_t>(1);
static const std::uint16_t SBE_TEMPLATE_ID = static_cast<std::uint16_t>(15);
static const std::uint16_t SBE_SCHEMA_ID = static_cast<std::uint16_t>(1);
static const std::uint16_t SBE_SCHEMA_VERSION = static_cast<std::uint16_t>(9);
union sbe_float_as_uint_u {
float fp_value;
std::uint32_t uint_value;
};
enum MetaAttribute
{
EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE
};
union sbe_double_as_uint_u {
double fp_value;
std::uint64_t uint_value;
};
union sbe_float_as_uint_u
{
float fp_value;
std::uint32_t uint_value;
};
AdminLogin15() = default;
union sbe_double_as_uint_u
{
double fp_value;
std::uint64_t uint_value;
};
AdminLogin15(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingBlockLength,
const std::uint64_t actingVersion)
: m_buffer(buffer), m_bufferLength(bufferLength), m_offset(offset),
m_position(sbeCheckPosition(offset + actingBlockLength)),
m_actingVersion(actingVersion) {}
using messageHeader = MessageHeader;
AdminLogin15(char *buffer, const std::uint64_t bufferLength)
: AdminLogin15(
buffer, 0, bufferLength, sbeBlockLength(), sbeSchemaVersion()) {}
AdminLogin15() = default;
AdminLogin15(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingBlockLength,
const std::uint64_t actingVersion)
: AdminLogin15(
buffer, 0, bufferLength, actingBlockLength, actingVersion) {}
AdminLogin15(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingBlockLength,
const std::uint64_t actingVersion) :
m_buffer(buffer),
m_bufferLength(bufferLength),
m_offset(offset),
m_position(sbeCheckPosition(offset + actingBlockLength)),
m_actingVersion(actingVersion)
{
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeBlockLength() SBE_NOEXCEPT {
return (std::uint16_t)1;
}
AdminLogin15(char *buffer, const std::uint64_t bufferLength) :
AdminLogin15(buffer, 0, bufferLength, sbeBlockLength(), sbeSchemaVersion())
{
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeTemplateId() SBE_NOEXCEPT {
return (std::uint16_t)15;
}
AdminLogin15(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingBlockLength,
const std::uint64_t actingVersion) :
AdminLogin15(buffer, 0, bufferLength, actingBlockLength, actingVersion)
{
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT {
return (std::uint16_t)1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeBlockLength() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(1);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeSchemaVersion() SBE_NOEXCEPT {
return (std::uint16_t)9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t sbeBlockAndHeaderLength() SBE_NOEXCEPT
{
return messageHeader::encodedLength() + sbeBlockLength();
}
SBE_NODISCARD static SBE_CONSTEXPR const char *
sbeSemanticType() SBE_NOEXCEPT {
return "A";
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeTemplateId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(15);
}
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT { return m_offset; }
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(1);
}
AdminLogin15 &wrapForEncode(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength) {
return *this = AdminLogin15(
buffer, offset, bufferLength, sbeBlockLength(),
sbeSchemaVersion());
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaVersion() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(9);
}
AdminLogin15 &wrapAndApplyHeader(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength) {
MessageHeader hdr(buffer, offset, bufferLength, sbeSchemaVersion());
SBE_NODISCARD static SBE_CONSTEXPR const char *sbeSemanticType() SBE_NOEXCEPT
{
return "A";
}
hdr.blockLength(sbeBlockLength())
.templateId(sbeTemplateId())
.schemaId(sbeSchemaId())
.version(sbeSchemaVersion());
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT
{
return m_offset;
}
return *this = AdminLogin15(
buffer, offset + MessageHeader::encodedLength(), bufferLength,
sbeBlockLength(), sbeSchemaVersion());
}
AdminLogin15 &wrapForEncode(char *buffer, const std::uint64_t offset, const std::uint64_t bufferLength)
{
return *this = AdminLogin15(buffer, offset, bufferLength, sbeBlockLength(), sbeSchemaVersion());
}
AdminLogin15 &wrapForDecode(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingBlockLength,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength) {
return *this = AdminLogin15(
buffer, offset, bufferLength, actingBlockLength,
actingVersion);
}
AdminLogin15 &wrapAndApplyHeader(char *buffer, const std::uint64_t offset, const std::uint64_t bufferLength)
{
messageHeader hdr(buffer, offset, bufferLength, sbeSchemaVersion());
SBE_NODISCARD std::uint64_t sbePosition() const SBE_NOEXCEPT {
return m_position;
}
hdr
.blockLength(sbeBlockLength())
.templateId(sbeTemplateId())
.schemaId(sbeSchemaId())
.version(sbeSchemaVersion());
std::uint64_t sbeCheckPosition(const std::uint64_t position) {
if (SBE_BOUNDS_CHECK_EXPECT((position > m_bufferLength), false)) {
throw std::runtime_error("buffer too short [E100]");
}
return position;
}
return *this = AdminLogin15(
buffer,
offset + messageHeader::encodedLength(),
bufferLength,
sbeBlockLength(),
sbeSchemaVersion());
}
void sbePosition(const std::uint64_t position) {
m_position = sbeCheckPosition(position);
}
AdminLogin15 &wrapForDecode(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingBlockLength,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength)
{
return *this = AdminLogin15(buffer, offset, bufferLength, actingBlockLength, actingVersion);
}
SBE_NODISCARD std::uint64_t encodedLength() const SBE_NOEXCEPT {
return sbePosition() - m_offset;
}
SBE_NODISCARD std::uint64_t sbePosition() const SBE_NOEXCEPT
{
return m_position;
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT { return m_buffer; }
// NOLINTNEXTLINE(readability-convert-member-functions-to-static)
std::uint64_t sbeCheckPosition(const std::uint64_t position)
{
if (SBE_BOUNDS_CHECK_EXPECT((position > m_bufferLength), false))
{
throw std::runtime_error("buffer too short [E100]");
}
return position;
}
SBE_NODISCARD char *buffer() SBE_NOEXCEPT { return m_buffer; }
void sbePosition(const std::uint64_t position)
{
m_position = sbeCheckPosition(position);
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT {
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t encodedLength() const SBE_NOEXCEPT
{
return sbePosition() - m_offset;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT {
return m_actingVersion;
}
SBE_NODISCARD std::uint64_t decodeLength() const
{
AdminLogin15 skipper(m_buffer, m_offset, m_bufferLength, sbeBlockLength(), m_actingVersion);
skipper.skip();
return skipper.encodedLength();
}
SBE_NODISCARD static const char *
HeartBtIntMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::SEMANTIC_TYPE:
return "int";
case MetaAttribute::PRESENCE:
return "required";
default:
return "";
}
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT
{
return m_buffer;
}
static SBE_CONSTEXPR std::uint16_t heartBtIntId() SBE_NOEXCEPT {
return 108;
}
SBE_NODISCARD char *buffer() SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
heartBtIntSinceVersion() SBE_NOEXCEPT {
return 0;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT
{
return m_bufferLength;
}
SBE_NODISCARD bool heartBtIntInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT
{
return m_actingVersion;
}
SBE_NODISCARD static const char *HeartBtIntMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::SEMANTIC_TYPE: return "int";
case MetaAttribute::PRESENCE: return "required";
default: return "";
}
}
static SBE_CONSTEXPR std::uint16_t heartBtIntId() SBE_NOEXCEPT
{
return 108;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t heartBtIntSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool heartBtIntInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= heartBtIntSinceVersion();
return m_actingVersion >= heartBtIntSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
heartBtIntEncodingOffset() SBE_NOEXCEPT {
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t heartBtIntEncodingOffset() SBE_NOEXCEPT
{
return 0;
}
static SBE_CONSTEXPR std::int8_t heartBtIntNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_INT8;
}
static SBE_CONSTEXPR std::int8_t heartBtIntNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_INT8;
}
static SBE_CONSTEXPR std::int8_t heartBtIntMinValue() SBE_NOEXCEPT {
return (std::int8_t)-127;
}
static SBE_CONSTEXPR std::int8_t heartBtIntMinValue() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(-127);
}
static SBE_CONSTEXPR std::int8_t heartBtIntMaxValue() SBE_NOEXCEPT {
return (std::int8_t)127;
}
static SBE_CONSTEXPR std::int8_t heartBtIntMaxValue() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(127);
}
static SBE_CONSTEXPR std::size_t heartBtIntEncodingLength() SBE_NOEXCEPT {
return 1;
}
static SBE_CONSTEXPR std::size_t heartBtIntEncodingLength() SBE_NOEXCEPT
{
return 1;
}
SBE_NODISCARD std::int8_t heartBtInt() const SBE_NOEXCEPT {
std::int8_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::int8_t));
return (val);
}
SBE_NODISCARD std::int8_t heartBtInt() const SBE_NOEXCEPT
{
std::int8_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::int8_t));
return (val);
}
AdminLogin15 &heartBtInt(const std::int8_t value) SBE_NOEXCEPT {
std::int8_t val = (value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::int8_t));
return *this;
}
AdminLogin15 &heartBtInt(const std::int8_t value) SBE_NOEXCEPT
{
std::int8_t val = (value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::int8_t));
return *this;
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &operator<<(
std::basic_ostream<CharT, Traits> &builder, AdminLogin15 _writer) {
AdminLogin15 writer(
_writer.m_buffer, _writer.m_offset, _writer.m_bufferLength,
_writer.sbeBlockLength(), _writer.m_actingVersion);
builder << '{';
builder << R"("Name": "AdminLogin15", )";
builder << R"("sbeTemplateId": )";
builder << writer.sbeTemplateId();
builder << ", ";
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& builder, AdminLogin15 _writer)
{
AdminLogin15 writer(_writer.m_buffer, _writer.m_offset,
_writer.m_bufferLength, _writer.sbeBlockLength(), _writer.m_actingVersion);
builder << '{';
builder << R"("Name": "AdminLogin15", )";
builder << R"("sbeTemplateId": )";
builder << writer.sbeTemplateId();
builder << ", ";
builder << R"("HeartBtInt": )";
builder << +writer.heartBtInt();
builder << R"("HeartBtInt": )";
builder << +writer.heartBtInt();
builder << '}';
builder << '}';
return builder;
}
return builder;
}
void skip()
{
}
SBE_NODISCARD static SBE_CONSTEXPR bool isConstLength() SBE_NOEXCEPT
{
return true;
}
SBE_NODISCARD static std::size_t computeLength()
{
#if defined(__GNUG__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wtype-limits"
#endif
std::size_t length = sbeBlockLength();
return length;
#if defined(__GNUG__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,382 +86,478 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
#include "AggressorSide.h"
#include "Decimal9.h"
#include "Decimal9NULL.h"
#include "DecimalQty.h"
#include "EventType.h"
#include "FLOAT.h"
#include "GroupSize.h"
#include "GroupSize8Byte.h"
#include "HaltReason.h"
#include "InstAttribValue.h"
#include "LegSide.h"
#include "MDEntryType.h"
#include "MDEntryTypeBook.h"
#include "MDEntryTypeDailyStatistics.h"
#include "MDEntryTypeStatistics.h"
#include "MDUpdateAction.h"
#include "OpenCloseSettlFlag.h"
#include "MatchEventIndicator.h"
#include "MaturityMonthYear.h"
#include "MessageHeader.h"
#include "OpenCloseSettlFlag.h"
#include "OrderUpdateAction.h"
#include "PRICE.h"
#include "PRICE9.h"
#include "PRICENULL.h"
#include "FLOAT.h"
#include "MDEntryTypeDailyStatistics.h"
#include "EventType.h"
#include "DecimalQty.h"
#include "MDUpdateAction.h"
#include "PRICENULL9.h"
#include "PutOrCall.h"
#include "SecurityTradingEvent.h"
#include "GroupSize8Byte.h"
#include "HaltReason.h"
#include "PRICE9.h"
#include "MDEntryType.h"
#include "PRICENULL.h"
#include "SecurityTradingStatus.h"
#include "LegSide.h"
#include "MessageHeader.h"
#include "PRICE.h"
#include "OrderUpdateAction.h"
#include "PutOrCall.h"
#include "SecurityUpdateAction.h"
#include "SecurityTradingEvent.h"
#include "Decimal9.h"
#include "MDEntryTypeStatistics.h"
#include "InstAttribValue.h"
#include "AggressorSide.h"
#include "GroupSize.h"
#include "SettlPriceType.h"
#include "Decimal9NULL.h"
namespace mdp3 {
class AdminLogout16 {
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_position = 0;
std::uint64_t m_actingVersion = 0;
class AdminLogout16
{
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_position = 0;
std::uint64_t m_actingVersion = 0;
inline std::uint64_t *sbePositionPtr() SBE_NOEXCEPT { return &m_position; }
inline std::uint64_t *sbePositionPtr() SBE_NOEXCEPT
{
return &m_position;
}
public:
enum MetaAttribute { EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE };
public:
static const std::uint16_t SBE_BLOCK_LENGTH = static_cast<std::uint16_t>(180);
static const std::uint16_t SBE_TEMPLATE_ID = static_cast<std::uint16_t>(16);
static const std::uint16_t SBE_SCHEMA_ID = static_cast<std::uint16_t>(1);
static const std::uint16_t SBE_SCHEMA_VERSION = static_cast<std::uint16_t>(9);
union sbe_float_as_uint_u {
float fp_value;
std::uint32_t uint_value;
};
enum MetaAttribute
{
EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE
};
union sbe_double_as_uint_u {
double fp_value;
std::uint64_t uint_value;
};
union sbe_float_as_uint_u
{
float fp_value;
std::uint32_t uint_value;
};
AdminLogout16() = default;
union sbe_double_as_uint_u
{
double fp_value;
std::uint64_t uint_value;
};
AdminLogout16(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingBlockLength,
const std::uint64_t actingVersion)
: m_buffer(buffer), m_bufferLength(bufferLength), m_offset(offset),
m_position(sbeCheckPosition(offset + actingBlockLength)),
m_actingVersion(actingVersion) {}
using messageHeader = MessageHeader;
AdminLogout16(char *buffer, const std::uint64_t bufferLength)
: AdminLogout16(
buffer, 0, bufferLength, sbeBlockLength(), sbeSchemaVersion()) {}
AdminLogout16() = default;
AdminLogout16(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingBlockLength,
const std::uint64_t actingVersion)
: AdminLogout16(
buffer, 0, bufferLength, actingBlockLength, actingVersion) {}
AdminLogout16(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingBlockLength,
const std::uint64_t actingVersion) :
m_buffer(buffer),
m_bufferLength(bufferLength),
m_offset(offset),
m_position(sbeCheckPosition(offset + actingBlockLength)),
m_actingVersion(actingVersion)
{
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeBlockLength() SBE_NOEXCEPT {
return (std::uint16_t)180;
}
AdminLogout16(char *buffer, const std::uint64_t bufferLength) :
AdminLogout16(buffer, 0, bufferLength, sbeBlockLength(), sbeSchemaVersion())
{
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeTemplateId() SBE_NOEXCEPT {
return (std::uint16_t)16;
}
AdminLogout16(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingBlockLength,
const std::uint64_t actingVersion) :
AdminLogout16(buffer, 0, bufferLength, actingBlockLength, actingVersion)
{
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT {
return (std::uint16_t)1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeBlockLength() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(180);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeSchemaVersion() SBE_NOEXCEPT {
return (std::uint16_t)9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t sbeBlockAndHeaderLength() SBE_NOEXCEPT
{
return messageHeader::encodedLength() + sbeBlockLength();
}
SBE_NODISCARD static SBE_CONSTEXPR const char *
sbeSemanticType() SBE_NOEXCEPT {
return "5";
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeTemplateId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(16);
}
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT { return m_offset; }
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(1);
}
AdminLogout16 &wrapForEncode(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength) {
return *this = AdminLogout16(
buffer, offset, bufferLength, sbeBlockLength(),
sbeSchemaVersion());
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaVersion() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(9);
}
AdminLogout16 &wrapAndApplyHeader(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength) {
MessageHeader hdr(buffer, offset, bufferLength, sbeSchemaVersion());
SBE_NODISCARD static SBE_CONSTEXPR const char *sbeSemanticType() SBE_NOEXCEPT
{
return "5";
}
hdr.blockLength(sbeBlockLength())
.templateId(sbeTemplateId())
.schemaId(sbeSchemaId())
.version(sbeSchemaVersion());
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT
{
return m_offset;
}
return *this = AdminLogout16(
buffer, offset + MessageHeader::encodedLength(), bufferLength,
sbeBlockLength(), sbeSchemaVersion());
}
AdminLogout16 &wrapForEncode(char *buffer, const std::uint64_t offset, const std::uint64_t bufferLength)
{
return *this = AdminLogout16(buffer, offset, bufferLength, sbeBlockLength(), sbeSchemaVersion());
}
AdminLogout16 &wrapForDecode(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingBlockLength,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength) {
return *this = AdminLogout16(
buffer, offset, bufferLength, actingBlockLength,
actingVersion);
}
AdminLogout16 &wrapAndApplyHeader(char *buffer, const std::uint64_t offset, const std::uint64_t bufferLength)
{
messageHeader hdr(buffer, offset, bufferLength, sbeSchemaVersion());
SBE_NODISCARD std::uint64_t sbePosition() const SBE_NOEXCEPT {
return m_position;
}
hdr
.blockLength(sbeBlockLength())
.templateId(sbeTemplateId())
.schemaId(sbeSchemaId())
.version(sbeSchemaVersion());
std::uint64_t sbeCheckPosition(const std::uint64_t position) {
if (SBE_BOUNDS_CHECK_EXPECT((position > m_bufferLength), false)) {
throw std::runtime_error("buffer too short [E100]");
}
return position;
}
return *this = AdminLogout16(
buffer,
offset + messageHeader::encodedLength(),
bufferLength,
sbeBlockLength(),
sbeSchemaVersion());
}
void sbePosition(const std::uint64_t position) {
m_position = sbeCheckPosition(position);
}
AdminLogout16 &wrapForDecode(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingBlockLength,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength)
{
return *this = AdminLogout16(buffer, offset, bufferLength, actingBlockLength, actingVersion);
}
SBE_NODISCARD std::uint64_t encodedLength() const SBE_NOEXCEPT {
return sbePosition() - m_offset;
}
SBE_NODISCARD std::uint64_t sbePosition() const SBE_NOEXCEPT
{
return m_position;
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT { return m_buffer; }
// NOLINTNEXTLINE(readability-convert-member-functions-to-static)
std::uint64_t sbeCheckPosition(const std::uint64_t position)
{
if (SBE_BOUNDS_CHECK_EXPECT((position > m_bufferLength), false))
{
throw std::runtime_error("buffer too short [E100]");
}
return position;
}
SBE_NODISCARD char *buffer() SBE_NOEXCEPT { return m_buffer; }
void sbePosition(const std::uint64_t position)
{
m_position = sbeCheckPosition(position);
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT {
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t encodedLength() const SBE_NOEXCEPT
{
return sbePosition() - m_offset;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT {
return m_actingVersion;
}
SBE_NODISCARD std::uint64_t decodeLength() const
{
AdminLogout16 skipper(m_buffer, m_offset, m_bufferLength, sbeBlockLength(), m_actingVersion);
skipper.skip();
return skipper.encodedLength();
}
SBE_NODISCARD static const char *
TextMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::SEMANTIC_TYPE:
return "String";
case MetaAttribute::PRESENCE:
return "required";
default:
return "";
}
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT
{
return m_buffer;
}
static SBE_CONSTEXPR std::uint16_t textId() SBE_NOEXCEPT { return 58; }
SBE_NODISCARD char *buffer() SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
textSinceVersion() SBE_NOEXCEPT {
return 0;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT
{
return m_bufferLength;
}
SBE_NODISCARD bool textInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT
{
return m_actingVersion;
}
SBE_NODISCARD static const char *TextMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::SEMANTIC_TYPE: return "String";
case MetaAttribute::PRESENCE: return "required";
default: return "";
}
}
static SBE_CONSTEXPR std::uint16_t textId() SBE_NOEXCEPT
{
return 58;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t textSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool textInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= textSinceVersion();
return m_actingVersion >= textSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
textEncodingOffset() SBE_NOEXCEPT {
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t textEncodingOffset() SBE_NOEXCEPT
{
return 0;
}
static SBE_CONSTEXPR char textNullValue() SBE_NOEXCEPT { return (char)0; }
static SBE_CONSTEXPR char textNullValue() SBE_NOEXCEPT
{
return static_cast<char>(0);
}
static SBE_CONSTEXPR char textMinValue() SBE_NOEXCEPT { return (char)32; }
static SBE_CONSTEXPR char textMinValue() SBE_NOEXCEPT
{
return static_cast<char>(32);
}
static SBE_CONSTEXPR char textMaxValue() SBE_NOEXCEPT { return (char)126; }
static SBE_CONSTEXPR char textMaxValue() SBE_NOEXCEPT
{
return static_cast<char>(126);
}
static SBE_CONSTEXPR std::size_t textEncodingLength() SBE_NOEXCEPT {
return 180;
}
static SBE_CONSTEXPR std::size_t textEncodingLength() SBE_NOEXCEPT
{
return 180;
}
static SBE_CONSTEXPR std::uint64_t textLength() SBE_NOEXCEPT { return 180; }
static SBE_CONSTEXPR std::uint64_t textLength() SBE_NOEXCEPT
{
return 180;
}
SBE_NODISCARD const char *text() const SBE_NOEXCEPT {
return m_buffer + m_offset + 0;
}
SBE_NODISCARD const char *text() const SBE_NOEXCEPT
{
return m_buffer + m_offset + 0;
}
SBE_NODISCARD char *text() SBE_NOEXCEPT { return m_buffer + m_offset + 0; }
SBE_NODISCARD char *text() SBE_NOEXCEPT
{
return m_buffer + m_offset + 0;
}
SBE_NODISCARD char text(const std::uint64_t index) const {
if (index >= 180) {
throw std::runtime_error("index out of range for text [E104]");
}
SBE_NODISCARD char text(const std::uint64_t index) const
{
if (index >= 180)
{
throw std::runtime_error("index out of range for text [E104]");
}
char val;
std::memcpy(&val, m_buffer + m_offset + 0 + (index * 1), sizeof(char));
return (val);
}
char val;
std::memcpy(&val, m_buffer + m_offset + 0 + (index * 1), sizeof(char));
return (val);
}
AdminLogout16 &text(const std::uint64_t index, const char value) {
if (index >= 180) {
throw std::runtime_error("index out of range for text [E105]");
}
AdminLogout16 &text(const std::uint64_t index, const char value)
{
if (index >= 180)
{
throw std::runtime_error("index out of range for text [E105]");
}
char val = (value);
std::memcpy(m_buffer + m_offset + 0 + (index * 1), &val, sizeof(char));
return *this;
}
char val = (value);
std::memcpy(m_buffer + m_offset + 0 + (index * 1), &val, sizeof(char));
return *this;
}
std::uint64_t getText(char *const dst, const std::uint64_t length) const {
if (length > 180) {
throw std::runtime_error("length too large for getText [E106]");
}
std::uint64_t getText(char *const dst, const std::uint64_t length) const
{
if (length > 180)
{
throw std::runtime_error("length too large for getText [E106]");
}
std::memcpy(
dst, m_buffer + m_offset + 0,
sizeof(char) * static_cast<size_t>(length));
return length;
}
std::memcpy(dst, m_buffer + m_offset + 0, sizeof(char) * static_cast<size_t>(length));
return length;
}
AdminLogout16 &putText(const char *const src) SBE_NOEXCEPT {
std::memcpy(m_buffer + m_offset + 0, src, sizeof(char) * 180);
return *this;
}
AdminLogout16 &putText(const char *const src) SBE_NOEXCEPT
{
std::memcpy(m_buffer + m_offset + 0, src, sizeof(char) * 180);
return *this;
}
std::string getTextAsString() const {
const char *buffer = m_buffer + m_offset + 0;
size_t length = 0;
SBE_NODISCARD std::string getTextAsString() const
{
const char *buffer = m_buffer + m_offset + 0;
size_t length = 0;
for (; length < 180 && *(buffer + length) != '\0'; ++length)
;
std::string result(buffer, length);
for (; length < 180 && *(buffer + length) != '\0'; ++length);
std::string result(buffer, length);
return result;
}
return result;
}
std::string getTextAsJsonEscapedString() {
std::ostringstream oss;
std::string s = getTextAsString();
std::string getTextAsJsonEscapedString()
{
std::ostringstream oss;
std::string s = getTextAsString();
for (auto c = s.cbegin(); c != s.cend(); c++) {
switch (*c) {
case '"':
oss << "\\\"";
break;
case '\\':
oss << "\\\\";
break;
case '\b':
oss << "\\b";
break;
case '\f':
oss << "\\f";
break;
case '\n':
oss << "\\n";
break;
case '\r':
oss << "\\r";
break;
case '\t':
oss << "\\t";
break;
for (const auto c : s)
{
switch (c)
{
case '"': oss << "\\\""; break;
case '\\': oss << "\\\\"; break;
case '\b': oss << "\\b"; break;
case '\f': oss << "\\f"; break;
case '\n': oss << "\\n"; break;
case '\r': oss << "\\r"; break;
case '\t': oss << "\\t"; break;
default:
if ('\x00' <= *c && *c <= '\x1f') {
oss << "\\u" << std::hex << std::setw(4) << std::setfill('0')
<< (int)(*c);
} else {
oss << *c;
default:
if ('\x00' <= c && c <= '\x1f')
{
oss << "\\u" << std::hex << std::setw(4)
<< std::setfill('0') << (int)(c);
}
else
{
oss << c;
}
}
}
}
}
return oss.str();
}
return oss.str();
}
#if __cplusplus >= 201703L
std::string_view getTextAsStringView() const SBE_NOEXCEPT {
const char *buffer = m_buffer + m_offset + 0;
size_t length = 0;
#if __cplusplus >= 201703L
SBE_NODISCARD std::string_view getTextAsStringView() const SBE_NOEXCEPT
{
const char *buffer = m_buffer + m_offset + 0;
size_t length = 0;
for (; length < 180 && *(buffer + length) != '\0'; ++length)
;
std::string_view result(buffer, length);
for (; length < 180 && *(buffer + length) != '\0'; ++length);
std::string_view result(buffer, length);
return result;
}
return result;
}
#endif
#if __cplusplus >= 201703L
AdminLogout16 &putText(const std::string_view str)
{
const size_t srcLength = str.length();
if (srcLength > 180)
{
throw std::runtime_error("string too large for putText [E106]");
}
std::memcpy(m_buffer + m_offset + 0, str.data(), srcLength);
for (size_t start = srcLength; start < 180; ++start)
{
m_buffer[m_offset + 0 + start] = 0;
}
return *this;
}
#else
AdminLogout16 &putText(const std::string& str)
{
const size_t srcLength = str.length();
if (srcLength > 180)
{
throw std::runtime_error("string too large for putText [E106]");
}
std::memcpy(m_buffer + m_offset + 0, str.c_str(), srcLength);
for (size_t start = srcLength; start < 180; ++start)
{
m_buffer[m_offset + 0 + start] = 0;
}
return *this;
}
#endif
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& builder, AdminLogout16 _writer)
{
AdminLogout16 writer(_writer.m_buffer, _writer.m_offset,
_writer.m_bufferLength, _writer.sbeBlockLength(), _writer.m_actingVersion);
builder << '{';
builder << R"("Name": "AdminLogout16", )";
builder << R"("sbeTemplateId": )";
builder << writer.sbeTemplateId();
builder << ", ";
builder << R"("Text": )";
builder << '"' <<
writer.getTextAsJsonEscapedString().c_str() << '"';
builder << '}';
return builder;
}
void skip()
{
}
SBE_NODISCARD static SBE_CONSTEXPR bool isConstLength() SBE_NOEXCEPT
{
return true;
}
SBE_NODISCARD static std::size_t computeLength()
{
#if defined(__GNUG__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wtype-limits"
#endif
std::size_t length = sbeBlockLength();
#if __cplusplus >= 201703L
AdminLogout16 &putText(const std::string_view str) {
const size_t srcLength = str.length();
if (srcLength > 180) {
throw std::runtime_error("string too large for putText [E106]");
}
std::memcpy(m_buffer + m_offset + 0, str.data(), srcLength);
for (size_t start = srcLength; start < 180; ++start) {
m_buffer[m_offset + 0 + start] = 0;
}
return *this;
}
#else
AdminLogout16 &putText(const std::string &str) {
const size_t srcLength = str.length();
if (srcLength > 180) {
throw std::runtime_error("string too large for putText [E106]");
}
std::memcpy(m_buffer + m_offset + 0, str.c_str(), srcLength);
for (size_t start = srcLength; start < 180; ++start) {
m_buffer[m_offset + 0 + start] = 0;
}
return *this;
}
return length;
#if defined(__GNUG__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &operator<<(
std::basic_ostream<CharT, Traits> &builder, AdminLogout16 _writer) {
AdminLogout16 writer(
_writer.m_buffer, _writer.m_offset, _writer.m_bufferLength,
_writer.sbeBlockLength(), _writer.m_actingVersion);
builder << '{';
builder << R"("Name": "AdminLogout16", )";
builder << R"("sbeTemplateId": )";
builder << writer.sbeTemplateId();
builder << ", ";
builder << R"("Text": )";
builder << '"' << writer.getTextAsJsonEscapedString().c_str() << '"';
builder << '}';
return builder;
}
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,54 +86,54 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class AggressorSide {
public:
enum Value {
NoAggressor = (std::uint8_t)0,
Buy = (std::uint8_t)1,
Sell = (std::uint8_t)2,
NULL_VALUE = (std::uint8_t)255
};
class AggressorSide
{
public:
enum Value
{
NoAggressor = static_cast<std::uint8_t>(0),
Buy = static_cast<std::uint8_t>(1),
Sell = static_cast<std::uint8_t>(2),
NULL_VALUE = static_cast<std::uint8_t>(255)
};
static AggressorSide::Value get(const std::uint8_t value) {
switch (value) {
case 0:
return NoAggressor;
case 1:
return Buy;
case 2:
return Sell;
case 255:
return NULL_VALUE;
}
static AggressorSide::Value get(const std::uint8_t value)
{
switch (value)
{
case static_cast<std::uint8_t>(0): return NoAggressor;
case static_cast<std::uint8_t>(1): return Buy;
case static_cast<std::uint8_t>(2): return Sell;
case static_cast<std::uint8_t>(255): return NULL_VALUE;
}
throw std::runtime_error("unknown value for enum AggressorSide [E103]");
}
throw std::runtime_error("unknown value for enum AggressorSide [E103]");
}
static const char *c_str(const AggressorSide::Value value) {
switch (value) {
case NoAggressor:
return "NoAggressor";
case Buy:
return "Buy";
case Sell:
return "Sell";
case NULL_VALUE:
return "NULL_VALUE";
}
static const char *c_str(const AggressorSide::Value value)
{
switch (value)
{
case NoAggressor: return "NoAggressor";
case Buy: return "Buy";
case Sell: return "Sell";
case NULL_VALUE: return "NULL_VALUE";
}
throw std::runtime_error("unknown value for enum AggressorSide [E103]:");
}
throw std::runtime_error("unknown value for enum AggressorSide [E103]:");
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &
operator<<(std::basic_ostream<CharT, Traits> &os, AggressorSide::Value m) {
return os << AggressorSide::c_str(m);
}
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& os, AggressorSide::Value m)
{
return os << AggressorSide::c_str(m);
}
};
} // namespace mdp3
}
#endif
File diff suppressed because it is too large. Load diff
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,210 +86,263 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class Decimal9 {
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
class Decimal9
{
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
public:
enum MetaAttribute { EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE };
public:
enum MetaAttribute
{
EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE
};
union sbe_float_as_uint_u {
float fp_value;
std::uint32_t uint_value;
};
union sbe_float_as_uint_u
{
float fp_value;
std::uint32_t uint_value;
};
union sbe_double_as_uint_u {
double fp_value;
std::uint64_t uint_value;
};
union sbe_double_as_uint_u
{
double fp_value;
std::uint64_t uint_value;
};
Decimal9() = default;
Decimal9() = default;
Decimal9(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: m_buffer(buffer), m_bufferLength(bufferLength), m_offset(offset),
m_actingVersion(actingVersion) {
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 8) > m_bufferLength), false)) {
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
Decimal9(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
m_buffer(buffer),
m_bufferLength(bufferLength),
m_offset(offset),
m_actingVersion(actingVersion)
{
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 8) > m_bufferLength), false))
{
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
Decimal9(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: Decimal9(buffer, 0, bufferLength, actingVersion) {}
Decimal9(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
Decimal9(buffer, 0, bufferLength, actingVersion)
{
}
Decimal9(char *buffer, const std::uint64_t bufferLength)
: Decimal9(buffer, 0, bufferLength, sbeSchemaVersion()) {}
Decimal9(
char *buffer,
const std::uint64_t bufferLength) :
Decimal9(buffer, 0, bufferLength, sbeSchemaVersion())
{
}
Decimal9 &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength) {
return *this = Decimal9(buffer, offset, bufferLength, actingVersion);
}
Decimal9 &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength)
{
return *this = Decimal9(buffer, offset, bufferLength, actingVersion);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
encodedLength() SBE_NOEXCEPT {
return 8;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t encodedLength() SBE_NOEXCEPT
{
return 8;
}
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT { return m_offset; }
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT
{
return m_offset;
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD char *buffer() SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD char *buffer() SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT {
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT
{
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT {
return m_actingVersion;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT
{
return m_actingVersion;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT {
return (std::uint16_t)1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(1);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeSchemaVersion() SBE_NOEXCEPT {
return (std::uint16_t)9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaVersion() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(9);
}
SBE_NODISCARD static const char *
mantissaMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "required";
default:
return "";
}
}
SBE_NODISCARD static const char *mantissaMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "required";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
mantissaSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t mantissaId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool mantissaInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t mantissaSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool mantissaInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= mantissaSinceVersion();
return m_actingVersion >= mantissaSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
mantissaEncodingOffset() SBE_NOEXCEPT {
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t mantissaEncodingOffset() SBE_NOEXCEPT
{
return 0;
}
static SBE_CONSTEXPR std::int64_t mantissaNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_INT64;
}
static SBE_CONSTEXPR std::int64_t mantissaNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_INT64;
}
static SBE_CONSTEXPR std::int64_t mantissaMinValue() SBE_NOEXCEPT {
return -9223372036854775807L;
}
static SBE_CONSTEXPR std::int64_t mantissaMinValue() SBE_NOEXCEPT
{
return INT64_C(-9223372036854775807);
}
static SBE_CONSTEXPR std::int64_t mantissaMaxValue() SBE_NOEXCEPT {
return 9223372036854775807L;
}
static SBE_CONSTEXPR std::int64_t mantissaMaxValue() SBE_NOEXCEPT
{
return INT64_C(9223372036854775807);
}
static SBE_CONSTEXPR std::size_t mantissaEncodingLength() SBE_NOEXCEPT {
return 8;
}
static SBE_CONSTEXPR std::size_t mantissaEncodingLength() SBE_NOEXCEPT
{
return 8;
}
SBE_NODISCARD std::int64_t mantissa() const SBE_NOEXCEPT {
std::int64_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::int64_t));
return SBE_LITTLE_ENDIAN_ENCODE_64(val);
}
SBE_NODISCARD std::int64_t mantissa() const SBE_NOEXCEPT
{
std::int64_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::int64_t));
return SBE_LITTLE_ENDIAN_ENCODE_64(val);
}
Decimal9 &mantissa(const std::int64_t value) SBE_NOEXCEPT {
std::int64_t val = SBE_LITTLE_ENDIAN_ENCODE_64(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::int64_t));
return *this;
}
Decimal9 &mantissa(const std::int64_t value) SBE_NOEXCEPT
{
std::int64_t val = SBE_LITTLE_ENDIAN_ENCODE_64(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::int64_t));
return *this;
}
SBE_NODISCARD static const char *
exponentMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "constant";
default:
return "";
}
}
SBE_NODISCARD static const char *exponentMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "constant";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
exponentSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t exponentId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool exponentInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t exponentSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool exponentInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= exponentSinceVersion();
return m_actingVersion >= exponentSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
exponentEncodingOffset() SBE_NOEXCEPT {
return 8;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t exponentEncodingOffset() SBE_NOEXCEPT
{
return 8;
}
static SBE_CONSTEXPR std::int8_t exponentNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_INT8;
}
static SBE_CONSTEXPR std::int8_t exponentNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_INT8;
}
static SBE_CONSTEXPR std::int8_t exponentMinValue() SBE_NOEXCEPT {
return (std::int8_t)-127;
}
static SBE_CONSTEXPR std::int8_t exponentMinValue() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(-127);
}
static SBE_CONSTEXPR std::int8_t exponentMaxValue() SBE_NOEXCEPT {
return (std::int8_t)127;
}
static SBE_CONSTEXPR std::int8_t exponentMaxValue() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(127);
}
static SBE_CONSTEXPR std::size_t exponentEncodingLength() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::size_t exponentEncodingLength() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::int8_t exponent() SBE_NOEXCEPT {
return (std::int8_t)-9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::int8_t exponent() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(-9);
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &
operator<<(std::basic_ostream<CharT, Traits> &builder, Decimal9 writer) {
builder << '{';
builder << R"("mantissa": )";
builder << +writer.mantissa();
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& builder, Decimal9 writer)
{
builder << '{';
builder << R"("mantissa": )";
builder << +writer.mantissa();
builder << '}';
builder << '}';
return builder;
}
return builder;
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,210 +86,263 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class Decimal9NULL {
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
class Decimal9NULL
{
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
public:
enum MetaAttribute { EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE };
public:
enum MetaAttribute
{
EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE
};
union sbe_float_as_uint_u {
float fp_value;
std::uint32_t uint_value;
};
union sbe_float_as_uint_u
{
float fp_value;
std::uint32_t uint_value;
};
union sbe_double_as_uint_u {
double fp_value;
std::uint64_t uint_value;
};
union sbe_double_as_uint_u
{
double fp_value;
std::uint64_t uint_value;
};
Decimal9NULL() = default;
Decimal9NULL() = default;
Decimal9NULL(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: m_buffer(buffer), m_bufferLength(bufferLength), m_offset(offset),
m_actingVersion(actingVersion) {
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 8) > m_bufferLength), false)) {
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
Decimal9NULL(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
m_buffer(buffer),
m_bufferLength(bufferLength),
m_offset(offset),
m_actingVersion(actingVersion)
{
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 8) > m_bufferLength), false))
{
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
Decimal9NULL(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: Decimal9NULL(buffer, 0, bufferLength, actingVersion) {}
Decimal9NULL(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
Decimal9NULL(buffer, 0, bufferLength, actingVersion)
{
}
Decimal9NULL(char *buffer, const std::uint64_t bufferLength)
: Decimal9NULL(buffer, 0, bufferLength, sbeSchemaVersion()) {}
Decimal9NULL(
char *buffer,
const std::uint64_t bufferLength) :
Decimal9NULL(buffer, 0, bufferLength, sbeSchemaVersion())
{
}
Decimal9NULL &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength) {
return *this = Decimal9NULL(buffer, offset, bufferLength, actingVersion);
}
Decimal9NULL &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength)
{
return *this = Decimal9NULL(buffer, offset, bufferLength, actingVersion);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
encodedLength() SBE_NOEXCEPT {
return 8;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t encodedLength() SBE_NOEXCEPT
{
return 8;
}
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT { return m_offset; }
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT
{
return m_offset;
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD char *buffer() SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD char *buffer() SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT {
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT
{
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT {
return m_actingVersion;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT
{
return m_actingVersion;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT {
return (std::uint16_t)1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(1);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeSchemaVersion() SBE_NOEXCEPT {
return (std::uint16_t)9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaVersion() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(9);
}
SBE_NODISCARD static const char *
mantissaMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "optional";
default:
return "";
}
}
SBE_NODISCARD static const char *mantissaMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "optional";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
mantissaSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t mantissaId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool mantissaInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t mantissaSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool mantissaInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= mantissaSinceVersion();
return m_actingVersion >= mantissaSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
mantissaEncodingOffset() SBE_NOEXCEPT {
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t mantissaEncodingOffset() SBE_NOEXCEPT
{
return 0;
}
static SBE_CONSTEXPR std::int64_t mantissaNullValue() SBE_NOEXCEPT {
return 9223372036854775807L;
}
static SBE_CONSTEXPR std::int64_t mantissaNullValue() SBE_NOEXCEPT
{
return INT64_C(9223372036854775807);
}
static SBE_CONSTEXPR std::int64_t mantissaMinValue() SBE_NOEXCEPT {
return -9223372036854775807L;
}
static SBE_CONSTEXPR std::int64_t mantissaMinValue() SBE_NOEXCEPT
{
return INT64_C(-9223372036854775807);
}
static SBE_CONSTEXPR std::int64_t mantissaMaxValue() SBE_NOEXCEPT {
return 9223372036854775807L;
}
static SBE_CONSTEXPR std::int64_t mantissaMaxValue() SBE_NOEXCEPT
{
return INT64_C(9223372036854775807);
}
static SBE_CONSTEXPR std::size_t mantissaEncodingLength() SBE_NOEXCEPT {
return 8;
}
static SBE_CONSTEXPR std::size_t mantissaEncodingLength() SBE_NOEXCEPT
{
return 8;
}
SBE_NODISCARD std::int64_t mantissa() const SBE_NOEXCEPT {
std::int64_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::int64_t));
return SBE_LITTLE_ENDIAN_ENCODE_64(val);
}
SBE_NODISCARD std::int64_t mantissa() const SBE_NOEXCEPT
{
std::int64_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::int64_t));
return SBE_LITTLE_ENDIAN_ENCODE_64(val);
}
Decimal9NULL &mantissa(const std::int64_t value) SBE_NOEXCEPT {
std::int64_t val = SBE_LITTLE_ENDIAN_ENCODE_64(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::int64_t));
return *this;
}
Decimal9NULL &mantissa(const std::int64_t value) SBE_NOEXCEPT
{
std::int64_t val = SBE_LITTLE_ENDIAN_ENCODE_64(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::int64_t));
return *this;
}
SBE_NODISCARD static const char *
exponentMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "constant";
default:
return "";
}
}
SBE_NODISCARD static const char *exponentMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "constant";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
exponentSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t exponentId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool exponentInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t exponentSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool exponentInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= exponentSinceVersion();
return m_actingVersion >= exponentSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
exponentEncodingOffset() SBE_NOEXCEPT {
return 8;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t exponentEncodingOffset() SBE_NOEXCEPT
{
return 8;
}
static SBE_CONSTEXPR std::int8_t exponentNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_INT8;
}
static SBE_CONSTEXPR std::int8_t exponentNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_INT8;
}
static SBE_CONSTEXPR std::int8_t exponentMinValue() SBE_NOEXCEPT {
return (std::int8_t)-127;
}
static SBE_CONSTEXPR std::int8_t exponentMinValue() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(-127);
}
static SBE_CONSTEXPR std::int8_t exponentMaxValue() SBE_NOEXCEPT {
return (std::int8_t)127;
}
static SBE_CONSTEXPR std::int8_t exponentMaxValue() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(127);
}
static SBE_CONSTEXPR std::size_t exponentEncodingLength() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::size_t exponentEncodingLength() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::int8_t exponent() SBE_NOEXCEPT {
return (std::int8_t)-9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::int8_t exponent() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(-9);
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &
operator<<(std::basic_ostream<CharT, Traits> &builder, Decimal9NULL writer) {
builder << '{';
builder << R"("mantissa": )";
builder << +writer.mantissa();
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& builder, Decimal9NULL writer)
{
builder << '{';
builder << R"("mantissa": )";
builder << +writer.mantissa();
builder << '}';
builder << '}';
return builder;
}
return builder;
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,210 +86,263 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class DecimalQty {
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
class DecimalQty
{
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
public:
enum MetaAttribute { EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE };
public:
enum MetaAttribute
{
EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE
};
union sbe_float_as_uint_u {
float fp_value;
std::uint32_t uint_value;
};
union sbe_float_as_uint_u
{
float fp_value;
std::uint32_t uint_value;
};
union sbe_double_as_uint_u {
double fp_value;
std::uint64_t uint_value;
};
union sbe_double_as_uint_u
{
double fp_value;
std::uint64_t uint_value;
};
DecimalQty() = default;
DecimalQty() = default;
DecimalQty(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: m_buffer(buffer), m_bufferLength(bufferLength), m_offset(offset),
m_actingVersion(actingVersion) {
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 4) > m_bufferLength), false)) {
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
DecimalQty(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
m_buffer(buffer),
m_bufferLength(bufferLength),
m_offset(offset),
m_actingVersion(actingVersion)
{
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 4) > m_bufferLength), false))
{
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
DecimalQty(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: DecimalQty(buffer, 0, bufferLength, actingVersion) {}
DecimalQty(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
DecimalQty(buffer, 0, bufferLength, actingVersion)
{
}
DecimalQty(char *buffer, const std::uint64_t bufferLength)
: DecimalQty(buffer, 0, bufferLength, sbeSchemaVersion()) {}
DecimalQty(
char *buffer,
const std::uint64_t bufferLength) :
DecimalQty(buffer, 0, bufferLength, sbeSchemaVersion())
{
}
DecimalQty &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength) {
return *this = DecimalQty(buffer, offset, bufferLength, actingVersion);
}
DecimalQty &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength)
{
return *this = DecimalQty(buffer, offset, bufferLength, actingVersion);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
encodedLength() SBE_NOEXCEPT {
return 4;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t encodedLength() SBE_NOEXCEPT
{
return 4;
}
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT { return m_offset; }
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT
{
return m_offset;
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD char *buffer() SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD char *buffer() SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT {
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT
{
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT {
return m_actingVersion;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT
{
return m_actingVersion;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT {
return (std::uint16_t)1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(1);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeSchemaVersion() SBE_NOEXCEPT {
return (std::uint16_t)9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaVersion() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(9);
}
SBE_NODISCARD static const char *
mantissaMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "optional";
default:
return "";
}
}
SBE_NODISCARD static const char *mantissaMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "optional";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
mantissaSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t mantissaId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool mantissaInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t mantissaSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool mantissaInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= mantissaSinceVersion();
return m_actingVersion >= mantissaSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
mantissaEncodingOffset() SBE_NOEXCEPT {
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t mantissaEncodingOffset() SBE_NOEXCEPT
{
return 0;
}
static SBE_CONSTEXPR std::int32_t mantissaNullValue() SBE_NOEXCEPT {
return 2147483647;
}
static SBE_CONSTEXPR std::int32_t mantissaNullValue() SBE_NOEXCEPT
{
return INT32_C(2147483647);
}
static SBE_CONSTEXPR std::int32_t mantissaMinValue() SBE_NOEXCEPT {
return -2147483647;
}
static SBE_CONSTEXPR std::int32_t mantissaMinValue() SBE_NOEXCEPT
{
return INT32_C(-2147483647);
}
static SBE_CONSTEXPR std::int32_t mantissaMaxValue() SBE_NOEXCEPT {
return 2147483647;
}
static SBE_CONSTEXPR std::int32_t mantissaMaxValue() SBE_NOEXCEPT
{
return INT32_C(2147483647);
}
static SBE_CONSTEXPR std::size_t mantissaEncodingLength() SBE_NOEXCEPT {
return 4;
}
static SBE_CONSTEXPR std::size_t mantissaEncodingLength() SBE_NOEXCEPT
{
return 4;
}
SBE_NODISCARD std::int32_t mantissa() const SBE_NOEXCEPT {
std::int32_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::int32_t));
return SBE_LITTLE_ENDIAN_ENCODE_32(val);
}
SBE_NODISCARD std::int32_t mantissa() const SBE_NOEXCEPT
{
std::int32_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::int32_t));
return SBE_LITTLE_ENDIAN_ENCODE_32(val);
}
DecimalQty &mantissa(const std::int32_t value) SBE_NOEXCEPT {
std::int32_t val = SBE_LITTLE_ENDIAN_ENCODE_32(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::int32_t));
return *this;
}
DecimalQty &mantissa(const std::int32_t value) SBE_NOEXCEPT
{
std::int32_t val = SBE_LITTLE_ENDIAN_ENCODE_32(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::int32_t));
return *this;
}
SBE_NODISCARD static const char *
exponentMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "constant";
default:
return "";
}
}
SBE_NODISCARD static const char *exponentMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "constant";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
exponentSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t exponentId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool exponentInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t exponentSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool exponentInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= exponentSinceVersion();
return m_actingVersion >= exponentSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
exponentEncodingOffset() SBE_NOEXCEPT {
return 4;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t exponentEncodingOffset() SBE_NOEXCEPT
{
return 4;
}
static SBE_CONSTEXPR std::int8_t exponentNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_INT8;
}
static SBE_CONSTEXPR std::int8_t exponentNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_INT8;
}
static SBE_CONSTEXPR std::int8_t exponentMinValue() SBE_NOEXCEPT {
return (std::int8_t)-127;
}
static SBE_CONSTEXPR std::int8_t exponentMinValue() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(-127);
}
static SBE_CONSTEXPR std::int8_t exponentMaxValue() SBE_NOEXCEPT {
return (std::int8_t)127;
}
static SBE_CONSTEXPR std::int8_t exponentMaxValue() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(127);
}
static SBE_CONSTEXPR std::size_t exponentEncodingLength() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::size_t exponentEncodingLength() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::int8_t exponent() SBE_NOEXCEPT {
return (std::int8_t)-4;
}
SBE_NODISCARD static SBE_CONSTEXPR std::int8_t exponent() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(-4);
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &
operator<<(std::basic_ostream<CharT, Traits> &builder, DecimalQty writer) {
builder << '{';
builder << R"("mantissa": )";
builder << +writer.mantissa();
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& builder, DecimalQty writer)
{
builder << '{';
builder << R"("mantissa": )";
builder << +writer.mantissa();
builder << '}';
builder << '}';
return builder;
}
return builder;
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,49 +86,51 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class EventType {
public:
enum Value {
Activation = (std::uint8_t)5,
LastEligibleTradeDate = (std::uint8_t)7,
NULL_VALUE = (std::uint8_t)255
};
class EventType
{
public:
enum Value
{
Activation = static_cast<std::uint8_t>(5),
LastEligibleTradeDate = static_cast<std::uint8_t>(7),
NULL_VALUE = static_cast<std::uint8_t>(255)
};
static EventType::Value get(const std::uint8_t value) {
switch (value) {
case 5:
return Activation;
case 7:
return LastEligibleTradeDate;
case 255:
return NULL_VALUE;
}
static EventType::Value get(const std::uint8_t value)
{
switch (value)
{
case static_cast<std::uint8_t>(5): return Activation;
case static_cast<std::uint8_t>(7): return LastEligibleTradeDate;
case static_cast<std::uint8_t>(255): return NULL_VALUE;
}
throw std::runtime_error("unknown value for enum EventType [E103]");
}
throw std::runtime_error("unknown value for enum EventType [E103]");
}
static const char *c_str(const EventType::Value value) {
switch (value) {
case Activation:
return "Activation";
case LastEligibleTradeDate:
return "LastEligibleTradeDate";
case NULL_VALUE:
return "NULL_VALUE";
}
static const char *c_str(const EventType::Value value)
{
switch (value)
{
case Activation: return "Activation";
case LastEligibleTradeDate: return "LastEligibleTradeDate";
case NULL_VALUE: return "NULL_VALUE";
}
throw std::runtime_error("unknown value for enum EventType [E103]:");
}
throw std::runtime_error("unknown value for enum EventType [E103]:");
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &
operator<<(std::basic_ostream<CharT, Traits> &os, EventType::Value m) {
return os << EventType::c_str(m);
}
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& os, EventType::Value m)
{
return os << EventType::c_str(m);
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,210 +86,263 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class FLOAT {
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
class FLOAT
{
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
public:
enum MetaAttribute { EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE };
public:
enum MetaAttribute
{
EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE
};
union sbe_float_as_uint_u {
float fp_value;
std::uint32_t uint_value;
};
union sbe_float_as_uint_u
{
float fp_value;
std::uint32_t uint_value;
};
union sbe_double_as_uint_u {
double fp_value;
std::uint64_t uint_value;
};
union sbe_double_as_uint_u
{
double fp_value;
std::uint64_t uint_value;
};
FLOAT() = default;
FLOAT() = default;
FLOAT(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: m_buffer(buffer), m_bufferLength(bufferLength), m_offset(offset),
m_actingVersion(actingVersion) {
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 8) > m_bufferLength), false)) {
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
FLOAT(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
m_buffer(buffer),
m_bufferLength(bufferLength),
m_offset(offset),
m_actingVersion(actingVersion)
{
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 8) > m_bufferLength), false))
{
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
FLOAT(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: FLOAT(buffer, 0, bufferLength, actingVersion) {}
FLOAT(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
FLOAT(buffer, 0, bufferLength, actingVersion)
{
}
FLOAT(char *buffer, const std::uint64_t bufferLength)
: FLOAT(buffer, 0, bufferLength, sbeSchemaVersion()) {}
FLOAT(
char *buffer,
const std::uint64_t bufferLength) :
FLOAT(buffer, 0, bufferLength, sbeSchemaVersion())
{
}
FLOAT &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength) {
return *this = FLOAT(buffer, offset, bufferLength, actingVersion);
}
FLOAT &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength)
{
return *this = FLOAT(buffer, offset, bufferLength, actingVersion);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
encodedLength() SBE_NOEXCEPT {
return 8;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t encodedLength() SBE_NOEXCEPT
{
return 8;
}
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT { return m_offset; }
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT
{
return m_offset;
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD char *buffer() SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD char *buffer() SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT {
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT
{
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT {
return m_actingVersion;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT
{
return m_actingVersion;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT {
return (std::uint16_t)1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(1);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeSchemaVersion() SBE_NOEXCEPT {
return (std::uint16_t)9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaVersion() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(9);
}
SBE_NODISCARD static const char *
mantissaMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "required";
default:
return "";
}
}
SBE_NODISCARD static const char *mantissaMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "required";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
mantissaSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t mantissaId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool mantissaInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t mantissaSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool mantissaInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= mantissaSinceVersion();
return m_actingVersion >= mantissaSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
mantissaEncodingOffset() SBE_NOEXCEPT {
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t mantissaEncodingOffset() SBE_NOEXCEPT
{
return 0;
}
static SBE_CONSTEXPR std::int64_t mantissaNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_INT64;
}
static SBE_CONSTEXPR std::int64_t mantissaNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_INT64;
}
static SBE_CONSTEXPR std::int64_t mantissaMinValue() SBE_NOEXCEPT {
return -9223372036854775807L;
}
static SBE_CONSTEXPR std::int64_t mantissaMinValue() SBE_NOEXCEPT
{
return INT64_C(-9223372036854775807);
}
static SBE_CONSTEXPR std::int64_t mantissaMaxValue() SBE_NOEXCEPT {
return 9223372036854775807L;
}
static SBE_CONSTEXPR std::int64_t mantissaMaxValue() SBE_NOEXCEPT
{
return INT64_C(9223372036854775807);
}
static SBE_CONSTEXPR std::size_t mantissaEncodingLength() SBE_NOEXCEPT {
return 8;
}
static SBE_CONSTEXPR std::size_t mantissaEncodingLength() SBE_NOEXCEPT
{
return 8;
}
SBE_NODISCARD std::int64_t mantissa() const SBE_NOEXCEPT {
std::int64_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::int64_t));
return SBE_LITTLE_ENDIAN_ENCODE_64(val);
}
SBE_NODISCARD std::int64_t mantissa() const SBE_NOEXCEPT
{
std::int64_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::int64_t));
return SBE_LITTLE_ENDIAN_ENCODE_64(val);
}
FLOAT &mantissa(const std::int64_t value) SBE_NOEXCEPT {
std::int64_t val = SBE_LITTLE_ENDIAN_ENCODE_64(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::int64_t));
return *this;
}
FLOAT &mantissa(const std::int64_t value) SBE_NOEXCEPT
{
std::int64_t val = SBE_LITTLE_ENDIAN_ENCODE_64(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::int64_t));
return *this;
}
SBE_NODISCARD static const char *
exponentMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "constant";
default:
return "";
}
}
SBE_NODISCARD static const char *exponentMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "constant";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
exponentSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t exponentId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool exponentInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t exponentSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool exponentInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= exponentSinceVersion();
return m_actingVersion >= exponentSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
exponentEncodingOffset() SBE_NOEXCEPT {
return 8;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t exponentEncodingOffset() SBE_NOEXCEPT
{
return 8;
}
static SBE_CONSTEXPR std::int8_t exponentNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_INT8;
}
static SBE_CONSTEXPR std::int8_t exponentNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_INT8;
}
static SBE_CONSTEXPR std::int8_t exponentMinValue() SBE_NOEXCEPT {
return (std::int8_t)-127;
}
static SBE_CONSTEXPR std::int8_t exponentMinValue() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(-127);
}
static SBE_CONSTEXPR std::int8_t exponentMaxValue() SBE_NOEXCEPT {
return (std::int8_t)127;
}
static SBE_CONSTEXPR std::int8_t exponentMaxValue() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(127);
}
static SBE_CONSTEXPR std::size_t exponentEncodingLength() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::size_t exponentEncodingLength() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::int8_t exponent() SBE_NOEXCEPT {
return (std::int8_t)-7;
}
SBE_NODISCARD static SBE_CONSTEXPR std::int8_t exponent() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(-7);
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &
operator<<(std::basic_ostream<CharT, Traits> &builder, FLOAT writer) {
builder << '{';
builder << R"("mantissa": )";
builder << +writer.mantissa();
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& builder, FLOAT writer)
{
builder << '{';
builder << R"("mantissa": )";
builder << +writer.mantissa();
builder << '}';
builder << '}';
return builder;
}
return builder;
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,222 +86,276 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class GroupSize {
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
class GroupSize
{
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
public:
enum MetaAttribute { EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE };
public:
enum MetaAttribute
{
EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE
};
union sbe_float_as_uint_u {
float fp_value;
std::uint32_t uint_value;
};
union sbe_float_as_uint_u
{
float fp_value;
std::uint32_t uint_value;
};
union sbe_double_as_uint_u {
double fp_value;
std::uint64_t uint_value;
};
union sbe_double_as_uint_u
{
double fp_value;
std::uint64_t uint_value;
};
GroupSize() = default;
GroupSize() = default;
GroupSize(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: m_buffer(buffer), m_bufferLength(bufferLength), m_offset(offset),
m_actingVersion(actingVersion) {
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 3) > m_bufferLength), false)) {
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
GroupSize(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
m_buffer(buffer),
m_bufferLength(bufferLength),
m_offset(offset),
m_actingVersion(actingVersion)
{
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 3) > m_bufferLength), false))
{
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
GroupSize(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: GroupSize(buffer, 0, bufferLength, actingVersion) {}
GroupSize(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
GroupSize(buffer, 0, bufferLength, actingVersion)
{
}
GroupSize(char *buffer, const std::uint64_t bufferLength)
: GroupSize(buffer, 0, bufferLength, sbeSchemaVersion()) {}
GroupSize(
char *buffer,
const std::uint64_t bufferLength) :
GroupSize(buffer, 0, bufferLength, sbeSchemaVersion())
{
}
GroupSize &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength) {
return *this = GroupSize(buffer, offset, bufferLength, actingVersion);
}
GroupSize &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength)
{
return *this = GroupSize(buffer, offset, bufferLength, actingVersion);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
encodedLength() SBE_NOEXCEPT {
return 3;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t encodedLength() SBE_NOEXCEPT
{
return 3;
}
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT { return m_offset; }
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT
{
return m_offset;
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD char *buffer() SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD char *buffer() SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT {
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT
{
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT {
return m_actingVersion;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT
{
return m_actingVersion;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT {
return (std::uint16_t)1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(1);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeSchemaVersion() SBE_NOEXCEPT {
return (std::uint16_t)9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaVersion() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(9);
}
SBE_NODISCARD static const char *
blockLengthMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "required";
default:
return "";
}
}
SBE_NODISCARD static const char *blockLengthMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "required";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
blockLengthSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t blockLengthId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool blockLengthInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t blockLengthSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool blockLengthInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= blockLengthSinceVersion();
return m_actingVersion >= blockLengthSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
blockLengthEncodingOffset() SBE_NOEXCEPT {
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t blockLengthEncodingOffset() SBE_NOEXCEPT
{
return 0;
}
static SBE_CONSTEXPR std::uint16_t blockLengthNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_UINT16;
}
static SBE_CONSTEXPR std::uint16_t blockLengthNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_UINT16;
}
static SBE_CONSTEXPR std::uint16_t blockLengthMinValue() SBE_NOEXCEPT {
return (std::uint16_t)0;
}
static SBE_CONSTEXPR std::uint16_t blockLengthMinValue() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(0);
}
static SBE_CONSTEXPR std::uint16_t blockLengthMaxValue() SBE_NOEXCEPT {
return (std::uint16_t)65534;
}
static SBE_CONSTEXPR std::uint16_t blockLengthMaxValue() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(65534);
}
static SBE_CONSTEXPR std::size_t blockLengthEncodingLength() SBE_NOEXCEPT {
return 2;
}
static SBE_CONSTEXPR std::size_t blockLengthEncodingLength() SBE_NOEXCEPT
{
return 2;
}
SBE_NODISCARD std::uint16_t blockLength() const SBE_NOEXCEPT {
std::uint16_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::uint16_t));
return SBE_LITTLE_ENDIAN_ENCODE_16(val);
}
SBE_NODISCARD std::uint16_t blockLength() const SBE_NOEXCEPT
{
std::uint16_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::uint16_t));
return SBE_LITTLE_ENDIAN_ENCODE_16(val);
}
GroupSize &blockLength(const std::uint16_t value) SBE_NOEXCEPT {
std::uint16_t val = SBE_LITTLE_ENDIAN_ENCODE_16(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::uint16_t));
return *this;
}
GroupSize &blockLength(const std::uint16_t value) SBE_NOEXCEPT
{
std::uint16_t val = SBE_LITTLE_ENDIAN_ENCODE_16(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::uint16_t));
return *this;
}
SBE_NODISCARD static const char *
numInGroupMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "required";
default:
return "";
}
}
SBE_NODISCARD static const char *numInGroupMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "required";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
numInGroupSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t numInGroupId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool numInGroupInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t numInGroupSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool numInGroupInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= numInGroupSinceVersion();
return m_actingVersion >= numInGroupSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
numInGroupEncodingOffset() SBE_NOEXCEPT {
return 2;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t numInGroupEncodingOffset() SBE_NOEXCEPT
{
return 2;
}
static SBE_CONSTEXPR std::uint8_t numInGroupNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_UINT8;
}
static SBE_CONSTEXPR std::uint8_t numInGroupNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_UINT8;
}
static SBE_CONSTEXPR std::uint8_t numInGroupMinValue() SBE_NOEXCEPT {
return (std::uint8_t)0;
}
static SBE_CONSTEXPR std::uint8_t numInGroupMinValue() SBE_NOEXCEPT
{
return static_cast<std::uint8_t>(0);
}
static SBE_CONSTEXPR std::uint8_t numInGroupMaxValue() SBE_NOEXCEPT {
return (std::uint8_t)254;
}
static SBE_CONSTEXPR std::uint8_t numInGroupMaxValue() SBE_NOEXCEPT
{
return static_cast<std::uint8_t>(254);
}
static SBE_CONSTEXPR std::size_t numInGroupEncodingLength() SBE_NOEXCEPT {
return 1;
}
static SBE_CONSTEXPR std::size_t numInGroupEncodingLength() SBE_NOEXCEPT
{
return 1;
}
SBE_NODISCARD std::uint8_t numInGroup() const SBE_NOEXCEPT {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset + 2, sizeof(std::uint8_t));
return (val);
}
SBE_NODISCARD std::uint8_t numInGroup() const SBE_NOEXCEPT
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset + 2, sizeof(std::uint8_t));
return (val);
}
GroupSize &numInGroup(const std::uint8_t value) SBE_NOEXCEPT {
std::uint8_t val = (value);
std::memcpy(m_buffer + m_offset + 2, &val, sizeof(std::uint8_t));
return *this;
}
GroupSize &numInGroup(const std::uint8_t value) SBE_NOEXCEPT
{
std::uint8_t val = (value);
std::memcpy(m_buffer + m_offset + 2, &val, sizeof(std::uint8_t));
return *this;
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &
operator<<(std::basic_ostream<CharT, Traits> &builder, GroupSize writer) {
builder << '{';
builder << R"("blockLength": )";
builder << +writer.blockLength();
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& builder, GroupSize writer)
{
builder << '{';
builder << R"("blockLength": )";
builder << +writer.blockLength();
builder << ", ";
builder << R"("numInGroup": )";
builder << +writer.numInGroup();
builder << ", ";
builder << R"("numInGroup": )";
builder << +writer.numInGroup();
builder << '}';
builder << '}';
return builder;
}
return builder;
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,223 +86,276 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class GroupSize8Byte {
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
class GroupSize8Byte
{
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
public:
enum MetaAttribute { EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE };
public:
enum MetaAttribute
{
EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE
};
union sbe_float_as_uint_u {
float fp_value;
std::uint32_t uint_value;
};
union sbe_float_as_uint_u
{
float fp_value;
std::uint32_t uint_value;
};
union sbe_double_as_uint_u {
double fp_value;
std::uint64_t uint_value;
};
union sbe_double_as_uint_u
{
double fp_value;
std::uint64_t uint_value;
};
GroupSize8Byte() = default;
GroupSize8Byte() = default;
GroupSize8Byte(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: m_buffer(buffer), m_bufferLength(bufferLength), m_offset(offset),
m_actingVersion(actingVersion) {
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 8) > m_bufferLength), false)) {
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
GroupSize8Byte(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
m_buffer(buffer),
m_bufferLength(bufferLength),
m_offset(offset),
m_actingVersion(actingVersion)
{
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 8) > m_bufferLength), false))
{
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
GroupSize8Byte(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: GroupSize8Byte(buffer, 0, bufferLength, actingVersion) {}
GroupSize8Byte(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
GroupSize8Byte(buffer, 0, bufferLength, actingVersion)
{
}
GroupSize8Byte(char *buffer, const std::uint64_t bufferLength)
: GroupSize8Byte(buffer, 0, bufferLength, sbeSchemaVersion()) {}
GroupSize8Byte(
char *buffer,
const std::uint64_t bufferLength) :
GroupSize8Byte(buffer, 0, bufferLength, sbeSchemaVersion())
{
}
GroupSize8Byte &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength) {
return *this =
GroupSize8Byte(buffer, offset, bufferLength, actingVersion);
}
GroupSize8Byte &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength)
{
return *this = GroupSize8Byte(buffer, offset, bufferLength, actingVersion);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
encodedLength() SBE_NOEXCEPT {
return 8;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t encodedLength() SBE_NOEXCEPT
{
return 8;
}
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT { return m_offset; }
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT
{
return m_offset;
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD char *buffer() SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD char *buffer() SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT {
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT
{
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT {
return m_actingVersion;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT
{
return m_actingVersion;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT {
return (std::uint16_t)1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(1);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeSchemaVersion() SBE_NOEXCEPT {
return (std::uint16_t)9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaVersion() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(9);
}
SBE_NODISCARD static const char *
blockLengthMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "required";
default:
return "";
}
}
SBE_NODISCARD static const char *blockLengthMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "required";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
blockLengthSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t blockLengthId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool blockLengthInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t blockLengthSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool blockLengthInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= blockLengthSinceVersion();
return m_actingVersion >= blockLengthSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
blockLengthEncodingOffset() SBE_NOEXCEPT {
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t blockLengthEncodingOffset() SBE_NOEXCEPT
{
return 0;
}
static SBE_CONSTEXPR std::uint16_t blockLengthNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_UINT16;
}
static SBE_CONSTEXPR std::uint16_t blockLengthNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_UINT16;
}
static SBE_CONSTEXPR std::uint16_t blockLengthMinValue() SBE_NOEXCEPT {
return (std::uint16_t)0;
}
static SBE_CONSTEXPR std::uint16_t blockLengthMinValue() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(0);
}
static SBE_CONSTEXPR std::uint16_t blockLengthMaxValue() SBE_NOEXCEPT {
return (std::uint16_t)65534;
}
static SBE_CONSTEXPR std::uint16_t blockLengthMaxValue() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(65534);
}
static SBE_CONSTEXPR std::size_t blockLengthEncodingLength() SBE_NOEXCEPT {
return 2;
}
static SBE_CONSTEXPR std::size_t blockLengthEncodingLength() SBE_NOEXCEPT
{
return 2;
}
SBE_NODISCARD std::uint16_t blockLength() const SBE_NOEXCEPT {
std::uint16_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::uint16_t));
return SBE_LITTLE_ENDIAN_ENCODE_16(val);
}
SBE_NODISCARD std::uint16_t blockLength() const SBE_NOEXCEPT
{
std::uint16_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::uint16_t));
return SBE_LITTLE_ENDIAN_ENCODE_16(val);
}
GroupSize8Byte &blockLength(const std::uint16_t value) SBE_NOEXCEPT {
std::uint16_t val = SBE_LITTLE_ENDIAN_ENCODE_16(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::uint16_t));
return *this;
}
GroupSize8Byte &blockLength(const std::uint16_t value) SBE_NOEXCEPT
{
std::uint16_t val = SBE_LITTLE_ENDIAN_ENCODE_16(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::uint16_t));
return *this;
}
SBE_NODISCARD static const char *
numInGroupMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "required";
default:
return "";
}
}
SBE_NODISCARD static const char *numInGroupMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "required";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
numInGroupSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t numInGroupId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool numInGroupInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t numInGroupSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool numInGroupInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= numInGroupSinceVersion();
return m_actingVersion >= numInGroupSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
numInGroupEncodingOffset() SBE_NOEXCEPT {
return 7;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t numInGroupEncodingOffset() SBE_NOEXCEPT
{
return 7;
}
static SBE_CONSTEXPR std::uint8_t numInGroupNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_UINT8;
}
static SBE_CONSTEXPR std::uint8_t numInGroupNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_UINT8;
}
static SBE_CONSTEXPR std::uint8_t numInGroupMinValue() SBE_NOEXCEPT {
return (std::uint8_t)0;
}
static SBE_CONSTEXPR std::uint8_t numInGroupMinValue() SBE_NOEXCEPT
{
return static_cast<std::uint8_t>(0);
}
static SBE_CONSTEXPR std::uint8_t numInGroupMaxValue() SBE_NOEXCEPT {
return (std::uint8_t)254;
}
static SBE_CONSTEXPR std::uint8_t numInGroupMaxValue() SBE_NOEXCEPT
{
return static_cast<std::uint8_t>(254);
}
static SBE_CONSTEXPR std::size_t numInGroupEncodingLength() SBE_NOEXCEPT {
return 1;
}
static SBE_CONSTEXPR std::size_t numInGroupEncodingLength() SBE_NOEXCEPT
{
return 1;
}
SBE_NODISCARD std::uint8_t numInGroup() const SBE_NOEXCEPT {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset + 7, sizeof(std::uint8_t));
return (val);
}
SBE_NODISCARD std::uint8_t numInGroup() const SBE_NOEXCEPT
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset + 7, sizeof(std::uint8_t));
return (val);
}
GroupSize8Byte &numInGroup(const std::uint8_t value) SBE_NOEXCEPT {
std::uint8_t val = (value);
std::memcpy(m_buffer + m_offset + 7, &val, sizeof(std::uint8_t));
return *this;
}
GroupSize8Byte &numInGroup(const std::uint8_t value) SBE_NOEXCEPT
{
std::uint8_t val = (value);
std::memcpy(m_buffer + m_offset + 7, &val, sizeof(std::uint8_t));
return *this;
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &operator<<(
std::basic_ostream<CharT, Traits> &builder, GroupSize8Byte writer) {
builder << '{';
builder << R"("blockLength": )";
builder << +writer.blockLength();
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& builder, GroupSize8Byte writer)
{
builder << '{';
builder << R"("blockLength": )";
builder << +writer.blockLength();
builder << ", ";
builder << R"("numInGroup": )";
builder << +writer.numInGroup();
builder << ", ";
builder << R"("numInGroup": )";
builder << +writer.numInGroup();
builder << '}';
builder << '}';
return builder;
}
return builder;
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,74 +86,66 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class HaltReason {
public:
enum Value {
GroupSchedule = (std::uint8_t)0,
SurveillanceIntervention = (std::uint8_t)1,
MarketEvent = (std::uint8_t)2,
InstrumentActivation = (std::uint8_t)3,
InstrumentExpiration = (std::uint8_t)4,
Unknown = (std::uint8_t)5,
RecoveryInProcess = (std::uint8_t)6,
NULL_VALUE = (std::uint8_t)255
};
class HaltReason
{
public:
enum Value
{
GroupSchedule = static_cast<std::uint8_t>(0),
SurveillanceIntervention = static_cast<std::uint8_t>(1),
MarketEvent = static_cast<std::uint8_t>(2),
InstrumentActivation = static_cast<std::uint8_t>(3),
InstrumentExpiration = static_cast<std::uint8_t>(4),
Unknown = static_cast<std::uint8_t>(5),
RecoveryInProcess = static_cast<std::uint8_t>(6),
NULL_VALUE = static_cast<std::uint8_t>(255)
};
static HaltReason::Value get(const std::uint8_t value) {
switch (value) {
case 0:
return GroupSchedule;
case 1:
return SurveillanceIntervention;
case 2:
return MarketEvent;
case 3:
return InstrumentActivation;
case 4:
return InstrumentExpiration;
case 5:
return Unknown;
case 6:
return RecoveryInProcess;
case 255:
return NULL_VALUE;
}
static HaltReason::Value get(const std::uint8_t value)
{
switch (value)
{
case static_cast<std::uint8_t>(0): return GroupSchedule;
case static_cast<std::uint8_t>(1): return SurveillanceIntervention;
case static_cast<std::uint8_t>(2): return MarketEvent;
case static_cast<std::uint8_t>(3): return InstrumentActivation;
case static_cast<std::uint8_t>(4): return InstrumentExpiration;
case static_cast<std::uint8_t>(5): return Unknown;
case static_cast<std::uint8_t>(6): return RecoveryInProcess;
case static_cast<std::uint8_t>(255): return NULL_VALUE;
}
throw std::runtime_error("unknown value for enum HaltReason [E103]");
}
throw std::runtime_error("unknown value for enum HaltReason [E103]");
}
static const char *c_str(const HaltReason::Value value) {
switch (value) {
case GroupSchedule:
return "GroupSchedule";
case SurveillanceIntervention:
return "SurveillanceIntervention";
case MarketEvent:
return "MarketEvent";
case InstrumentActivation:
return "InstrumentActivation";
case InstrumentExpiration:
return "InstrumentExpiration";
case Unknown:
return "Unknown";
case RecoveryInProcess:
return "RecoveryInProcess";
case NULL_VALUE:
return "NULL_VALUE";
}
static const char *c_str(const HaltReason::Value value)
{
switch (value)
{
case GroupSchedule: return "GroupSchedule";
case SurveillanceIntervention: return "SurveillanceIntervention";
case MarketEvent: return "MarketEvent";
case InstrumentActivation: return "InstrumentActivation";
case InstrumentExpiration: return "InstrumentExpiration";
case Unknown: return "Unknown";
case RecoveryInProcess: return "RecoveryInProcess";
case NULL_VALUE: return "NULL_VALUE";
}
throw std::runtime_error("unknown value for enum HaltReason [E103]:");
}
throw std::runtime_error("unknown value for enum HaltReason [E103]:");
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &
operator<<(std::basic_ostream<CharT, Traits> &os, HaltReason::Value m) {
return os << HaltReason::c_str(m);
}
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& os, HaltReason::Value m)
{
return os << HaltReason::c_str(m);
}
};
} // namespace mdp3
}
#endif
File diff suppressed because it is too large. Load diff
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,49 +86,51 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class LegSide {
public:
enum Value {
BuySide = (std::uint8_t)1,
SellSide = (std::uint8_t)2,
NULL_VALUE = (std::uint8_t)255
};
class LegSide
{
public:
enum Value
{
BuySide = static_cast<std::uint8_t>(1),
SellSide = static_cast<std::uint8_t>(2),
NULL_VALUE = static_cast<std::uint8_t>(255)
};
static LegSide::Value get(const std::uint8_t value) {
switch (value) {
case 1:
return BuySide;
case 2:
return SellSide;
case 255:
return NULL_VALUE;
}
static LegSide::Value get(const std::uint8_t value)
{
switch (value)
{
case static_cast<std::uint8_t>(1): return BuySide;
case static_cast<std::uint8_t>(2): return SellSide;
case static_cast<std::uint8_t>(255): return NULL_VALUE;
}
throw std::runtime_error("unknown value for enum LegSide [E103]");
}
throw std::runtime_error("unknown value for enum LegSide [E103]");
}
static const char *c_str(const LegSide::Value value) {
switch (value) {
case BuySide:
return "BuySide";
case SellSide:
return "SellSide";
case NULL_VALUE:
return "NULL_VALUE";
}
static const char *c_str(const LegSide::Value value)
{
switch (value)
{
case BuySide: return "BuySide";
case SellSide: return "SellSide";
case NULL_VALUE: return "NULL_VALUE";
}
throw std::runtime_error("unknown value for enum LegSide [E103]:");
}
throw std::runtime_error("unknown value for enum LegSide [E103]:");
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &
operator<<(std::basic_ostream<CharT, Traits> &os, LegSide::Value m) {
return os << LegSide::c_str(m);
}
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& os, LegSide::Value m)
{
return os << LegSide::c_str(m);
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,124 +86,96 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class MDEntryType {
public:
enum Value {
Bid = (char)48,
Offer = (char)49,
Trade = (char)50,
OpenPrice = (char)52,
SettlementPrice = (char)54,
TradingSessionHighPrice = (char)55,
TradingSessionLowPrice = (char)56,
ClearedVolume = (char)66,
OpenInterest = (char)67,
ImpliedBid = (char)69,
ImpliedOffer = (char)70,
BookReset = (char)74,
SessionHighBid = (char)78,
SessionLowOffer = (char)79,
FixingPrice = (char)87,
ElectronicVolume = (char)101,
ThresholdLimitsandPriceBandVariation = (char)103,
NULL_VALUE = (char)0
};
class MDEntryType
{
public:
enum Value
{
Bid = static_cast<char>(48),
Offer = static_cast<char>(49),
Trade = static_cast<char>(50),
OpenPrice = static_cast<char>(52),
SettlementPrice = static_cast<char>(54),
TradingSessionHighPrice = static_cast<char>(55),
TradingSessionLowPrice = static_cast<char>(56),
ClearedVolume = static_cast<char>(66),
OpenInterest = static_cast<char>(67),
ImpliedBid = static_cast<char>(69),
ImpliedOffer = static_cast<char>(70),
BookReset = static_cast<char>(74),
SessionHighBid = static_cast<char>(78),
SessionLowOffer = static_cast<char>(79),
FixingPrice = static_cast<char>(87),
ElectronicVolume = static_cast<char>(101),
ThresholdLimitsandPriceBandVariation = static_cast<char>(103),
NULL_VALUE = static_cast<char>(0)
};
static MDEntryType::Value get(const char value) {
switch (value) {
case 48:
return Bid;
case 49:
return Offer;
case 50:
return Trade;
case 52:
return OpenPrice;
case 54:
return SettlementPrice;
case 55:
return TradingSessionHighPrice;
case 56:
return TradingSessionLowPrice;
case 66:
return ClearedVolume;
case 67:
return OpenInterest;
case 69:
return ImpliedBid;
case 70:
return ImpliedOffer;
case 74:
return BookReset;
case 78:
return SessionHighBid;
case 79:
return SessionLowOffer;
case 87:
return FixingPrice;
case 101:
return ElectronicVolume;
case 103:
return ThresholdLimitsandPriceBandVariation;
case 0:
return NULL_VALUE;
}
static MDEntryType::Value get(const char value)
{
switch (value)
{
case static_cast<char>(48): return Bid;
case static_cast<char>(49): return Offer;
case static_cast<char>(50): return Trade;
case static_cast<char>(52): return OpenPrice;
case static_cast<char>(54): return SettlementPrice;
case static_cast<char>(55): return TradingSessionHighPrice;
case static_cast<char>(56): return TradingSessionLowPrice;
case static_cast<char>(66): return ClearedVolume;
case static_cast<char>(67): return OpenInterest;
case static_cast<char>(69): return ImpliedBid;
case static_cast<char>(70): return ImpliedOffer;
case static_cast<char>(74): return BookReset;
case static_cast<char>(78): return SessionHighBid;
case static_cast<char>(79): return SessionLowOffer;
case static_cast<char>(87): return FixingPrice;
case static_cast<char>(101): return ElectronicVolume;
case static_cast<char>(103): return ThresholdLimitsandPriceBandVariation;
case static_cast<char>(0): return NULL_VALUE;
}
throw std::runtime_error("unknown value for enum MDEntryType [E103]");
}
throw std::runtime_error("unknown value for enum MDEntryType [E103]");
}
static const char *c_str(const MDEntryType::Value value) {
switch (value) {
case Bid:
return "Bid";
case Offer:
return "Offer";
case Trade:
return "Trade";
case OpenPrice:
return "OpenPrice";
case SettlementPrice:
return "SettlementPrice";
case TradingSessionHighPrice:
return "TradingSessionHighPrice";
case TradingSessionLowPrice:
return "TradingSessionLowPrice";
case ClearedVolume:
return "ClearedVolume";
case OpenInterest:
return "OpenInterest";
case ImpliedBid:
return "ImpliedBid";
case ImpliedOffer:
return "ImpliedOffer";
case BookReset:
return "BookReset";
case SessionHighBid:
return "SessionHighBid";
case SessionLowOffer:
return "SessionLowOffer";
case FixingPrice:
return "FixingPrice";
case ElectronicVolume:
return "ElectronicVolume";
case ThresholdLimitsandPriceBandVariation:
return "ThresholdLimitsandPriceBandVariation";
case NULL_VALUE:
return "NULL_VALUE";
}
static const char *c_str(const MDEntryType::Value value)
{
switch (value)
{
case Bid: return "Bid";
case Offer: return "Offer";
case Trade: return "Trade";
case OpenPrice: return "OpenPrice";
case SettlementPrice: return "SettlementPrice";
case TradingSessionHighPrice: return "TradingSessionHighPrice";
case TradingSessionLowPrice: return "TradingSessionLowPrice";
case ClearedVolume: return "ClearedVolume";
case OpenInterest: return "OpenInterest";
case ImpliedBid: return "ImpliedBid";
case ImpliedOffer: return "ImpliedOffer";
case BookReset: return "BookReset";
case SessionHighBid: return "SessionHighBid";
case SessionLowOffer: return "SessionLowOffer";
case FixingPrice: return "FixingPrice";
case ElectronicVolume: return "ElectronicVolume";
case ThresholdLimitsandPriceBandVariation: return "ThresholdLimitsandPriceBandVariation";
case NULL_VALUE: return "NULL_VALUE";
}
throw std::runtime_error("unknown value for enum MDEntryType [E103]:");
}
throw std::runtime_error("unknown value for enum MDEntryType [E103]:");
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &
operator<<(std::basic_ostream<CharT, Traits> &os, MDEntryType::Value m) {
return os << MDEntryType::c_str(m);
}
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& os, MDEntryType::Value m)
{
return os << MDEntryType::c_str(m);
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,65 +86,60 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class MDEntryTypeBook {
public:
enum Value {
Bid = (char)48,
Offer = (char)49,
ImpliedBid = (char)69,
ImpliedOffer = (char)70,
BookReset = (char)74,
NULL_VALUE = (char)0
};
class MDEntryTypeBook
{
public:
enum Value
{
Bid = static_cast<char>(48),
Offer = static_cast<char>(49),
ImpliedBid = static_cast<char>(69),
ImpliedOffer = static_cast<char>(70),
BookReset = static_cast<char>(74),
NULL_VALUE = static_cast<char>(0)
};
static MDEntryTypeBook::Value get(const char value) {
switch (value) {
case 48:
return Bid;
case 49:
return Offer;
case 69:
return ImpliedBid;
case 70:
return ImpliedOffer;
case 74:
return BookReset;
case 0:
return NULL_VALUE;
}
static MDEntryTypeBook::Value get(const char value)
{
switch (value)
{
case static_cast<char>(48): return Bid;
case static_cast<char>(49): return Offer;
case static_cast<char>(69): return ImpliedBid;
case static_cast<char>(70): return ImpliedOffer;
case static_cast<char>(74): return BookReset;
case static_cast<char>(0): return NULL_VALUE;
}
throw std::runtime_error("unknown value for enum MDEntryTypeBook [E103]");
}
throw std::runtime_error("unknown value for enum MDEntryTypeBook [E103]");
}
static const char *c_str(const MDEntryTypeBook::Value value) {
switch (value) {
case Bid:
return "Bid";
case Offer:
return "Offer";
case ImpliedBid:
return "ImpliedBid";
case ImpliedOffer:
return "ImpliedOffer";
case BookReset:
return "BookReset";
case NULL_VALUE:
return "NULL_VALUE";
}
static const char *c_str(const MDEntryTypeBook::Value value)
{
switch (value)
{
case Bid: return "Bid";
case Offer: return "Offer";
case ImpliedBid: return "ImpliedBid";
case ImpliedOffer: return "ImpliedOffer";
case BookReset: return "BookReset";
case NULL_VALUE: return "NULL_VALUE";
}
throw std::runtime_error(
"unknown value for enum MDEntryTypeBook [E103]:");
}
throw std::runtime_error("unknown value for enum MDEntryTypeBook [E103]:");
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &
operator<<(std::basic_ostream<CharT, Traits> &os, MDEntryTypeBook::Value m) {
return os << MDEntryTypeBook::c_str(m);
}
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& os, MDEntryTypeBook::Value m)
{
return os << MDEntryTypeBook::c_str(m);
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,62 +86,57 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class MDEntryTypeDailyStatistics {
public:
enum Value {
SettlementPrice = (char)54,
ClearedVolume = (char)66,
OpenInterest = (char)67,
FixingPrice = (char)87,
NULL_VALUE = (char)0
};
class MDEntryTypeDailyStatistics
{
public:
enum Value
{
SettlementPrice = static_cast<char>(54),
ClearedVolume = static_cast<char>(66),
OpenInterest = static_cast<char>(67),
FixingPrice = static_cast<char>(87),
NULL_VALUE = static_cast<char>(0)
};
static MDEntryTypeDailyStatistics::Value get(const char value) {
switch (value) {
case 54:
return SettlementPrice;
case 66:
return ClearedVolume;
case 67:
return OpenInterest;
case 87:
return FixingPrice;
case 0:
return NULL_VALUE;
}
static MDEntryTypeDailyStatistics::Value get(const char value)
{
switch (value)
{
case static_cast<char>(54): return SettlementPrice;
case static_cast<char>(66): return ClearedVolume;
case static_cast<char>(67): return OpenInterest;
case static_cast<char>(87): return FixingPrice;
case static_cast<char>(0): return NULL_VALUE;
}
throw std::runtime_error(
"unknown value for enum MDEntryTypeDailyStatistics [E103]");
}
throw std::runtime_error("unknown value for enum MDEntryTypeDailyStatistics [E103]");
}
static const char *c_str(const MDEntryTypeDailyStatistics::Value value) {
switch (value) {
case SettlementPrice:
return "SettlementPrice";
case ClearedVolume:
return "ClearedVolume";
case OpenInterest:
return "OpenInterest";
case FixingPrice:
return "FixingPrice";
case NULL_VALUE:
return "NULL_VALUE";
}
static const char *c_str(const MDEntryTypeDailyStatistics::Value value)
{
switch (value)
{
case SettlementPrice: return "SettlementPrice";
case ClearedVolume: return "ClearedVolume";
case OpenInterest: return "OpenInterest";
case FixingPrice: return "FixingPrice";
case NULL_VALUE: return "NULL_VALUE";
}
throw std::runtime_error(
"unknown value for enum MDEntryTypeDailyStatistics [E103]:");
}
throw std::runtime_error("unknown value for enum MDEntryTypeDailyStatistics [E103]:");
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &operator<<(
std::basic_ostream<CharT, Traits> &os,
MDEntryTypeDailyStatistics::Value m) {
return os << MDEntryTypeDailyStatistics::c_str(m);
}
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& os, MDEntryTypeDailyStatistics::Value m)
{
return os << MDEntryTypeDailyStatistics::c_str(m);
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,66 +86,60 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class MDEntryTypeStatistics {
public:
enum Value {
OpenPrice = (char)52,
HighTrade = (char)55,
LowTrade = (char)56,
HighestBid = (char)78,
LowestOffer = (char)79,
NULL_VALUE = (char)0
};
class MDEntryTypeStatistics
{
public:
enum Value
{
OpenPrice = static_cast<char>(52),
HighTrade = static_cast<char>(55),
LowTrade = static_cast<char>(56),
HighestBid = static_cast<char>(78),
LowestOffer = static_cast<char>(79),
NULL_VALUE = static_cast<char>(0)
};
static MDEntryTypeStatistics::Value get(const char value) {
switch (value) {
case 52:
return OpenPrice;
case 55:
return HighTrade;
case 56:
return LowTrade;
case 78:
return HighestBid;
case 79:
return LowestOffer;
case 0:
return NULL_VALUE;
}
static MDEntryTypeStatistics::Value get(const char value)
{
switch (value)
{
case static_cast<char>(52): return OpenPrice;
case static_cast<char>(55): return HighTrade;
case static_cast<char>(56): return LowTrade;
case static_cast<char>(78): return HighestBid;
case static_cast<char>(79): return LowestOffer;
case static_cast<char>(0): return NULL_VALUE;
}
throw std::runtime_error(
"unknown value for enum MDEntryTypeStatistics [E103]");
}
throw std::runtime_error("unknown value for enum MDEntryTypeStatistics [E103]");
}
static const char *c_str(const MDEntryTypeStatistics::Value value) {
switch (value) {
case OpenPrice:
return "OpenPrice";
case HighTrade:
return "HighTrade";
case LowTrade:
return "LowTrade";
case HighestBid:
return "HighestBid";
case LowestOffer:
return "LowestOffer";
case NULL_VALUE:
return "NULL_VALUE";
}
static const char *c_str(const MDEntryTypeStatistics::Value value)
{
switch (value)
{
case OpenPrice: return "OpenPrice";
case HighTrade: return "HighTrade";
case LowTrade: return "LowTrade";
case HighestBid: return "HighestBid";
case LowestOffer: return "LowestOffer";
case NULL_VALUE: return "NULL_VALUE";
}
throw std::runtime_error(
"unknown value for enum MDEntryTypeStatistics [E103]:");
}
throw std::runtime_error("unknown value for enum MDEntryTypeStatistics [E103]:");
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &operator<<(
std::basic_ostream<CharT, Traits> &os, MDEntryTypeStatistics::Value m) {
return os << MDEntryTypeStatistics::c_str(m);
}
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& os, MDEntryTypeStatistics::Value m)
{
return os << MDEntryTypeStatistics::c_str(m);
}
};
} // namespace mdp3
}
#endif
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,69 +86,63 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class MDUpdateAction {
public:
enum Value {
New = (std::uint8_t)0,
Change = (std::uint8_t)1,
Delete = (std::uint8_t)2,
DeleteThru = (std::uint8_t)3,
DeleteFrom = (std::uint8_t)4,
Overlay = (std::uint8_t)5,
NULL_VALUE = (std::uint8_t)255
};
class MDUpdateAction
{
public:
enum Value
{
New = static_cast<std::uint8_t>(0),
Change = static_cast<std::uint8_t>(1),
Delete = static_cast<std::uint8_t>(2),
DeleteThru = static_cast<std::uint8_t>(3),
DeleteFrom = static_cast<std::uint8_t>(4),
Overlay = static_cast<std::uint8_t>(5),
NULL_VALUE = static_cast<std::uint8_t>(255)
};
static MDUpdateAction::Value get(const std::uint8_t value) {
switch (value) {
case 0:
return New;
case 1:
return Change;
case 2:
return Delete;
case 3:
return DeleteThru;
case 4:
return DeleteFrom;
case 5:
return Overlay;
case 255:
return NULL_VALUE;
}
static MDUpdateAction::Value get(const std::uint8_t value)
{
switch (value)
{
case static_cast<std::uint8_t>(0): return New;
case static_cast<std::uint8_t>(1): return Change;
case static_cast<std::uint8_t>(2): return Delete;
case static_cast<std::uint8_t>(3): return DeleteThru;
case static_cast<std::uint8_t>(4): return DeleteFrom;
case static_cast<std::uint8_t>(5): return Overlay;
case static_cast<std::uint8_t>(255): return NULL_VALUE;
}
throw std::runtime_error("unknown value for enum MDUpdateAction [E103]");
}
throw std::runtime_error("unknown value for enum MDUpdateAction [E103]");
}
static const char *c_str(const MDUpdateAction::Value value) {
switch (value) {
case New:
return "New";
case Change:
return "Change";
case Delete:
return "Delete";
case DeleteThru:
return "DeleteThru";
case DeleteFrom:
return "DeleteFrom";
case Overlay:
return "Overlay";
case NULL_VALUE:
return "NULL_VALUE";
}
static const char *c_str(const MDUpdateAction::Value value)
{
switch (value)
{
case New: return "New";
case Change: return "Change";
case Delete: return "Delete";
case DeleteThru: return "DeleteThru";
case DeleteFrom: return "DeleteFrom";
case Overlay: return "Overlay";
case NULL_VALUE: return "NULL_VALUE";
}
throw std::runtime_error("unknown value for enum MDUpdateAction [E103]:");
}
throw std::runtime_error("unknown value for enum MDUpdateAction [E103]:");
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &
operator<<(std::basic_ostream<CharT, Traits> &os, MDUpdateAction::Value m) {
return os << MDUpdateAction::c_str(m);
}
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& os, MDUpdateAction::Value m)
{
return os << MDUpdateAction::c_str(m);
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,373 +86,428 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class MatchEventIndicator {
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
class MatchEventIndicator
{
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
public:
enum MetaAttribute { EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE };
public:
enum MetaAttribute
{
EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE
};
union sbe_float_as_uint_u {
float fp_value;
std::uint32_t uint_value;
};
union sbe_float_as_uint_u
{
float fp_value;
std::uint32_t uint_value;
};
union sbe_double_as_uint_u {
double fp_value;
std::uint64_t uint_value;
};
union sbe_double_as_uint_u
{
double fp_value;
std::uint64_t uint_value;
};
MatchEventIndicator() = default;
MatchEventIndicator() = default;
MatchEventIndicator(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: m_buffer(buffer), m_bufferLength(bufferLength), m_offset(offset),
m_actingVersion(actingVersion) {
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 1) > m_bufferLength), false)) {
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
MatchEventIndicator(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
m_buffer(buffer),
m_bufferLength(bufferLength),
m_offset(offset),
m_actingVersion(actingVersion)
{
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 1) > m_bufferLength), false))
{
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
MatchEventIndicator(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: MatchEventIndicator(buffer, 0, bufferLength, actingVersion) {}
MatchEventIndicator(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
MatchEventIndicator(buffer, 0, bufferLength, actingVersion)
{
}
MatchEventIndicator(char *buffer, const std::uint64_t bufferLength)
: MatchEventIndicator(buffer, 0, bufferLength, sbeSchemaVersion()) {}
MatchEventIndicator(
char *buffer,
const std::uint64_t bufferLength) :
MatchEventIndicator(buffer, 0, bufferLength, sbeSchemaVersion())
{
}
MatchEventIndicator &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength) {
return *this = MatchEventIndicator(
buffer, offset, bufferLength, actingVersion);
}
MatchEventIndicator &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength)
{
return *this = MatchEventIndicator(buffer, offset, bufferLength, actingVersion);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
encodedLength() SBE_NOEXCEPT {
return 1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t encodedLength() SBE_NOEXCEPT
{
return 1;
}
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT { return m_offset; }
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT
{
return m_offset;
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD char *buffer() SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD char *buffer() SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT {
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT
{
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT {
return m_actingVersion;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT
{
return m_actingVersion;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT {
return (std::uint16_t)1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(1);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeSchemaVersion() SBE_NOEXCEPT {
return (std::uint16_t)9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaVersion() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(9);
}
MatchEventIndicator &clear() {
std::uint8_t zero = 0;
std::memcpy(m_buffer + m_offset, &zero, sizeof(std::uint8_t));
return *this;
}
MatchEventIndicator &clear()
{
std::uint8_t zero = 0;
std::memcpy(m_buffer + m_offset, &zero, sizeof(std::uint8_t));
return *this;
}
SBE_NODISCARD bool isEmpty() const {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return 0 == val;
}
SBE_NODISCARD bool isEmpty() const
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return 0 == val;
}
SBE_NODISCARD std::uint8_t rawValue() const {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return val;
}
SBE_NODISCARD std::uint8_t rawValue() const
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return val;
}
MatchEventIndicator &rawValue(std::uint8_t value) {
std::memcpy(m_buffer + m_offset, &value, sizeof(std::uint8_t));
return *this;
}
MatchEventIndicator &rawValue(std::uint8_t value)
{
std::memcpy(m_buffer + m_offset, &value, sizeof(std::uint8_t));
return *this;
}
static bool lastTradeMsg(const std::uint8_t bits) {
return (bits & (1u << 0u)) != 0;
}
static bool lastTradeMsg(const std::uint8_t bits)
{
return (bits & (static_cast<std::uint8_t>(1) << 0u)) != 0;
}
static std::uint8_t lastTradeMsg(const std::uint8_t bits, const bool value) {
return value ? static_cast<std::uint8_t>(bits | (1u << 0u))
: static_cast<std::uint8_t>(bits & ~(1u << 0u));
}
static std::uint8_t lastTradeMsg(const std::uint8_t bits, const bool value)
{
return value ? static_cast<std::uint8_t>(bits | (static_cast<std::uint8_t>(1) << 0u)) : static_cast<std::uint8_t>(bits & ~(static_cast<std::uint8_t>(1) << 0u));
}
SBE_NODISCARD bool lastTradeMsg() const {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (1u << 0u)) != 0;
}
SBE_NODISCARD bool lastTradeMsg() const
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (static_cast<std::uint8_t>(1) << 0u)) != 0;
}
MatchEventIndicator &lastTradeMsg(const bool value) {
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits =
(value ? static_cast<std::uint8_t>((bits) | (1u << 0u))
: static_cast<std::uint8_t>((bits) & ~(1u << 0u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
MatchEventIndicator &lastTradeMsg(const bool value)
{
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits = (value ? static_cast<std::uint8_t>((bits) | (static_cast<std::uint8_t>(1) << 0u)) : static_cast<std::uint8_t>((bits) & ~(static_cast<std::uint8_t>(1) << 0u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
static bool lastVolumeMsg(const std::uint8_t bits) {
return (bits & (1u << 1u)) != 0;
}
static bool lastVolumeMsg(const std::uint8_t bits)
{
return (bits & (static_cast<std::uint8_t>(1) << 1u)) != 0;
}
static std::uint8_t
lastVolumeMsg(const std::uint8_t bits, const bool value) {
return value ? static_cast<std::uint8_t>(bits | (1u << 1u))
: static_cast<std::uint8_t>(bits & ~(1u << 1u));
}
static std::uint8_t lastVolumeMsg(const std::uint8_t bits, const bool value)
{
return value ? static_cast<std::uint8_t>(bits | (static_cast<std::uint8_t>(1) << 1u)) : static_cast<std::uint8_t>(bits & ~(static_cast<std::uint8_t>(1) << 1u));
}
SBE_NODISCARD bool lastVolumeMsg() const {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (1u << 1u)) != 0;
}
SBE_NODISCARD bool lastVolumeMsg() const
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (static_cast<std::uint8_t>(1) << 1u)) != 0;
}
MatchEventIndicator &lastVolumeMsg(const bool value) {
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits =
(value ? static_cast<std::uint8_t>((bits) | (1u << 1u))
: static_cast<std::uint8_t>((bits) & ~(1u << 1u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
MatchEventIndicator &lastVolumeMsg(const bool value)
{
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits = (value ? static_cast<std::uint8_t>((bits) | (static_cast<std::uint8_t>(1) << 1u)) : static_cast<std::uint8_t>((bits) & ~(static_cast<std::uint8_t>(1) << 1u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
static bool lastQuoteMsg(const std::uint8_t bits) {
return (bits & (1u << 2u)) != 0;
}
static bool lastQuoteMsg(const std::uint8_t bits)
{
return (bits & (static_cast<std::uint8_t>(1) << 2u)) != 0;
}
static std::uint8_t lastQuoteMsg(const std::uint8_t bits, const bool value) {
return value ? static_cast<std::uint8_t>(bits | (1u << 2u))
: static_cast<std::uint8_t>(bits & ~(1u << 2u));
}
static std::uint8_t lastQuoteMsg(const std::uint8_t bits, const bool value)
{
return value ? static_cast<std::uint8_t>(bits | (static_cast<std::uint8_t>(1) << 2u)) : static_cast<std::uint8_t>(bits & ~(static_cast<std::uint8_t>(1) << 2u));
}
SBE_NODISCARD bool lastQuoteMsg() const {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (1u << 2u)) != 0;
}
SBE_NODISCARD bool lastQuoteMsg() const
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (static_cast<std::uint8_t>(1) << 2u)) != 0;
}
MatchEventIndicator &lastQuoteMsg(const bool value) {
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits =
(value ? static_cast<std::uint8_t>((bits) | (1u << 2u))
: static_cast<std::uint8_t>((bits) & ~(1u << 2u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
MatchEventIndicator &lastQuoteMsg(const bool value)
{
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits = (value ? static_cast<std::uint8_t>((bits) | (static_cast<std::uint8_t>(1) << 2u)) : static_cast<std::uint8_t>((bits) & ~(static_cast<std::uint8_t>(1) << 2u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
static bool lastStatsMsg(const std::uint8_t bits) {
return (bits & (1u << 3u)) != 0;
}
static bool lastStatsMsg(const std::uint8_t bits)
{
return (bits & (static_cast<std::uint8_t>(1) << 3u)) != 0;
}
static std::uint8_t lastStatsMsg(const std::uint8_t bits, const bool value) {
return value ? static_cast<std::uint8_t>(bits | (1u << 3u))
: static_cast<std::uint8_t>(bits & ~(1u << 3u));
}
static std::uint8_t lastStatsMsg(const std::uint8_t bits, const bool value)
{
return value ? static_cast<std::uint8_t>(bits | (static_cast<std::uint8_t>(1) << 3u)) : static_cast<std::uint8_t>(bits & ~(static_cast<std::uint8_t>(1) << 3u));
}
SBE_NODISCARD bool lastStatsMsg() const {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (1u << 3u)) != 0;
}
SBE_NODISCARD bool lastStatsMsg() const
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (static_cast<std::uint8_t>(1) << 3u)) != 0;
}
MatchEventIndicator &lastStatsMsg(const bool value) {
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits =
(value ? static_cast<std::uint8_t>((bits) | (1u << 3u))
: static_cast<std::uint8_t>((bits) & ~(1u << 3u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
MatchEventIndicator &lastStatsMsg(const bool value)
{
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits = (value ? static_cast<std::uint8_t>((bits) | (static_cast<std::uint8_t>(1) << 3u)) : static_cast<std::uint8_t>((bits) & ~(static_cast<std::uint8_t>(1) << 3u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
static bool lastImpliedMsg(const std::uint8_t bits) {
return (bits & (1u << 4u)) != 0;
}
static bool lastImpliedMsg(const std::uint8_t bits)
{
return (bits & (static_cast<std::uint8_t>(1) << 4u)) != 0;
}
static std::uint8_t
lastImpliedMsg(const std::uint8_t bits, const bool value) {
return value ? static_cast<std::uint8_t>(bits | (1u << 4u))
: static_cast<std::uint8_t>(bits & ~(1u << 4u));
}
static std::uint8_t lastImpliedMsg(const std::uint8_t bits, const bool value)
{
return value ? static_cast<std::uint8_t>(bits | (static_cast<std::uint8_t>(1) << 4u)) : static_cast<std::uint8_t>(bits & ~(static_cast<std::uint8_t>(1) << 4u));
}
SBE_NODISCARD bool lastImpliedMsg() const {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (1u << 4u)) != 0;
}
SBE_NODISCARD bool lastImpliedMsg() const
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (static_cast<std::uint8_t>(1) << 4u)) != 0;
}
MatchEventIndicator &lastImpliedMsg(const bool value) {
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits =
(value ? static_cast<std::uint8_t>((bits) | (1u << 4u))
: static_cast<std::uint8_t>((bits) & ~(1u << 4u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
MatchEventIndicator &lastImpliedMsg(const bool value)
{
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits = (value ? static_cast<std::uint8_t>((bits) | (static_cast<std::uint8_t>(1) << 4u)) : static_cast<std::uint8_t>((bits) & ~(static_cast<std::uint8_t>(1) << 4u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
static bool recoveryMsg(const std::uint8_t bits) {
return (bits & (1u << 5u)) != 0;
}
static bool recoveryMsg(const std::uint8_t bits)
{
return (bits & (static_cast<std::uint8_t>(1) << 5u)) != 0;
}
static std::uint8_t recoveryMsg(const std::uint8_t bits, const bool value) {
return value ? static_cast<std::uint8_t>(bits | (1u << 5u))
: static_cast<std::uint8_t>(bits & ~(1u << 5u));
}
static std::uint8_t recoveryMsg(const std::uint8_t bits, const bool value)
{
return value ? static_cast<std::uint8_t>(bits | (static_cast<std::uint8_t>(1) << 5u)) : static_cast<std::uint8_t>(bits & ~(static_cast<std::uint8_t>(1) << 5u));
}
SBE_NODISCARD bool recoveryMsg() const {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (1u << 5u)) != 0;
}
SBE_NODISCARD bool recoveryMsg() const
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (static_cast<std::uint8_t>(1) << 5u)) != 0;
}
MatchEventIndicator &recoveryMsg(const bool value) {
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits =
(value ? static_cast<std::uint8_t>((bits) | (1u << 5u))
: static_cast<std::uint8_t>((bits) & ~(1u << 5u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
MatchEventIndicator &recoveryMsg(const bool value)
{
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits = (value ? static_cast<std::uint8_t>((bits) | (static_cast<std::uint8_t>(1) << 5u)) : static_cast<std::uint8_t>((bits) & ~(static_cast<std::uint8_t>(1) << 5u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
static bool reserved(const std::uint8_t bits) {
return (bits & (1u << 6u)) != 0;
}
static bool reserved(const std::uint8_t bits)
{
return (bits & (static_cast<std::uint8_t>(1) << 6u)) != 0;
}
static std::uint8_t reserved(const std::uint8_t bits, const bool value) {
return value ? static_cast<std::uint8_t>(bits | (1u << 6u))
: static_cast<std::uint8_t>(bits & ~(1u << 6u));
}
static std::uint8_t reserved(const std::uint8_t bits, const bool value)
{
return value ? static_cast<std::uint8_t>(bits | (static_cast<std::uint8_t>(1) << 6u)) : static_cast<std::uint8_t>(bits & ~(static_cast<std::uint8_t>(1) << 6u));
}
SBE_NODISCARD bool reserved() const {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (1u << 6u)) != 0;
}
SBE_NODISCARD bool reserved() const
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (static_cast<std::uint8_t>(1) << 6u)) != 0;
}
MatchEventIndicator &reserved(const bool value) {
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits =
(value ? static_cast<std::uint8_t>((bits) | (1u << 6u))
: static_cast<std::uint8_t>((bits) & ~(1u << 6u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
MatchEventIndicator &reserved(const bool value)
{
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits = (value ? static_cast<std::uint8_t>((bits) | (static_cast<std::uint8_t>(1) << 6u)) : static_cast<std::uint8_t>((bits) & ~(static_cast<std::uint8_t>(1) << 6u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
static bool endOfEvent(const std::uint8_t bits) {
return (bits & (1u << 7u)) != 0;
}
static bool endOfEvent(const std::uint8_t bits)
{
return (bits & (static_cast<std::uint8_t>(1) << 7u)) != 0;
}
static std::uint8_t endOfEvent(const std::uint8_t bits, const bool value) {
return value ? static_cast<std::uint8_t>(bits | (1u << 7u))
: static_cast<std::uint8_t>(bits & ~(1u << 7u));
}
static std::uint8_t endOfEvent(const std::uint8_t bits, const bool value)
{
return value ? static_cast<std::uint8_t>(bits | (static_cast<std::uint8_t>(1) << 7u)) : static_cast<std::uint8_t>(bits & ~(static_cast<std::uint8_t>(1) << 7u));
}
SBE_NODISCARD bool endOfEvent() const {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (1u << 7u)) != 0;
}
SBE_NODISCARD bool endOfEvent() const
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (static_cast<std::uint8_t>(1) << 7u)) != 0;
}
MatchEventIndicator &endOfEvent(const bool value) {
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits =
(value ? static_cast<std::uint8_t>((bits) | (1u << 7u))
: static_cast<std::uint8_t>((bits) & ~(1u << 7u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
MatchEventIndicator &endOfEvent(const bool value)
{
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits = (value ? static_cast<std::uint8_t>((bits) | (static_cast<std::uint8_t>(1) << 7u)) : static_cast<std::uint8_t>((bits) & ~(static_cast<std::uint8_t>(1) << 7u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &operator<<(
std::basic_ostream<CharT, Traits> &builder, MatchEventIndicator writer) {
builder << '[';
bool atLeastOne = false;
if (writer.lastTradeMsg()) {
builder << R"("lastTradeMsg")";
atLeastOne = true;
}
if (writer.lastVolumeMsg()) {
if (atLeastOne) {
builder << ",";
}
builder << R"("lastVolumeMsg")";
atLeastOne = true;
}
if (writer.lastQuoteMsg()) {
if (atLeastOne) {
builder << ",";
}
builder << R"("lastQuoteMsg")";
atLeastOne = true;
}
if (writer.lastStatsMsg()) {
if (atLeastOne) {
builder << ",";
}
builder << R"("lastStatsMsg")";
atLeastOne = true;
}
if (writer.lastImpliedMsg()) {
if (atLeastOne) {
builder << ",";
}
builder << R"("lastImpliedMsg")";
atLeastOne = true;
}
if (writer.recoveryMsg()) {
if (atLeastOne) {
builder << ",";
}
builder << R"("recoveryMsg")";
atLeastOne = true;
}
if (writer.reserved()) {
if (atLeastOne) {
builder << ",";
}
builder << R"("reserved")";
atLeastOne = true;
}
if (writer.endOfEvent()) {
if (atLeastOne) {
builder << ",";
}
builder << R"("endOfEvent")";
}
builder << ']';
return builder;
}
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& builder, MatchEventIndicator writer)
{
builder << '[';
bool atLeastOne = false;
if (writer.lastTradeMsg())
{
builder << R"("lastTradeMsg")";
atLeastOne = true;
}
if (writer.lastVolumeMsg())
{
if (atLeastOne)
{
builder << ",";
}
builder << R"("lastVolumeMsg")";
atLeastOne = true;
}
if (writer.lastQuoteMsg())
{
if (atLeastOne)
{
builder << ",";
}
builder << R"("lastQuoteMsg")";
atLeastOne = true;
}
if (writer.lastStatsMsg())
{
if (atLeastOne)
{
builder << ",";
}
builder << R"("lastStatsMsg")";
atLeastOne = true;
}
if (writer.lastImpliedMsg())
{
if (atLeastOne)
{
builder << ",";
}
builder << R"("lastImpliedMsg")";
atLeastOne = true;
}
if (writer.recoveryMsg())
{
if (atLeastOne)
{
builder << ",";
}
builder << R"("recoveryMsg")";
atLeastOne = true;
}
if (writer.reserved())
{
if (atLeastOne)
{
builder << ",";
}
builder << R"("reserved")";
atLeastOne = true;
}
if (writer.endOfEvent())
{
if (atLeastOne)
{
builder << ",";
}
builder << R"("endOfEvent")";
}
builder << ']';
return builder;
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,349 +86,424 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class MaturityMonthYear {
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
class MaturityMonthYear
{
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
public:
enum MetaAttribute { EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE };
public:
enum MetaAttribute
{
EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE
};
union sbe_float_as_uint_u {
float fp_value;
std::uint32_t uint_value;
};
union sbe_float_as_uint_u
{
float fp_value;
std::uint32_t uint_value;
};
union sbe_double_as_uint_u {
double fp_value;
std::uint64_t uint_value;
};
union sbe_double_as_uint_u
{
double fp_value;
std::uint64_t uint_value;
};
MaturityMonthYear() = default;
MaturityMonthYear() = default;
MaturityMonthYear(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: m_buffer(buffer), m_bufferLength(bufferLength), m_offset(offset),
m_actingVersion(actingVersion) {
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 5) > m_bufferLength), false)) {
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
MaturityMonthYear(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
m_buffer(buffer),
m_bufferLength(bufferLength),
m_offset(offset),
m_actingVersion(actingVersion)
{
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 5) > m_bufferLength), false))
{
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
MaturityMonthYear(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: MaturityMonthYear(buffer, 0, bufferLength, actingVersion) {}
MaturityMonthYear(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
MaturityMonthYear(buffer, 0, bufferLength, actingVersion)
{
}
MaturityMonthYear(char *buffer, const std::uint64_t bufferLength)
: MaturityMonthYear(buffer, 0, bufferLength, sbeSchemaVersion()) {}
MaturityMonthYear(
char *buffer,
const std::uint64_t bufferLength) :
MaturityMonthYear(buffer, 0, bufferLength, sbeSchemaVersion())
{
}
MaturityMonthYear &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength) {
return *this =
MaturityMonthYear(buffer, offset, bufferLength, actingVersion);
}
MaturityMonthYear &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength)
{
return *this = MaturityMonthYear(buffer, offset, bufferLength, actingVersion);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
encodedLength() SBE_NOEXCEPT {
return 5;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t encodedLength() SBE_NOEXCEPT
{
return 5;
}
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT { return m_offset; }
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT
{
return m_offset;
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD char *buffer() SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD char *buffer() SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT {
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT
{
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT {
return m_actingVersion;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT
{
return m_actingVersion;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT {
return (std::uint16_t)1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(1);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeSchemaVersion() SBE_NOEXCEPT {
return (std::uint16_t)9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaVersion() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(9);
}
SBE_NODISCARD static const char *
yearMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "optional";
default:
return "";
}
}
SBE_NODISCARD static const char *yearMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "optional";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
yearSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t yearId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool yearInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t yearSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool yearInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= yearSinceVersion();
return m_actingVersion >= yearSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
yearEncodingOffset() SBE_NOEXCEPT {
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t yearEncodingOffset() SBE_NOEXCEPT
{
return 0;
}
static SBE_CONSTEXPR std::uint16_t yearNullValue() SBE_NOEXCEPT {
return (std::uint16_t)65535;
}
static SBE_CONSTEXPR std::uint16_t yearNullValue() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(65535);
}
static SBE_CONSTEXPR std::uint16_t yearMinValue() SBE_NOEXCEPT {
return (std::uint16_t)0;
}
static SBE_CONSTEXPR std::uint16_t yearMinValue() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(0);
}
static SBE_CONSTEXPR std::uint16_t yearMaxValue() SBE_NOEXCEPT {
return (std::uint16_t)65534;
}
static SBE_CONSTEXPR std::uint16_t yearMaxValue() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(65534);
}
static SBE_CONSTEXPR std::size_t yearEncodingLength() SBE_NOEXCEPT {
return 2;
}
static SBE_CONSTEXPR std::size_t yearEncodingLength() SBE_NOEXCEPT
{
return 2;
}
SBE_NODISCARD std::uint16_t year() const SBE_NOEXCEPT {
std::uint16_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::uint16_t));
return SBE_LITTLE_ENDIAN_ENCODE_16(val);
}
SBE_NODISCARD std::uint16_t year() const SBE_NOEXCEPT
{
std::uint16_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::uint16_t));
return SBE_LITTLE_ENDIAN_ENCODE_16(val);
}
MaturityMonthYear &year(const std::uint16_t value) SBE_NOEXCEPT {
std::uint16_t val = SBE_LITTLE_ENDIAN_ENCODE_16(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::uint16_t));
return *this;
}
MaturityMonthYear &year(const std::uint16_t value) SBE_NOEXCEPT
{
std::uint16_t val = SBE_LITTLE_ENDIAN_ENCODE_16(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::uint16_t));
return *this;
}
SBE_NODISCARD static const char *
monthMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "optional";
default:
return "";
}
}
SBE_NODISCARD static const char *monthMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "optional";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
monthSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t monthId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool monthInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t monthSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool monthInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= monthSinceVersion();
return m_actingVersion >= monthSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
monthEncodingOffset() SBE_NOEXCEPT {
return 2;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t monthEncodingOffset() SBE_NOEXCEPT
{
return 2;
}
static SBE_CONSTEXPR std::uint8_t monthNullValue() SBE_NOEXCEPT {
return (std::uint8_t)255;
}
static SBE_CONSTEXPR std::uint8_t monthNullValue() SBE_NOEXCEPT
{
return static_cast<std::uint8_t>(255);
}
static SBE_CONSTEXPR std::uint8_t monthMinValue() SBE_NOEXCEPT {
return (std::uint8_t)0;
}
static SBE_CONSTEXPR std::uint8_t monthMinValue() SBE_NOEXCEPT
{
return static_cast<std::uint8_t>(0);
}
static SBE_CONSTEXPR std::uint8_t monthMaxValue() SBE_NOEXCEPT {
return (std::uint8_t)254;
}
static SBE_CONSTEXPR std::uint8_t monthMaxValue() SBE_NOEXCEPT
{
return static_cast<std::uint8_t>(254);
}
static SBE_CONSTEXPR std::size_t monthEncodingLength() SBE_NOEXCEPT {
return 1;
}
static SBE_CONSTEXPR std::size_t monthEncodingLength() SBE_NOEXCEPT
{
return 1;
}
SBE_NODISCARD std::uint8_t month() const SBE_NOEXCEPT {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset + 2, sizeof(std::uint8_t));
return (val);
}
SBE_NODISCARD std::uint8_t month() const SBE_NOEXCEPT
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset + 2, sizeof(std::uint8_t));
return (val);
}
MaturityMonthYear &month(const std::uint8_t value) SBE_NOEXCEPT {
std::uint8_t val = (value);
std::memcpy(m_buffer + m_offset + 2, &val, sizeof(std::uint8_t));
return *this;
}
MaturityMonthYear &month(const std::uint8_t value) SBE_NOEXCEPT
{
std::uint8_t val = (value);
std::memcpy(m_buffer + m_offset + 2, &val, sizeof(std::uint8_t));
return *this;
}
SBE_NODISCARD static const char *
dayMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "optional";
default:
return "";
}
}
SBE_NODISCARD static const char *dayMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "optional";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
daySinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t dayId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool dayInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t daySinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool dayInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= daySinceVersion();
return m_actingVersion >= daySinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
dayEncodingOffset() SBE_NOEXCEPT {
return 3;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t dayEncodingOffset() SBE_NOEXCEPT
{
return 3;
}
static SBE_CONSTEXPR std::uint8_t dayNullValue() SBE_NOEXCEPT {
return (std::uint8_t)255;
}
static SBE_CONSTEXPR std::uint8_t dayNullValue() SBE_NOEXCEPT
{
return static_cast<std::uint8_t>(255);
}
static SBE_CONSTEXPR std::uint8_t dayMinValue() SBE_NOEXCEPT {
return (std::uint8_t)0;
}
static SBE_CONSTEXPR std::uint8_t dayMinValue() SBE_NOEXCEPT
{
return static_cast<std::uint8_t>(0);
}
static SBE_CONSTEXPR std::uint8_t dayMaxValue() SBE_NOEXCEPT {
return (std::uint8_t)254;
}
static SBE_CONSTEXPR std::uint8_t dayMaxValue() SBE_NOEXCEPT
{
return static_cast<std::uint8_t>(254);
}
static SBE_CONSTEXPR std::size_t dayEncodingLength() SBE_NOEXCEPT {
return 1;
}
static SBE_CONSTEXPR std::size_t dayEncodingLength() SBE_NOEXCEPT
{
return 1;
}
SBE_NODISCARD std::uint8_t day() const SBE_NOEXCEPT {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset + 3, sizeof(std::uint8_t));
return (val);
}
SBE_NODISCARD std::uint8_t day() const SBE_NOEXCEPT
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset + 3, sizeof(std::uint8_t));
return (val);
}
MaturityMonthYear &day(const std::uint8_t value) SBE_NOEXCEPT {
std::uint8_t val = (value);
std::memcpy(m_buffer + m_offset + 3, &val, sizeof(std::uint8_t));
return *this;
}
MaturityMonthYear &day(const std::uint8_t value) SBE_NOEXCEPT
{
std::uint8_t val = (value);
std::memcpy(m_buffer + m_offset + 3, &val, sizeof(std::uint8_t));
return *this;
}
SBE_NODISCARD static const char *
weekMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "optional";
default:
return "";
}
}
SBE_NODISCARD static const char *weekMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "optional";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
weekSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t weekId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool weekInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t weekSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool weekInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= weekSinceVersion();
return m_actingVersion >= weekSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
weekEncodingOffset() SBE_NOEXCEPT {
return 4;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t weekEncodingOffset() SBE_NOEXCEPT
{
return 4;
}
static SBE_CONSTEXPR std::uint8_t weekNullValue() SBE_NOEXCEPT {
return (std::uint8_t)255;
}
static SBE_CONSTEXPR std::uint8_t weekNullValue() SBE_NOEXCEPT
{
return static_cast<std::uint8_t>(255);
}
static SBE_CONSTEXPR std::uint8_t weekMinValue() SBE_NOEXCEPT {
return (std::uint8_t)0;
}
static SBE_CONSTEXPR std::uint8_t weekMinValue() SBE_NOEXCEPT
{
return static_cast<std::uint8_t>(0);
}
static SBE_CONSTEXPR std::uint8_t weekMaxValue() SBE_NOEXCEPT {
return (std::uint8_t)254;
}
static SBE_CONSTEXPR std::uint8_t weekMaxValue() SBE_NOEXCEPT
{
return static_cast<std::uint8_t>(254);
}
static SBE_CONSTEXPR std::size_t weekEncodingLength() SBE_NOEXCEPT {
return 1;
}
static SBE_CONSTEXPR std::size_t weekEncodingLength() SBE_NOEXCEPT
{
return 1;
}
SBE_NODISCARD std::uint8_t week() const SBE_NOEXCEPT {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset + 4, sizeof(std::uint8_t));
return (val);
}
SBE_NODISCARD std::uint8_t week() const SBE_NOEXCEPT
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset + 4, sizeof(std::uint8_t));
return (val);
}
MaturityMonthYear &week(const std::uint8_t value) SBE_NOEXCEPT {
std::uint8_t val = (value);
std::memcpy(m_buffer + m_offset + 4, &val, sizeof(std::uint8_t));
return *this;
}
MaturityMonthYear &week(const std::uint8_t value) SBE_NOEXCEPT
{
std::uint8_t val = (value);
std::memcpy(m_buffer + m_offset + 4, &val, sizeof(std::uint8_t));
return *this;
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &operator<<(
std::basic_ostream<CharT, Traits> &builder, MaturityMonthYear writer) {
builder << '{';
builder << R"("year": )";
builder << +writer.year();
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& builder, MaturityMonthYear writer)
{
builder << '{';
builder << R"("year": )";
builder << +writer.year();
builder << ", ";
builder << R"("month": )";
builder << +writer.month();
builder << ", ";
builder << R"("month": )";
builder << +writer.month();
builder << ", ";
builder << R"("day": )";
builder << +writer.day();
builder << ", ";
builder << R"("day": )";
builder << +writer.day();
builder << ", ";
builder << R"("week": )";
builder << +writer.week();
builder << ", ";
builder << R"("week": )";
builder << +writer.week();
builder << '}';
builder << '}';
return builder;
}
return builder;
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,348 +86,424 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class MessageHeader {
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
class MessageHeader
{
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
public:
enum MetaAttribute { EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE };
public:
enum MetaAttribute
{
EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE
};
union sbe_float_as_uint_u {
float fp_value;
std::uint32_t uint_value;
};
union sbe_float_as_uint_u
{
float fp_value;
std::uint32_t uint_value;
};
union sbe_double_as_uint_u {
double fp_value;
std::uint64_t uint_value;
};
union sbe_double_as_uint_u
{
double fp_value;
std::uint64_t uint_value;
};
MessageHeader() = default;
MessageHeader() = default;
MessageHeader(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: m_buffer(buffer), m_bufferLength(bufferLength), m_offset(offset),
m_actingVersion(actingVersion) {
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 8) > m_bufferLength), false)) {
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
MessageHeader(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
m_buffer(buffer),
m_bufferLength(bufferLength),
m_offset(offset),
m_actingVersion(actingVersion)
{
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 8) > m_bufferLength), false))
{
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
MessageHeader(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: MessageHeader(buffer, 0, bufferLength, actingVersion) {}
MessageHeader(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
MessageHeader(buffer, 0, bufferLength, actingVersion)
{
}
MessageHeader(char *buffer, const std::uint64_t bufferLength)
: MessageHeader(buffer, 0, bufferLength, sbeSchemaVersion()) {}
MessageHeader(
char *buffer,
const std::uint64_t bufferLength) :
MessageHeader(buffer, 0, bufferLength, sbeSchemaVersion())
{
}
MessageHeader &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength) {
return *this = MessageHeader(buffer, offset, bufferLength, actingVersion);
}
MessageHeader &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength)
{
return *this = MessageHeader(buffer, offset, bufferLength, actingVersion);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
encodedLength() SBE_NOEXCEPT {
return 8;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t encodedLength() SBE_NOEXCEPT
{
return 8;
}
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT { return m_offset; }
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT
{
return m_offset;
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD char *buffer() SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD char *buffer() SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT {
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT
{
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT {
return m_actingVersion;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT
{
return m_actingVersion;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT {
return (std::uint16_t)1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(1);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeSchemaVersion() SBE_NOEXCEPT {
return (std::uint16_t)9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaVersion() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(9);
}
SBE_NODISCARD static const char *
blockLengthMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "required";
default:
return "";
}
}
SBE_NODISCARD static const char *blockLengthMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "required";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
blockLengthSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t blockLengthId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool blockLengthInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t blockLengthSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool blockLengthInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= blockLengthSinceVersion();
return m_actingVersion >= blockLengthSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
blockLengthEncodingOffset() SBE_NOEXCEPT {
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t blockLengthEncodingOffset() SBE_NOEXCEPT
{
return 0;
}
static SBE_CONSTEXPR std::uint16_t blockLengthNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_UINT16;
}
static SBE_CONSTEXPR std::uint16_t blockLengthNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_UINT16;
}
static SBE_CONSTEXPR std::uint16_t blockLengthMinValue() SBE_NOEXCEPT {
return (std::uint16_t)0;
}
static SBE_CONSTEXPR std::uint16_t blockLengthMinValue() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(0);
}
static SBE_CONSTEXPR std::uint16_t blockLengthMaxValue() SBE_NOEXCEPT {
return (std::uint16_t)65534;
}
static SBE_CONSTEXPR std::uint16_t blockLengthMaxValue() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(65534);
}
static SBE_CONSTEXPR std::size_t blockLengthEncodingLength() SBE_NOEXCEPT {
return 2;
}
static SBE_CONSTEXPR std::size_t blockLengthEncodingLength() SBE_NOEXCEPT
{
return 2;
}
SBE_NODISCARD std::uint16_t blockLength() const SBE_NOEXCEPT {
std::uint16_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::uint16_t));
return SBE_LITTLE_ENDIAN_ENCODE_16(val);
}
SBE_NODISCARD std::uint16_t blockLength() const SBE_NOEXCEPT
{
std::uint16_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::uint16_t));
return SBE_LITTLE_ENDIAN_ENCODE_16(val);
}
MessageHeader &blockLength(const std::uint16_t value) SBE_NOEXCEPT {
std::uint16_t val = SBE_LITTLE_ENDIAN_ENCODE_16(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::uint16_t));
return *this;
}
MessageHeader &blockLength(const std::uint16_t value) SBE_NOEXCEPT
{
std::uint16_t val = SBE_LITTLE_ENDIAN_ENCODE_16(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::uint16_t));
return *this;
}
SBE_NODISCARD static const char *
templateIdMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "required";
default:
return "";
}
}
SBE_NODISCARD static const char *templateIdMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "required";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
templateIdSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t templateIdId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool templateIdInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t templateIdSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool templateIdInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= templateIdSinceVersion();
return m_actingVersion >= templateIdSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
templateIdEncodingOffset() SBE_NOEXCEPT {
return 2;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t templateIdEncodingOffset() SBE_NOEXCEPT
{
return 2;
}
static SBE_CONSTEXPR std::uint16_t templateIdNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_UINT16;
}
static SBE_CONSTEXPR std::uint16_t templateIdNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_UINT16;
}
static SBE_CONSTEXPR std::uint16_t templateIdMinValue() SBE_NOEXCEPT {
return (std::uint16_t)0;
}
static SBE_CONSTEXPR std::uint16_t templateIdMinValue() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(0);
}
static SBE_CONSTEXPR std::uint16_t templateIdMaxValue() SBE_NOEXCEPT {
return (std::uint16_t)65534;
}
static SBE_CONSTEXPR std::uint16_t templateIdMaxValue() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(65534);
}
static SBE_CONSTEXPR std::size_t templateIdEncodingLength() SBE_NOEXCEPT {
return 2;
}
static SBE_CONSTEXPR std::size_t templateIdEncodingLength() SBE_NOEXCEPT
{
return 2;
}
SBE_NODISCARD std::uint16_t templateId() const SBE_NOEXCEPT {
std::uint16_t val;
std::memcpy(&val, m_buffer + m_offset + 2, sizeof(std::uint16_t));
return SBE_LITTLE_ENDIAN_ENCODE_16(val);
}
SBE_NODISCARD std::uint16_t templateId() const SBE_NOEXCEPT
{
std::uint16_t val;
std::memcpy(&val, m_buffer + m_offset + 2, sizeof(std::uint16_t));
return SBE_LITTLE_ENDIAN_ENCODE_16(val);
}
MessageHeader &templateId(const std::uint16_t value) SBE_NOEXCEPT {
std::uint16_t val = SBE_LITTLE_ENDIAN_ENCODE_16(value);
std::memcpy(m_buffer + m_offset + 2, &val, sizeof(std::uint16_t));
return *this;
}
MessageHeader &templateId(const std::uint16_t value) SBE_NOEXCEPT
{
std::uint16_t val = SBE_LITTLE_ENDIAN_ENCODE_16(value);
std::memcpy(m_buffer + m_offset + 2, &val, sizeof(std::uint16_t));
return *this;
}
SBE_NODISCARD static const char *
schemaIdMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "required";
default:
return "";
}
}
SBE_NODISCARD static const char *schemaIdMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "required";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
schemaIdSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t schemaIdId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool schemaIdInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t schemaIdSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool schemaIdInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= schemaIdSinceVersion();
return m_actingVersion >= schemaIdSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
schemaIdEncodingOffset() SBE_NOEXCEPT {
return 4;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t schemaIdEncodingOffset() SBE_NOEXCEPT
{
return 4;
}
static SBE_CONSTEXPR std::uint16_t schemaIdNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_UINT16;
}
static SBE_CONSTEXPR std::uint16_t schemaIdNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_UINT16;
}
static SBE_CONSTEXPR std::uint16_t schemaIdMinValue() SBE_NOEXCEPT {
return (std::uint16_t)0;
}
static SBE_CONSTEXPR std::uint16_t schemaIdMinValue() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(0);
}
static SBE_CONSTEXPR std::uint16_t schemaIdMaxValue() SBE_NOEXCEPT {
return (std::uint16_t)65534;
}
static SBE_CONSTEXPR std::uint16_t schemaIdMaxValue() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(65534);
}
static SBE_CONSTEXPR std::size_t schemaIdEncodingLength() SBE_NOEXCEPT {
return 2;
}
static SBE_CONSTEXPR std::size_t schemaIdEncodingLength() SBE_NOEXCEPT
{
return 2;
}
SBE_NODISCARD std::uint16_t schemaId() const SBE_NOEXCEPT {
std::uint16_t val;
std::memcpy(&val, m_buffer + m_offset + 4, sizeof(std::uint16_t));
return SBE_LITTLE_ENDIAN_ENCODE_16(val);
}
SBE_NODISCARD std::uint16_t schemaId() const SBE_NOEXCEPT
{
std::uint16_t val;
std::memcpy(&val, m_buffer + m_offset + 4, sizeof(std::uint16_t));
return SBE_LITTLE_ENDIAN_ENCODE_16(val);
}
MessageHeader &schemaId(const std::uint16_t value) SBE_NOEXCEPT {
std::uint16_t val = SBE_LITTLE_ENDIAN_ENCODE_16(value);
std::memcpy(m_buffer + m_offset + 4, &val, sizeof(std::uint16_t));
return *this;
}
MessageHeader &schemaId(const std::uint16_t value) SBE_NOEXCEPT
{
std::uint16_t val = SBE_LITTLE_ENDIAN_ENCODE_16(value);
std::memcpy(m_buffer + m_offset + 4, &val, sizeof(std::uint16_t));
return *this;
}
SBE_NODISCARD static const char *
versionMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "required";
default:
return "";
}
}
SBE_NODISCARD static const char *versionMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "required";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
versionSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t versionId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool versionInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t versionSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool versionInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= versionSinceVersion();
return m_actingVersion >= versionSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
versionEncodingOffset() SBE_NOEXCEPT {
return 6;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t versionEncodingOffset() SBE_NOEXCEPT
{
return 6;
}
static SBE_CONSTEXPR std::uint16_t versionNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_UINT16;
}
static SBE_CONSTEXPR std::uint16_t versionNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_UINT16;
}
static SBE_CONSTEXPR std::uint16_t versionMinValue() SBE_NOEXCEPT {
return (std::uint16_t)0;
}
static SBE_CONSTEXPR std::uint16_t versionMinValue() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(0);
}
static SBE_CONSTEXPR std::uint16_t versionMaxValue() SBE_NOEXCEPT {
return (std::uint16_t)65534;
}
static SBE_CONSTEXPR std::uint16_t versionMaxValue() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(65534);
}
static SBE_CONSTEXPR std::size_t versionEncodingLength() SBE_NOEXCEPT {
return 2;
}
static SBE_CONSTEXPR std::size_t versionEncodingLength() SBE_NOEXCEPT
{
return 2;
}
SBE_NODISCARD std::uint16_t version() const SBE_NOEXCEPT {
std::uint16_t val;
std::memcpy(&val, m_buffer + m_offset + 6, sizeof(std::uint16_t));
return SBE_LITTLE_ENDIAN_ENCODE_16(val);
}
SBE_NODISCARD std::uint16_t version() const SBE_NOEXCEPT
{
std::uint16_t val;
std::memcpy(&val, m_buffer + m_offset + 6, sizeof(std::uint16_t));
return SBE_LITTLE_ENDIAN_ENCODE_16(val);
}
MessageHeader &version(const std::uint16_t value) SBE_NOEXCEPT {
std::uint16_t val = SBE_LITTLE_ENDIAN_ENCODE_16(value);
std::memcpy(m_buffer + m_offset + 6, &val, sizeof(std::uint16_t));
return *this;
}
MessageHeader &version(const std::uint16_t value) SBE_NOEXCEPT
{
std::uint16_t val = SBE_LITTLE_ENDIAN_ENCODE_16(value);
std::memcpy(m_buffer + m_offset + 6, &val, sizeof(std::uint16_t));
return *this;
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &operator<<(
std::basic_ostream<CharT, Traits> &builder, MessageHeader writer) {
builder << '{';
builder << R"("blockLength": )";
builder << +writer.blockLength();
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& builder, MessageHeader writer)
{
builder << '{';
builder << R"("blockLength": )";
builder << +writer.blockLength();
builder << ", ";
builder << R"("templateId": )";
builder << +writer.templateId();
builder << ", ";
builder << R"("templateId": )";
builder << +writer.templateId();
builder << ", ";
builder << R"("schemaId": )";
builder << +writer.schemaId();
builder << ", ";
builder << R"("schemaId": )";
builder << +writer.schemaId();
builder << ", ";
builder << R"("version": )";
builder << +writer.version();
builder << ", ";
builder << R"("version": )";
builder << +writer.version();
builder << '}';
builder << '}';
return builder;
}
return builder;
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,51 +86,51 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class OpenCloseSettlFlag {
public:
enum Value {
DailyOpenPrice = (std::uint8_t)0,
IndicativeOpeningPrice = (std::uint8_t)5,
NULL_VALUE = (std::uint8_t)255
};
class OpenCloseSettlFlag
{
public:
enum Value
{
DailyOpenPrice = static_cast<std::uint8_t>(0),
IndicativeOpeningPrice = static_cast<std::uint8_t>(5),
NULL_VALUE = static_cast<std::uint8_t>(255)
};
static OpenCloseSettlFlag::Value get(const std::uint8_t value) {
switch (value) {
case 0:
return DailyOpenPrice;
case 5:
return IndicativeOpeningPrice;
case 255:
return NULL_VALUE;
}
static OpenCloseSettlFlag::Value get(const std::uint8_t value)
{
switch (value)
{
case static_cast<std::uint8_t>(0): return DailyOpenPrice;
case static_cast<std::uint8_t>(5): return IndicativeOpeningPrice;
case static_cast<std::uint8_t>(255): return NULL_VALUE;
}
throw std::runtime_error(
"unknown value for enum OpenCloseSettlFlag [E103]");
}
throw std::runtime_error("unknown value for enum OpenCloseSettlFlag [E103]");
}
static const char *c_str(const OpenCloseSettlFlag::Value value) {
switch (value) {
case DailyOpenPrice:
return "DailyOpenPrice";
case IndicativeOpeningPrice:
return "IndicativeOpeningPrice";
case NULL_VALUE:
return "NULL_VALUE";
}
static const char *c_str(const OpenCloseSettlFlag::Value value)
{
switch (value)
{
case DailyOpenPrice: return "DailyOpenPrice";
case IndicativeOpeningPrice: return "IndicativeOpeningPrice";
case NULL_VALUE: return "NULL_VALUE";
}
throw std::runtime_error(
"unknown value for enum OpenCloseSettlFlag [E103]:");
}
throw std::runtime_error("unknown value for enum OpenCloseSettlFlag [E103]:");
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &operator<<(
std::basic_ostream<CharT, Traits> &os, OpenCloseSettlFlag::Value m) {
return os << OpenCloseSettlFlag::c_str(m);
}
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& os, OpenCloseSettlFlag::Value m)
{
return os << OpenCloseSettlFlag::c_str(m);
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,56 +86,54 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class OrderUpdateAction {
public:
enum Value {
New = (std::uint8_t)0,
Update = (std::uint8_t)1,
Delete = (std::uint8_t)2,
NULL_VALUE = (std::uint8_t)255
};
class OrderUpdateAction
{
public:
enum Value
{
New = static_cast<std::uint8_t>(0),
Update = static_cast<std::uint8_t>(1),
Delete = static_cast<std::uint8_t>(2),
NULL_VALUE = static_cast<std::uint8_t>(255)
};
static OrderUpdateAction::Value get(const std::uint8_t value) {
switch (value) {
case 0:
return New;
case 1:
return Update;
case 2:
return Delete;
case 255:
return NULL_VALUE;
}
static OrderUpdateAction::Value get(const std::uint8_t value)
{
switch (value)
{
case static_cast<std::uint8_t>(0): return New;
case static_cast<std::uint8_t>(1): return Update;
case static_cast<std::uint8_t>(2): return Delete;
case static_cast<std::uint8_t>(255): return NULL_VALUE;
}
throw std::runtime_error(
"unknown value for enum OrderUpdateAction [E103]");
}
throw std::runtime_error("unknown value for enum OrderUpdateAction [E103]");
}
static const char *c_str(const OrderUpdateAction::Value value) {
switch (value) {
case New:
return "New";
case Update:
return "Update";
case Delete:
return "Delete";
case NULL_VALUE:
return "NULL_VALUE";
}
static const char *c_str(const OrderUpdateAction::Value value)
{
switch (value)
{
case New: return "New";
case Update: return "Update";
case Delete: return "Delete";
case NULL_VALUE: return "NULL_VALUE";
}
throw std::runtime_error(
"unknown value for enum OrderUpdateAction [E103]:");
}
throw std::runtime_error("unknown value for enum OrderUpdateAction [E103]:");
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &operator<<(
std::basic_ostream<CharT, Traits> &os, OrderUpdateAction::Value m) {
return os << OrderUpdateAction::c_str(m);
}
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& os, OrderUpdateAction::Value m)
{
return os << OrderUpdateAction::c_str(m);
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,210 +86,263 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class PRICE {
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
class PRICE
{
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
public:
enum MetaAttribute { EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE };
public:
enum MetaAttribute
{
EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE
};
union sbe_float_as_uint_u {
float fp_value;
std::uint32_t uint_value;
};
union sbe_float_as_uint_u
{
float fp_value;
std::uint32_t uint_value;
};
union sbe_double_as_uint_u {
double fp_value;
std::uint64_t uint_value;
};
union sbe_double_as_uint_u
{
double fp_value;
std::uint64_t uint_value;
};
PRICE() = default;
PRICE() = default;
PRICE(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: m_buffer(buffer), m_bufferLength(bufferLength), m_offset(offset),
m_actingVersion(actingVersion) {
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 8) > m_bufferLength), false)) {
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
PRICE(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
m_buffer(buffer),
m_bufferLength(bufferLength),
m_offset(offset),
m_actingVersion(actingVersion)
{
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 8) > m_bufferLength), false))
{
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
PRICE(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: PRICE(buffer, 0, bufferLength, actingVersion) {}
PRICE(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
PRICE(buffer, 0, bufferLength, actingVersion)
{
}
PRICE(char *buffer, const std::uint64_t bufferLength)
: PRICE(buffer, 0, bufferLength, sbeSchemaVersion()) {}
PRICE(
char *buffer,
const std::uint64_t bufferLength) :
PRICE(buffer, 0, bufferLength, sbeSchemaVersion())
{
}
PRICE &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength) {
return *this = PRICE(buffer, offset, bufferLength, actingVersion);
}
PRICE &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength)
{
return *this = PRICE(buffer, offset, bufferLength, actingVersion);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
encodedLength() SBE_NOEXCEPT {
return 8;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t encodedLength() SBE_NOEXCEPT
{
return 8;
}
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT { return m_offset; }
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT
{
return m_offset;
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD char *buffer() SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD char *buffer() SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT {
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT
{
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT {
return m_actingVersion;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT
{
return m_actingVersion;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT {
return (std::uint16_t)1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(1);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeSchemaVersion() SBE_NOEXCEPT {
return (std::uint16_t)9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaVersion() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(9);
}
SBE_NODISCARD static const char *
mantissaMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "required";
default:
return "";
}
}
SBE_NODISCARD static const char *mantissaMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "required";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
mantissaSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t mantissaId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool mantissaInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t mantissaSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool mantissaInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= mantissaSinceVersion();
return m_actingVersion >= mantissaSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
mantissaEncodingOffset() SBE_NOEXCEPT {
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t mantissaEncodingOffset() SBE_NOEXCEPT
{
return 0;
}
static SBE_CONSTEXPR std::int64_t mantissaNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_INT64;
}
static SBE_CONSTEXPR std::int64_t mantissaNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_INT64;
}
static SBE_CONSTEXPR std::int64_t mantissaMinValue() SBE_NOEXCEPT {
return -9223372036854775807L;
}
static SBE_CONSTEXPR std::int64_t mantissaMinValue() SBE_NOEXCEPT
{
return INT64_C(-9223372036854775807);
}
static SBE_CONSTEXPR std::int64_t mantissaMaxValue() SBE_NOEXCEPT {
return 9223372036854775807L;
}
static SBE_CONSTEXPR std::int64_t mantissaMaxValue() SBE_NOEXCEPT
{
return INT64_C(9223372036854775807);
}
static SBE_CONSTEXPR std::size_t mantissaEncodingLength() SBE_NOEXCEPT {
return 8;
}
static SBE_CONSTEXPR std::size_t mantissaEncodingLength() SBE_NOEXCEPT
{
return 8;
}
SBE_NODISCARD std::int64_t mantissa() const SBE_NOEXCEPT {
std::int64_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::int64_t));
return SBE_LITTLE_ENDIAN_ENCODE_64(val);
}
SBE_NODISCARD std::int64_t mantissa() const SBE_NOEXCEPT
{
std::int64_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::int64_t));
return SBE_LITTLE_ENDIAN_ENCODE_64(val);
}
PRICE &mantissa(const std::int64_t value) SBE_NOEXCEPT {
std::int64_t val = SBE_LITTLE_ENDIAN_ENCODE_64(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::int64_t));
return *this;
}
PRICE &mantissa(const std::int64_t value) SBE_NOEXCEPT
{
std::int64_t val = SBE_LITTLE_ENDIAN_ENCODE_64(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::int64_t));
return *this;
}
SBE_NODISCARD static const char *
exponentMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "constant";
default:
return "";
}
}
SBE_NODISCARD static const char *exponentMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "constant";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
exponentSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t exponentId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool exponentInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t exponentSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool exponentInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= exponentSinceVersion();
return m_actingVersion >= exponentSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
exponentEncodingOffset() SBE_NOEXCEPT {
return 8;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t exponentEncodingOffset() SBE_NOEXCEPT
{
return 8;
}
static SBE_CONSTEXPR std::int8_t exponentNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_INT8;
}
static SBE_CONSTEXPR std::int8_t exponentNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_INT8;
}
static SBE_CONSTEXPR std::int8_t exponentMinValue() SBE_NOEXCEPT {
return (std::int8_t)-127;
}
static SBE_CONSTEXPR std::int8_t exponentMinValue() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(-127);
}
static SBE_CONSTEXPR std::int8_t exponentMaxValue() SBE_NOEXCEPT {
return (std::int8_t)127;
}
static SBE_CONSTEXPR std::int8_t exponentMaxValue() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(127);
}
static SBE_CONSTEXPR std::size_t exponentEncodingLength() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::size_t exponentEncodingLength() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::int8_t exponent() SBE_NOEXCEPT {
return (std::int8_t)-7;
}
SBE_NODISCARD static SBE_CONSTEXPR std::int8_t exponent() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(-7);
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &
operator<<(std::basic_ostream<CharT, Traits> &builder, PRICE writer) {
builder << '{';
builder << R"("mantissa": )";
builder << +writer.mantissa();
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& builder, PRICE writer)
{
builder << '{';
builder << R"("mantissa": )";
builder << +writer.mantissa();
builder << '}';
builder << '}';
return builder;
}
return builder;
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,210 +86,263 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class PRICE9 {
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
class PRICE9
{
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
public:
enum MetaAttribute { EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE };
public:
enum MetaAttribute
{
EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE
};
union sbe_float_as_uint_u {
float fp_value;
std::uint32_t uint_value;
};
union sbe_float_as_uint_u
{
float fp_value;
std::uint32_t uint_value;
};
union sbe_double_as_uint_u {
double fp_value;
std::uint64_t uint_value;
};
union sbe_double_as_uint_u
{
double fp_value;
std::uint64_t uint_value;
};
PRICE9() = default;
PRICE9() = default;
PRICE9(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: m_buffer(buffer), m_bufferLength(bufferLength), m_offset(offset),
m_actingVersion(actingVersion) {
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 8) > m_bufferLength), false)) {
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
PRICE9(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
m_buffer(buffer),
m_bufferLength(bufferLength),
m_offset(offset),
m_actingVersion(actingVersion)
{
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 8) > m_bufferLength), false))
{
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
PRICE9(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: PRICE9(buffer, 0, bufferLength, actingVersion) {}
PRICE9(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
PRICE9(buffer, 0, bufferLength, actingVersion)
{
}
PRICE9(char *buffer, const std::uint64_t bufferLength)
: PRICE9(buffer, 0, bufferLength, sbeSchemaVersion()) {}
PRICE9(
char *buffer,
const std::uint64_t bufferLength) :
PRICE9(buffer, 0, bufferLength, sbeSchemaVersion())
{
}
PRICE9 &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength) {
return *this = PRICE9(buffer, offset, bufferLength, actingVersion);
}
PRICE9 &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength)
{
return *this = PRICE9(buffer, offset, bufferLength, actingVersion);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
encodedLength() SBE_NOEXCEPT {
return 8;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t encodedLength() SBE_NOEXCEPT
{
return 8;
}
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT { return m_offset; }
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT
{
return m_offset;
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD char *buffer() SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD char *buffer() SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT {
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT
{
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT {
return m_actingVersion;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT
{
return m_actingVersion;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT {
return (std::uint16_t)1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(1);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeSchemaVersion() SBE_NOEXCEPT {
return (std::uint16_t)9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaVersion() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(9);
}
SBE_NODISCARD static const char *
mantissaMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "required";
default:
return "";
}
}
SBE_NODISCARD static const char *mantissaMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "required";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
mantissaSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t mantissaId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool mantissaInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t mantissaSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool mantissaInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= mantissaSinceVersion();
return m_actingVersion >= mantissaSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
mantissaEncodingOffset() SBE_NOEXCEPT {
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t mantissaEncodingOffset() SBE_NOEXCEPT
{
return 0;
}
static SBE_CONSTEXPR std::int64_t mantissaNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_INT64;
}
static SBE_CONSTEXPR std::int64_t mantissaNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_INT64;
}
static SBE_CONSTEXPR std::int64_t mantissaMinValue() SBE_NOEXCEPT {
return -9223372036854775807L;
}
static SBE_CONSTEXPR std::int64_t mantissaMinValue() SBE_NOEXCEPT
{
return INT64_C(-9223372036854775807);
}
static SBE_CONSTEXPR std::int64_t mantissaMaxValue() SBE_NOEXCEPT {
return 9223372036854775807L;
}
static SBE_CONSTEXPR std::int64_t mantissaMaxValue() SBE_NOEXCEPT
{
return INT64_C(9223372036854775807);
}
static SBE_CONSTEXPR std::size_t mantissaEncodingLength() SBE_NOEXCEPT {
return 8;
}
static SBE_CONSTEXPR std::size_t mantissaEncodingLength() SBE_NOEXCEPT
{
return 8;
}
SBE_NODISCARD std::int64_t mantissa() const SBE_NOEXCEPT {
std::int64_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::int64_t));
return SBE_LITTLE_ENDIAN_ENCODE_64(val);
}
SBE_NODISCARD std::int64_t mantissa() const SBE_NOEXCEPT
{
std::int64_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::int64_t));
return SBE_LITTLE_ENDIAN_ENCODE_64(val);
}
PRICE9 &mantissa(const std::int64_t value) SBE_NOEXCEPT {
std::int64_t val = SBE_LITTLE_ENDIAN_ENCODE_64(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::int64_t));
return *this;
}
PRICE9 &mantissa(const std::int64_t value) SBE_NOEXCEPT
{
std::int64_t val = SBE_LITTLE_ENDIAN_ENCODE_64(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::int64_t));
return *this;
}
SBE_NODISCARD static const char *
exponentMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "constant";
default:
return "";
}
}
SBE_NODISCARD static const char *exponentMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "constant";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
exponentSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t exponentId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool exponentInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t exponentSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool exponentInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= exponentSinceVersion();
return m_actingVersion >= exponentSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
exponentEncodingOffset() SBE_NOEXCEPT {
return 8;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t exponentEncodingOffset() SBE_NOEXCEPT
{
return 8;
}
static SBE_CONSTEXPR std::int8_t exponentNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_INT8;
}
static SBE_CONSTEXPR std::int8_t exponentNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_INT8;
}
static SBE_CONSTEXPR std::int8_t exponentMinValue() SBE_NOEXCEPT {
return (std::int8_t)-127;
}
static SBE_CONSTEXPR std::int8_t exponentMinValue() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(-127);
}
static SBE_CONSTEXPR std::int8_t exponentMaxValue() SBE_NOEXCEPT {
return (std::int8_t)127;
}
static SBE_CONSTEXPR std::int8_t exponentMaxValue() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(127);
}
static SBE_CONSTEXPR std::size_t exponentEncodingLength() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::size_t exponentEncodingLength() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::int8_t exponent() SBE_NOEXCEPT {
return (std::int8_t)-9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::int8_t exponent() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(-9);
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &
operator<<(std::basic_ostream<CharT, Traits> &builder, PRICE9 writer) {
builder << '{';
builder << R"("mantissa": )";
builder << +writer.mantissa();
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& builder, PRICE9 writer)
{
builder << '{';
builder << R"("mantissa": )";
builder << +writer.mantissa();
builder << '}';
builder << '}';
return builder;
}
return builder;
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,210 +86,263 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class PRICENULL {
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
class PRICENULL
{
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
public:
enum MetaAttribute { EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE };
public:
enum MetaAttribute
{
EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE
};
union sbe_float_as_uint_u {
float fp_value;
std::uint32_t uint_value;
};
union sbe_float_as_uint_u
{
float fp_value;
std::uint32_t uint_value;
};
union sbe_double_as_uint_u {
double fp_value;
std::uint64_t uint_value;
};
union sbe_double_as_uint_u
{
double fp_value;
std::uint64_t uint_value;
};
PRICENULL() = default;
PRICENULL() = default;
PRICENULL(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: m_buffer(buffer), m_bufferLength(bufferLength), m_offset(offset),
m_actingVersion(actingVersion) {
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 8) > m_bufferLength), false)) {
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
PRICENULL(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
m_buffer(buffer),
m_bufferLength(bufferLength),
m_offset(offset),
m_actingVersion(actingVersion)
{
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 8) > m_bufferLength), false))
{
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
PRICENULL(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: PRICENULL(buffer, 0, bufferLength, actingVersion) {}
PRICENULL(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
PRICENULL(buffer, 0, bufferLength, actingVersion)
{
}
PRICENULL(char *buffer, const std::uint64_t bufferLength)
: PRICENULL(buffer, 0, bufferLength, sbeSchemaVersion()) {}
PRICENULL(
char *buffer,
const std::uint64_t bufferLength) :
PRICENULL(buffer, 0, bufferLength, sbeSchemaVersion())
{
}
PRICENULL &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength) {
return *this = PRICENULL(buffer, offset, bufferLength, actingVersion);
}
PRICENULL &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength)
{
return *this = PRICENULL(buffer, offset, bufferLength, actingVersion);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
encodedLength() SBE_NOEXCEPT {
return 8;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t encodedLength() SBE_NOEXCEPT
{
return 8;
}
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT { return m_offset; }
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT
{
return m_offset;
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD char *buffer() SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD char *buffer() SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT {
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT
{
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT {
return m_actingVersion;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT
{
return m_actingVersion;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT {
return (std::uint16_t)1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(1);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeSchemaVersion() SBE_NOEXCEPT {
return (std::uint16_t)9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaVersion() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(9);
}
SBE_NODISCARD static const char *
mantissaMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "optional";
default:
return "";
}
}
SBE_NODISCARD static const char *mantissaMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "optional";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
mantissaSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t mantissaId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool mantissaInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t mantissaSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool mantissaInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= mantissaSinceVersion();
return m_actingVersion >= mantissaSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
mantissaEncodingOffset() SBE_NOEXCEPT {
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t mantissaEncodingOffset() SBE_NOEXCEPT
{
return 0;
}
static SBE_CONSTEXPR std::int64_t mantissaNullValue() SBE_NOEXCEPT {
return 9223372036854775807L;
}
static SBE_CONSTEXPR std::int64_t mantissaNullValue() SBE_NOEXCEPT
{
return INT64_C(9223372036854775807);
}
static SBE_CONSTEXPR std::int64_t mantissaMinValue() SBE_NOEXCEPT {
return -9223372036854775807L;
}
static SBE_CONSTEXPR std::int64_t mantissaMinValue() SBE_NOEXCEPT
{
return INT64_C(-9223372036854775807);
}
static SBE_CONSTEXPR std::int64_t mantissaMaxValue() SBE_NOEXCEPT {
return 9223372036854775807L;
}
static SBE_CONSTEXPR std::int64_t mantissaMaxValue() SBE_NOEXCEPT
{
return INT64_C(9223372036854775807);
}
static SBE_CONSTEXPR std::size_t mantissaEncodingLength() SBE_NOEXCEPT {
return 8;
}
static SBE_CONSTEXPR std::size_t mantissaEncodingLength() SBE_NOEXCEPT
{
return 8;
}
SBE_NODISCARD std::int64_t mantissa() const SBE_NOEXCEPT {
std::int64_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::int64_t));
return SBE_LITTLE_ENDIAN_ENCODE_64(val);
}
SBE_NODISCARD std::int64_t mantissa() const SBE_NOEXCEPT
{
std::int64_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::int64_t));
return SBE_LITTLE_ENDIAN_ENCODE_64(val);
}
PRICENULL &mantissa(const std::int64_t value) SBE_NOEXCEPT {
std::int64_t val = SBE_LITTLE_ENDIAN_ENCODE_64(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::int64_t));
return *this;
}
PRICENULL &mantissa(const std::int64_t value) SBE_NOEXCEPT
{
std::int64_t val = SBE_LITTLE_ENDIAN_ENCODE_64(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::int64_t));
return *this;
}
SBE_NODISCARD static const char *
exponentMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "constant";
default:
return "";
}
}
SBE_NODISCARD static const char *exponentMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "constant";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
exponentSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t exponentId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool exponentInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t exponentSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool exponentInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= exponentSinceVersion();
return m_actingVersion >= exponentSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
exponentEncodingOffset() SBE_NOEXCEPT {
return 8;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t exponentEncodingOffset() SBE_NOEXCEPT
{
return 8;
}
static SBE_CONSTEXPR std::int8_t exponentNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_INT8;
}
static SBE_CONSTEXPR std::int8_t exponentNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_INT8;
}
static SBE_CONSTEXPR std::int8_t exponentMinValue() SBE_NOEXCEPT {
return (std::int8_t)-127;
}
static SBE_CONSTEXPR std::int8_t exponentMinValue() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(-127);
}
static SBE_CONSTEXPR std::int8_t exponentMaxValue() SBE_NOEXCEPT {
return (std::int8_t)127;
}
static SBE_CONSTEXPR std::int8_t exponentMaxValue() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(127);
}
static SBE_CONSTEXPR std::size_t exponentEncodingLength() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::size_t exponentEncodingLength() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::int8_t exponent() SBE_NOEXCEPT {
return (std::int8_t)-7;
}
SBE_NODISCARD static SBE_CONSTEXPR std::int8_t exponent() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(-7);
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &
operator<<(std::basic_ostream<CharT, Traits> &builder, PRICENULL writer) {
builder << '{';
builder << R"("mantissa": )";
builder << +writer.mantissa();
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& builder, PRICENULL writer)
{
builder << '{';
builder << R"("mantissa": )";
builder << +writer.mantissa();
builder << '}';
builder << '}';
return builder;
}
return builder;
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,210 +86,263 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class PRICENULL9 {
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
class PRICENULL9
{
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
public:
enum MetaAttribute { EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE };
public:
enum MetaAttribute
{
EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE
};
union sbe_float_as_uint_u {
float fp_value;
std::uint32_t uint_value;
};
union sbe_float_as_uint_u
{
float fp_value;
std::uint32_t uint_value;
};
union sbe_double_as_uint_u {
double fp_value;
std::uint64_t uint_value;
};
union sbe_double_as_uint_u
{
double fp_value;
std::uint64_t uint_value;
};
PRICENULL9() = default;
PRICENULL9() = default;
PRICENULL9(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: m_buffer(buffer), m_bufferLength(bufferLength), m_offset(offset),
m_actingVersion(actingVersion) {
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 8) > m_bufferLength), false)) {
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
PRICENULL9(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
m_buffer(buffer),
m_bufferLength(bufferLength),
m_offset(offset),
m_actingVersion(actingVersion)
{
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 8) > m_bufferLength), false))
{
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
PRICENULL9(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: PRICENULL9(buffer, 0, bufferLength, actingVersion) {}
PRICENULL9(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
PRICENULL9(buffer, 0, bufferLength, actingVersion)
{
}
PRICENULL9(char *buffer, const std::uint64_t bufferLength)
: PRICENULL9(buffer, 0, bufferLength, sbeSchemaVersion()) {}
PRICENULL9(
char *buffer,
const std::uint64_t bufferLength) :
PRICENULL9(buffer, 0, bufferLength, sbeSchemaVersion())
{
}
PRICENULL9 &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength) {
return *this = PRICENULL9(buffer, offset, bufferLength, actingVersion);
}
PRICENULL9 &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength)
{
return *this = PRICENULL9(buffer, offset, bufferLength, actingVersion);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
encodedLength() SBE_NOEXCEPT {
return 8;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t encodedLength() SBE_NOEXCEPT
{
return 8;
}
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT { return m_offset; }
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT
{
return m_offset;
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD char *buffer() SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD char *buffer() SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT {
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT
{
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT {
return m_actingVersion;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT
{
return m_actingVersion;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT {
return (std::uint16_t)1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(1);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeSchemaVersion() SBE_NOEXCEPT {
return (std::uint16_t)9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaVersion() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(9);
}
SBE_NODISCARD static const char *
mantissaMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "optional";
default:
return "";
}
}
SBE_NODISCARD static const char *mantissaMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "optional";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
mantissaSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t mantissaId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool mantissaInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t mantissaSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool mantissaInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= mantissaSinceVersion();
return m_actingVersion >= mantissaSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
mantissaEncodingOffset() SBE_NOEXCEPT {
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t mantissaEncodingOffset() SBE_NOEXCEPT
{
return 0;
}
static SBE_CONSTEXPR std::int64_t mantissaNullValue() SBE_NOEXCEPT {
return 9223372036854775807L;
}
static SBE_CONSTEXPR std::int64_t mantissaNullValue() SBE_NOEXCEPT
{
return INT64_C(9223372036854775807);
}
static SBE_CONSTEXPR std::int64_t mantissaMinValue() SBE_NOEXCEPT {
return -9223372036854775807L;
}
static SBE_CONSTEXPR std::int64_t mantissaMinValue() SBE_NOEXCEPT
{
return INT64_C(-9223372036854775807);
}
static SBE_CONSTEXPR std::int64_t mantissaMaxValue() SBE_NOEXCEPT {
return 9223372036854775807L;
}
static SBE_CONSTEXPR std::int64_t mantissaMaxValue() SBE_NOEXCEPT
{
return INT64_C(9223372036854775807);
}
static SBE_CONSTEXPR std::size_t mantissaEncodingLength() SBE_NOEXCEPT {
return 8;
}
static SBE_CONSTEXPR std::size_t mantissaEncodingLength() SBE_NOEXCEPT
{
return 8;
}
SBE_NODISCARD std::int64_t mantissa() const SBE_NOEXCEPT {
std::int64_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::int64_t));
return SBE_LITTLE_ENDIAN_ENCODE_64(val);
}
SBE_NODISCARD std::int64_t mantissa() const SBE_NOEXCEPT
{
std::int64_t val;
std::memcpy(&val, m_buffer + m_offset + 0, sizeof(std::int64_t));
return SBE_LITTLE_ENDIAN_ENCODE_64(val);
}
PRICENULL9 &mantissa(const std::int64_t value) SBE_NOEXCEPT {
std::int64_t val = SBE_LITTLE_ENDIAN_ENCODE_64(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::int64_t));
return *this;
}
PRICENULL9 &mantissa(const std::int64_t value) SBE_NOEXCEPT
{
std::int64_t val = SBE_LITTLE_ENDIAN_ENCODE_64(value);
std::memcpy(m_buffer + m_offset + 0, &val, sizeof(std::int64_t));
return *this;
}
SBE_NODISCARD static const char *
exponentMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT {
switch (metaAttribute) {
case MetaAttribute::PRESENCE:
return "constant";
default:
return "";
}
}
SBE_NODISCARD static const char *exponentMetaAttribute(const MetaAttribute metaAttribute) SBE_NOEXCEPT
{
switch (metaAttribute)
{
case MetaAttribute::PRESENCE: return "constant";
default: return "";
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
exponentSinceVersion() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::uint16_t exponentId() SBE_NOEXCEPT
{
return -1;
}
SBE_NODISCARD bool exponentInActingVersion() SBE_NOEXCEPT {
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t exponentSinceVersion() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD bool exponentInActingVersion() SBE_NOEXCEPT
{
#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wtautological-compare"
#endif
return m_actingVersion >= exponentSinceVersion();
return m_actingVersion >= exponentSinceVersion();
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t
exponentEncodingOffset() SBE_NOEXCEPT {
return 8;
}
SBE_NODISCARD static SBE_CONSTEXPR std::size_t exponentEncodingOffset() SBE_NOEXCEPT
{
return 8;
}
static SBE_CONSTEXPR std::int8_t exponentNullValue() SBE_NOEXCEPT {
return SBE_NULLVALUE_INT8;
}
static SBE_CONSTEXPR std::int8_t exponentNullValue() SBE_NOEXCEPT
{
return SBE_NULLVALUE_INT8;
}
static SBE_CONSTEXPR std::int8_t exponentMinValue() SBE_NOEXCEPT {
return (std::int8_t)-127;
}
static SBE_CONSTEXPR std::int8_t exponentMinValue() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(-127);
}
static SBE_CONSTEXPR std::int8_t exponentMaxValue() SBE_NOEXCEPT {
return (std::int8_t)127;
}
static SBE_CONSTEXPR std::int8_t exponentMaxValue() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(127);
}
static SBE_CONSTEXPR std::size_t exponentEncodingLength() SBE_NOEXCEPT {
return 0;
}
static SBE_CONSTEXPR std::size_t exponentEncodingLength() SBE_NOEXCEPT
{
return 0;
}
SBE_NODISCARD static SBE_CONSTEXPR std::int8_t exponent() SBE_NOEXCEPT {
return (std::int8_t)-9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::int8_t exponent() SBE_NOEXCEPT
{
return static_cast<std::int8_t>(-9);
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &
operator<<(std::basic_ostream<CharT, Traits> &builder, PRICENULL9 writer) {
builder << '{';
builder << R"("mantissa": )";
builder << +writer.mantissa();
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& builder, PRICENULL9 writer)
{
builder << '{';
builder << R"("mantissa": )";
builder << +writer.mantissa();
builder << '}';
builder << '}';
return builder;
}
return builder;
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,49 +86,51 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class PutOrCall {
public:
enum Value {
Put = (std::uint8_t)0,
Call = (std::uint8_t)1,
NULL_VALUE = (std::uint8_t)255
};
class PutOrCall
{
public:
enum Value
{
Put = static_cast<std::uint8_t>(0),
Call = static_cast<std::uint8_t>(1),
NULL_VALUE = static_cast<std::uint8_t>(255)
};
static PutOrCall::Value get(const std::uint8_t value) {
switch (value) {
case 0:
return Put;
case 1:
return Call;
case 255:
return NULL_VALUE;
}
static PutOrCall::Value get(const std::uint8_t value)
{
switch (value)
{
case static_cast<std::uint8_t>(0): return Put;
case static_cast<std::uint8_t>(1): return Call;
case static_cast<std::uint8_t>(255): return NULL_VALUE;
}
throw std::runtime_error("unknown value for enum PutOrCall [E103]");
}
throw std::runtime_error("unknown value for enum PutOrCall [E103]");
}
static const char *c_str(const PutOrCall::Value value) {
switch (value) {
case Put:
return "Put";
case Call:
return "Call";
case NULL_VALUE:
return "NULL_VALUE";
}
static const char *c_str(const PutOrCall::Value value)
{
switch (value)
{
case Put: return "Put";
case Call: return "Call";
case NULL_VALUE: return "NULL_VALUE";
}
throw std::runtime_error("unknown value for enum PutOrCall [E103]:");
}
throw std::runtime_error("unknown value for enum PutOrCall [E103]:");
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &
operator<<(std::basic_ostream<CharT, Traits> &os, PutOrCall::Value m) {
return os << PutOrCall::c_str(m);
}
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& os, PutOrCall::Value m)
{
return os << PutOrCall::c_str(m);
}
};
} // namespace mdp3
}
#endif
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,66 +86,60 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class SecurityTradingEvent {
public:
enum Value {
NoEvent = (std::uint8_t)0,
NoCancel = (std::uint8_t)1,
ResetStatistics = (std::uint8_t)4,
ImpliedMatchingON = (std::uint8_t)5,
ImpliedMatchingOFF = (std::uint8_t)6,
NULL_VALUE = (std::uint8_t)255
};
class SecurityTradingEvent
{
public:
enum Value
{
NoEvent = static_cast<std::uint8_t>(0),
NoCancel = static_cast<std::uint8_t>(1),
ResetStatistics = static_cast<std::uint8_t>(4),
ImpliedMatchingON = static_cast<std::uint8_t>(5),
ImpliedMatchingOFF = static_cast<std::uint8_t>(6),
NULL_VALUE = static_cast<std::uint8_t>(255)
};
static SecurityTradingEvent::Value get(const std::uint8_t value) {
switch (value) {
case 0:
return NoEvent;
case 1:
return NoCancel;
case 4:
return ResetStatistics;
case 5:
return ImpliedMatchingON;
case 6:
return ImpliedMatchingOFF;
case 255:
return NULL_VALUE;
}
static SecurityTradingEvent::Value get(const std::uint8_t value)
{
switch (value)
{
case static_cast<std::uint8_t>(0): return NoEvent;
case static_cast<std::uint8_t>(1): return NoCancel;
case static_cast<std::uint8_t>(4): return ResetStatistics;
case static_cast<std::uint8_t>(5): return ImpliedMatchingON;
case static_cast<std::uint8_t>(6): return ImpliedMatchingOFF;
case static_cast<std::uint8_t>(255): return NULL_VALUE;
}
throw std::runtime_error(
"unknown value for enum SecurityTradingEvent [E103]");
}
throw std::runtime_error("unknown value for enum SecurityTradingEvent [E103]");
}
static const char *c_str(const SecurityTradingEvent::Value value) {
switch (value) {
case NoEvent:
return "NoEvent";
case NoCancel:
return "NoCancel";
case ResetStatistics:
return "ResetStatistics";
case ImpliedMatchingON:
return "ImpliedMatchingON";
case ImpliedMatchingOFF:
return "ImpliedMatchingOFF";
case NULL_VALUE:
return "NULL_VALUE";
}
static const char *c_str(const SecurityTradingEvent::Value value)
{
switch (value)
{
case NoEvent: return "NoEvent";
case NoCancel: return "NoCancel";
case ResetStatistics: return "ResetStatistics";
case ImpliedMatchingON: return "ImpliedMatchingON";
case ImpliedMatchingOFF: return "ImpliedMatchingOFF";
case NULL_VALUE: return "NULL_VALUE";
}
throw std::runtime_error(
"unknown value for enum SecurityTradingEvent [E103]:");
}
throw std::runtime_error("unknown value for enum SecurityTradingEvent [E103]:");
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &operator<<(
std::basic_ostream<CharT, Traits> &os, SecurityTradingEvent::Value m) {
return os << SecurityTradingEvent::c_str(m);
}
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& os, SecurityTradingEvent::Value m)
{
return os << SecurityTradingEvent::c_str(m);
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,96 +86,78 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class SecurityTradingStatus {
public:
enum Value {
TradingHalt = (std::uint8_t)2,
Close = (std::uint8_t)4,
NewPriceIndication = (std::uint8_t)15,
ReadyToTrade = (std::uint8_t)17,
NotAvailableForTrading = (std::uint8_t)18,
UnknownorInvalid = (std::uint8_t)20,
PreOpen = (std::uint8_t)21,
PreCross = (std::uint8_t)24,
Cross = (std::uint8_t)25,
PostClose = (std::uint8_t)26,
NoChange = (std::uint8_t)103,
NULL_VALUE = (std::uint8_t)255
};
class SecurityTradingStatus
{
public:
enum Value
{
TradingHalt = static_cast<std::uint8_t>(2),
Close = static_cast<std::uint8_t>(4),
NewPriceIndication = static_cast<std::uint8_t>(15),
ReadyToTrade = static_cast<std::uint8_t>(17),
NotAvailableForTrading = static_cast<std::uint8_t>(18),
UnknownorInvalid = static_cast<std::uint8_t>(20),
PreOpen = static_cast<std::uint8_t>(21),
PreCross = static_cast<std::uint8_t>(24),
Cross = static_cast<std::uint8_t>(25),
PostClose = static_cast<std::uint8_t>(26),
NoChange = static_cast<std::uint8_t>(103),
NULL_VALUE = static_cast<std::uint8_t>(255)
};
static SecurityTradingStatus::Value get(const std::uint8_t value) {
switch (value) {
case 2:
return TradingHalt;
case 4:
return Close;
case 15:
return NewPriceIndication;
case 17:
return ReadyToTrade;
case 18:
return NotAvailableForTrading;
case 20:
return UnknownorInvalid;
case 21:
return PreOpen;
case 24:
return PreCross;
case 25:
return Cross;
case 26:
return PostClose;
case 103:
return NoChange;
case 255:
return NULL_VALUE;
}
static SecurityTradingStatus::Value get(const std::uint8_t value)
{
switch (value)
{
case static_cast<std::uint8_t>(2): return TradingHalt;
case static_cast<std::uint8_t>(4): return Close;
case static_cast<std::uint8_t>(15): return NewPriceIndication;
case static_cast<std::uint8_t>(17): return ReadyToTrade;
case static_cast<std::uint8_t>(18): return NotAvailableForTrading;
case static_cast<std::uint8_t>(20): return UnknownorInvalid;
case static_cast<std::uint8_t>(21): return PreOpen;
case static_cast<std::uint8_t>(24): return PreCross;
case static_cast<std::uint8_t>(25): return Cross;
case static_cast<std::uint8_t>(26): return PostClose;
case static_cast<std::uint8_t>(103): return NoChange;
case static_cast<std::uint8_t>(255): return NULL_VALUE;
}
throw std::runtime_error(
"unknown value for enum SecurityTradingStatus [E103]");
}
throw std::runtime_error("unknown value for enum SecurityTradingStatus [E103]");
}
static const char *c_str(const SecurityTradingStatus::Value value) {
switch (value) {
case TradingHalt:
return "TradingHalt";
case Close:
return "Close";
case NewPriceIndication:
return "NewPriceIndication";
case ReadyToTrade:
return "ReadyToTrade";
case NotAvailableForTrading:
return "NotAvailableForTrading";
case UnknownorInvalid:
return "UnknownorInvalid";
case PreOpen:
return "PreOpen";
case PreCross:
return "PreCross";
case Cross:
return "Cross";
case PostClose:
return "PostClose";
case NoChange:
return "NoChange";
case NULL_VALUE:
return "NULL_VALUE";
}
static const char *c_str(const SecurityTradingStatus::Value value)
{
switch (value)
{
case TradingHalt: return "TradingHalt";
case Close: return "Close";
case NewPriceIndication: return "NewPriceIndication";
case ReadyToTrade: return "ReadyToTrade";
case NotAvailableForTrading: return "NotAvailableForTrading";
case UnknownorInvalid: return "UnknownorInvalid";
case PreOpen: return "PreOpen";
case PreCross: return "PreCross";
case Cross: return "Cross";
case PostClose: return "PostClose";
case NoChange: return "NoChange";
case NULL_VALUE: return "NULL_VALUE";
}
throw std::runtime_error(
"unknown value for enum SecurityTradingStatus [E103]:");
}
throw std::runtime_error("unknown value for enum SecurityTradingStatus [E103]:");
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &operator<<(
std::basic_ostream<CharT, Traits> &os, SecurityTradingStatus::Value m) {
return os << SecurityTradingStatus::c_str(m);
}
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& os, SecurityTradingStatus::Value m)
{
return os << SecurityTradingStatus::c_str(m);
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,56 +86,54 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class SecurityUpdateAction {
public:
enum Value {
Add = (char)65,
Delete = (char)68,
Modify = (char)77,
NULL_VALUE = (char)0
};
class SecurityUpdateAction
{
public:
enum Value
{
Add = static_cast<char>(65),
Delete = static_cast<char>(68),
Modify = static_cast<char>(77),
NULL_VALUE = static_cast<char>(0)
};
static SecurityUpdateAction::Value get(const char value) {
switch (value) {
case 65:
return Add;
case 68:
return Delete;
case 77:
return Modify;
case 0:
return NULL_VALUE;
}
static SecurityUpdateAction::Value get(const char value)
{
switch (value)
{
case static_cast<char>(65): return Add;
case static_cast<char>(68): return Delete;
case static_cast<char>(77): return Modify;
case static_cast<char>(0): return NULL_VALUE;
}
throw std::runtime_error(
"unknown value for enum SecurityUpdateAction [E103]");
}
throw std::runtime_error("unknown value for enum SecurityUpdateAction [E103]");
}
static const char *c_str(const SecurityUpdateAction::Value value) {
switch (value) {
case Add:
return "Add";
case Delete:
return "Delete";
case Modify:
return "Modify";
case NULL_VALUE:
return "NULL_VALUE";
}
static const char *c_str(const SecurityUpdateAction::Value value)
{
switch (value)
{
case Add: return "Add";
case Delete: return "Delete";
case Modify: return "Modify";
case NULL_VALUE: return "NULL_VALUE";
}
throw std::runtime_error(
"unknown value for enum SecurityUpdateAction [E103]:");
}
throw std::runtime_error("unknown value for enum SecurityUpdateAction [E103]:");
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &operator<<(
std::basic_ostream<CharT, Traits> &os, SecurityUpdateAction::Value m) {
return os << SecurityUpdateAction::c_str(m);
}
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& os, SecurityUpdateAction::Value m)
{
return os << SecurityUpdateAction::c_str(m);
}
};
} // namespace mdp3
}
#endif
@@ -4,80 +4,77 @@
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
#include <cmath>
#define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
#define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
# include <cmath>
# define SBE_FLOAT_NAN std::numeric_limits<float>::quiet_NaN()
# define SBE_DOUBLE_NAN std::numeric_limits<double>::quiet_NaN()
#else
/* math.h needed for NAN */
#include <math.h>
#define SBE_FLOAT_NAN NAN
#define SBE_DOUBLE_NAN NAN
# include <math.h>
# define SBE_FLOAT_NAN NAN
# define SBE_DOUBLE_NAN NAN
#endif
#if __cplusplus >= 201103L
#include <cstdint>
#include <cstring>
#include <string>
#endif
#if __cplusplus >= 201103L
#define SBE_CONSTEXPR constexpr
#define SBE_NOEXCEPT noexcept
# define SBE_CONSTEXPR constexpr
# define SBE_NOEXCEPT noexcept
#else
#define SBE_CONSTEXPR
#define SBE_NOEXCEPT
# define SBE_CONSTEXPR
# define SBE_NOEXCEPT
#endif
#if __cplusplus >= 201703L
#define SBE_NODISCARD [[nodiscard]]
# include <string_view>
# define SBE_NODISCARD [[nodiscard]]
#else
#define SBE_NODISCARD
# define SBE_NODISCARD
#endif
#if !defined(__STDC_LIMIT_MACROS)
#define __STDC_LIMIT_MACROS 1
# define __STDC_LIMIT_MACROS 1
#endif
#include <cstdint>
#include <cstring>
#include <limits>
#include <stdexcept>
#include <iomanip>
#include <limits>
#include <ostream>
#include <stdexcept>
#include <sstream>
#include <string>
#include <vector>
#include <tuple>
#if defined(WIN32) || defined(_WIN32)
#define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) _byteswap_ushort(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) _byteswap_ulong(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) _byteswap_uint64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
#define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) (v)
#elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
#define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
#define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
#define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
#define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
# define SBE_LITTLE_ENDIAN_ENCODE_16(v) __builtin_bswap16(v)
# define SBE_LITTLE_ENDIAN_ENCODE_32(v) __builtin_bswap32(v)
# define SBE_LITTLE_ENDIAN_ENCODE_64(v) __builtin_bswap64(v)
# define SBE_BIG_ENDIAN_ENCODE_16(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_32(v) (v)
# define SBE_BIG_ENDIAN_ENCODE_64(v) (v)
#else
#error \
"Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
# error "Byte Ordering of platform not determined. Set __BYTE_ORDER__ manually before including this file."
#endif
#if defined(SBE_NO_BOUNDS_CHECK)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (false)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (false)
#elif defined(_MSC_VER)
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (exp)
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (exp)
#else
#define SBE_BOUNDS_CHECK_EXPECT(exp, c) (__builtin_expect(exp, c))
# define SBE_BOUNDS_CHECK_EXPECT(exp,c) (__builtin_expect(exp,c))
#endif
#define SBE_NULLVALUE_INT8 (std::numeric_limits<std::int8_t>::min)()
@@ -89,311 +86,363 @@
#define SBE_NULLVALUE_UINT32 (std::numeric_limits<std::uint32_t>::max)()
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace mdp3 {
class SettlPriceType {
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
class SettlPriceType
{
private:
char *m_buffer = nullptr;
std::uint64_t m_bufferLength = 0;
std::uint64_t m_offset = 0;
std::uint64_t m_actingVersion = 0;
public:
enum MetaAttribute { EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE };
public:
enum MetaAttribute
{
EPOCH, TIME_UNIT, SEMANTIC_TYPE, PRESENCE
};
union sbe_float_as_uint_u {
float fp_value;
std::uint32_t uint_value;
};
union sbe_float_as_uint_u
{
float fp_value;
std::uint32_t uint_value;
};
union sbe_double_as_uint_u {
double fp_value;
std::uint64_t uint_value;
};
union sbe_double_as_uint_u
{
double fp_value;
std::uint64_t uint_value;
};
SettlPriceType() = default;
SettlPriceType() = default;
SettlPriceType(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: m_buffer(buffer), m_bufferLength(bufferLength), m_offset(offset),
m_actingVersion(actingVersion) {
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 1) > m_bufferLength), false)) {
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
SettlPriceType(
char *buffer,
const std::uint64_t offset,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
m_buffer(buffer),
m_bufferLength(bufferLength),
m_offset(offset),
m_actingVersion(actingVersion)
{
if (SBE_BOUNDS_CHECK_EXPECT(((m_offset + 1) > m_bufferLength), false))
{
throw std::runtime_error("buffer too short for flyweight [E107]");
}
}
SettlPriceType(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion)
: SettlPriceType(buffer, 0, bufferLength, actingVersion) {}
SettlPriceType(
char *buffer,
const std::uint64_t bufferLength,
const std::uint64_t actingVersion) :
SettlPriceType(buffer, 0, bufferLength, actingVersion)
{
}
SettlPriceType(char *buffer, const std::uint64_t bufferLength)
: SettlPriceType(buffer, 0, bufferLength, sbeSchemaVersion()) {}
SettlPriceType(
char *buffer,
const std::uint64_t bufferLength) :
SettlPriceType(buffer, 0, bufferLength, sbeSchemaVersion())
{
}
SettlPriceType &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength) {
return *this =
SettlPriceType(buffer, offset, bufferLength, actingVersion);
}
SettlPriceType &wrap(
char *buffer,
const std::uint64_t offset,
const std::uint64_t actingVersion,
const std::uint64_t bufferLength)
{
return *this = SettlPriceType(buffer, offset, bufferLength, actingVersion);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t
encodedLength() SBE_NOEXCEPT {
return 1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint64_t encodedLength() SBE_NOEXCEPT
{
return 1;
}
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT { return m_offset; }
SBE_NODISCARD std::uint64_t offset() const SBE_NOEXCEPT
{
return m_offset;
}
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD const char *buffer() const SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD char *buffer() SBE_NOEXCEPT { return m_buffer; }
SBE_NODISCARD char *buffer() SBE_NOEXCEPT
{
return m_buffer;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT {
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t bufferLength() const SBE_NOEXCEPT
{
return m_bufferLength;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT {
return m_actingVersion;
}
SBE_NODISCARD std::uint64_t actingVersion() const SBE_NOEXCEPT
{
return m_actingVersion;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT {
return (std::uint16_t)1;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaId() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(1);
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t
sbeSchemaVersion() SBE_NOEXCEPT {
return (std::uint16_t)9;
}
SBE_NODISCARD static SBE_CONSTEXPR std::uint16_t sbeSchemaVersion() SBE_NOEXCEPT
{
return static_cast<std::uint16_t>(9);
}
SettlPriceType &clear() {
std::uint8_t zero = 0;
std::memcpy(m_buffer + m_offset, &zero, sizeof(std::uint8_t));
return *this;
}
SettlPriceType &clear()
{
std::uint8_t zero = 0;
std::memcpy(m_buffer + m_offset, &zero, sizeof(std::uint8_t));
return *this;
}
SBE_NODISCARD bool isEmpty() const {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return 0 == val;
}
SBE_NODISCARD bool isEmpty() const
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return 0 == val;
}
SBE_NODISCARD std::uint8_t rawValue() const {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return val;
}
SBE_NODISCARD std::uint8_t rawValue() const
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return val;
}
SettlPriceType &rawValue(std::uint8_t value) {
std::memcpy(m_buffer + m_offset, &value, sizeof(std::uint8_t));
return *this;
}
SettlPriceType &rawValue(std::uint8_t value)
{
std::memcpy(m_buffer + m_offset, &value, sizeof(std::uint8_t));
return *this;
}
static bool finalDaily(const std::uint8_t bits) {
return (bits & (1u << 0u)) != 0;
}
static bool finalDaily(const std::uint8_t bits)
{
return (bits & (static_cast<std::uint8_t>(1) << 0u)) != 0;
}
static std::uint8_t finalDaily(const std::uint8_t bits, const bool value) {
return value ? static_cast<std::uint8_t>(bits | (1u << 0u))
: static_cast<std::uint8_t>(bits & ~(1u << 0u));
}
static std::uint8_t finalDaily(const std::uint8_t bits, const bool value)
{
return value ? static_cast<std::uint8_t>(bits | (static_cast<std::uint8_t>(1) << 0u)) : static_cast<std::uint8_t>(bits & ~(static_cast<std::uint8_t>(1) << 0u));
}
SBE_NODISCARD bool finalDaily() const {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (1u << 0u)) != 0;
}
SBE_NODISCARD bool finalDaily() const
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (static_cast<std::uint8_t>(1) << 0u)) != 0;
}
SettlPriceType &finalDaily(const bool value) {
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits =
(value ? static_cast<std::uint8_t>((bits) | (1u << 0u))
: static_cast<std::uint8_t>((bits) & ~(1u << 0u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
SettlPriceType &finalDaily(const bool value)
{
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits = (value ? static_cast<std::uint8_t>((bits) | (static_cast<std::uint8_t>(1) << 0u)) : static_cast<std::uint8_t>((bits) & ~(static_cast<std::uint8_t>(1) << 0u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
static bool actual(const std::uint8_t bits) {
return (bits & (1u << 1u)) != 0;
}
static bool actual(const std::uint8_t bits)
{
return (bits & (static_cast<std::uint8_t>(1) << 1u)) != 0;
}
static std::uint8_t actual(const std::uint8_t bits, const bool value) {
return value ? static_cast<std::uint8_t>(bits | (1u << 1u))
: static_cast<std::uint8_t>(bits & ~(1u << 1u));
}
static std::uint8_t actual(const std::uint8_t bits, const bool value)
{
return value ? static_cast<std::uint8_t>(bits | (static_cast<std::uint8_t>(1) << 1u)) : static_cast<std::uint8_t>(bits & ~(static_cast<std::uint8_t>(1) << 1u));
}
SBE_NODISCARD bool actual() const {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (1u << 1u)) != 0;
}
SBE_NODISCARD bool actual() const
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (static_cast<std::uint8_t>(1) << 1u)) != 0;
}
SettlPriceType &actual(const bool value) {
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits =
(value ? static_cast<std::uint8_t>((bits) | (1u << 1u))
: static_cast<std::uint8_t>((bits) & ~(1u << 1u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
SettlPriceType &actual(const bool value)
{
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits = (value ? static_cast<std::uint8_t>((bits) | (static_cast<std::uint8_t>(1) << 1u)) : static_cast<std::uint8_t>((bits) & ~(static_cast<std::uint8_t>(1) << 1u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
static bool rounded(const std::uint8_t bits) {
return (bits & (1u << 2u)) != 0;
}
static bool rounded(const std::uint8_t bits)
{
return (bits & (static_cast<std::uint8_t>(1) << 2u)) != 0;
}
static std::uint8_t rounded(const std::uint8_t bits, const bool value) {
return value ? static_cast<std::uint8_t>(bits | (1u << 2u))
: static_cast<std::uint8_t>(bits & ~(1u << 2u));
}
static std::uint8_t rounded(const std::uint8_t bits, const bool value)
{
return value ? static_cast<std::uint8_t>(bits | (static_cast<std::uint8_t>(1) << 2u)) : static_cast<std::uint8_t>(bits & ~(static_cast<std::uint8_t>(1) << 2u));
}
SBE_NODISCARD bool rounded() const {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (1u << 2u)) != 0;
}
SBE_NODISCARD bool rounded() const
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (static_cast<std::uint8_t>(1) << 2u)) != 0;
}
SettlPriceType &rounded(const bool value) {
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits =
(value ? static_cast<std::uint8_t>((bits) | (1u << 2u))
: static_cast<std::uint8_t>((bits) & ~(1u << 2u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
SettlPriceType &rounded(const bool value)
{
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits = (value ? static_cast<std::uint8_t>((bits) | (static_cast<std::uint8_t>(1) << 2u)) : static_cast<std::uint8_t>((bits) & ~(static_cast<std::uint8_t>(1) << 2u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
static bool intraday(const std::uint8_t bits) {
return (bits & (1u << 3u)) != 0;
}
static bool intraday(const std::uint8_t bits)
{
return (bits & (static_cast<std::uint8_t>(1) << 3u)) != 0;
}
static std::uint8_t intraday(const std::uint8_t bits, const bool value) {
return value ? static_cast<std::uint8_t>(bits | (1u << 3u))
: static_cast<std::uint8_t>(bits & ~(1u << 3u));
}
static std::uint8_t intraday(const std::uint8_t bits, const bool value)
{
return value ? static_cast<std::uint8_t>(bits | (static_cast<std::uint8_t>(1) << 3u)) : static_cast<std::uint8_t>(bits & ~(static_cast<std::uint8_t>(1) << 3u));
}
SBE_NODISCARD bool intraday() const {
if (m_actingVersion < 4) {
return false;
}
SBE_NODISCARD bool intraday() const
{
if (m_actingVersion < 4)
{
return false;
}
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (1u << 3u)) != 0;
}
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (static_cast<std::uint8_t>(1) << 3u)) != 0;
}
SettlPriceType &intraday(const bool value) {
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits =
(value ? static_cast<std::uint8_t>((bits) | (1u << 3u))
: static_cast<std::uint8_t>((bits) & ~(1u << 3u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
SettlPriceType &intraday(const bool value)
{
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits = (value ? static_cast<std::uint8_t>((bits) | (static_cast<std::uint8_t>(1) << 3u)) : static_cast<std::uint8_t>((bits) & ~(static_cast<std::uint8_t>(1) << 3u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
static bool reservedBits(const std::uint8_t bits) {
return (bits & (1u << 4u)) != 0;
}
static bool reservedBits(const std::uint8_t bits)
{
return (bits & (static_cast<std::uint8_t>(1) << 4u)) != 0;
}
static std::uint8_t reservedBits(const std::uint8_t bits, const bool value) {
return value ? static_cast<std::uint8_t>(bits | (1u << 4u))
: static_cast<std::uint8_t>(bits & ~(1u << 4u));
}
static std::uint8_t reservedBits(const std::uint8_t bits, const bool value)
{
return value ? static_cast<std::uint8_t>(bits | (static_cast<std::uint8_t>(1) << 4u)) : static_cast<std::uint8_t>(bits & ~(static_cast<std::uint8_t>(1) << 4u));
}
SBE_NODISCARD bool reservedBits() const {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (1u << 4u)) != 0;
}
SBE_NODISCARD bool reservedBits() const
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (static_cast<std::uint8_t>(1) << 4u)) != 0;
}
SettlPriceType &reservedBits(const bool value) {
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits =
(value ? static_cast<std::uint8_t>((bits) | (1u << 4u))
: static_cast<std::uint8_t>((bits) & ~(1u << 4u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
SettlPriceType &reservedBits(const bool value)
{
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits = (value ? static_cast<std::uint8_t>((bits) | (static_cast<std::uint8_t>(1) << 4u)) : static_cast<std::uint8_t>((bits) & ~(static_cast<std::uint8_t>(1) << 4u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
static bool nullValue(const std::uint8_t bits) {
return (bits & (1u << 7u)) != 0;
}
static bool nullValue(const std::uint8_t bits)
{
return (bits & (static_cast<std::uint8_t>(1) << 7u)) != 0;
}
static std::uint8_t nullValue(const std::uint8_t bits, const bool value) {
return value ? static_cast<std::uint8_t>(bits | (1u << 7u))
: static_cast<std::uint8_t>(bits & ~(1u << 7u));
}
static std::uint8_t nullValue(const std::uint8_t bits, const bool value)
{
return value ? static_cast<std::uint8_t>(bits | (static_cast<std::uint8_t>(1) << 7u)) : static_cast<std::uint8_t>(bits & ~(static_cast<std::uint8_t>(1) << 7u));
}
SBE_NODISCARD bool nullValue() const {
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (1u << 7u)) != 0;
}
SBE_NODISCARD bool nullValue() const
{
std::uint8_t val;
std::memcpy(&val, m_buffer + m_offset, sizeof(std::uint8_t));
return ((val) & (static_cast<std::uint8_t>(1) << 7u)) != 0;
}
SettlPriceType &nullValue(const bool value) {
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits =
(value ? static_cast<std::uint8_t>((bits) | (1u << 7u))
: static_cast<std::uint8_t>((bits) & ~(1u << 7u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
SettlPriceType &nullValue(const bool value)
{
std::uint8_t bits;
std::memcpy(&bits, m_buffer + m_offset, sizeof(std::uint8_t));
bits = (value ? static_cast<std::uint8_t>((bits) | (static_cast<std::uint8_t>(1) << 7u)) : static_cast<std::uint8_t>((bits) & ~(static_cast<std::uint8_t>(1) << 7u)));
std::memcpy(m_buffer + m_offset, &bits, sizeof(std::uint8_t));
return *this;
}
template <typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits> &operator<<(
std::basic_ostream<CharT, Traits> &builder, SettlPriceType writer) {
builder << '[';
bool atLeastOne = false;
if (writer.finalDaily()) {
builder << R"("finalDaily")";
atLeastOne = true;
}
if (writer.actual()) {
if (atLeastOne) {
builder << ",";
}
builder << R"("actual")";
atLeastOne = true;
}
if (writer.rounded()) {
if (atLeastOne) {
builder << ",";
}
builder << R"("rounded")";
atLeastOne = true;
}
if (writer.intraday()) {
if (atLeastOne) {
builder << ",";
}
builder << R"("intraday")";
atLeastOne = true;
}
if (writer.reservedBits()) {
if (atLeastOne) {
builder << ",";
}
builder << R"("reservedBits")";
atLeastOne = true;
}
if (writer.nullValue()) {
if (atLeastOne) {
builder << ",";
}
builder << R"("nullValue")";
}
builder << ']';
return builder;
}
template<typename CharT, typename Traits>
friend std::basic_ostream<CharT, Traits>& operator << (
std::basic_ostream<CharT, Traits>& builder, SettlPriceType writer)
{
builder << '[';
bool atLeastOne = false;
if (writer.finalDaily())
{
builder << R"("finalDaily")";
atLeastOne = true;
}
if (writer.actual())
{
if (atLeastOne)
{
builder << ",";
}
builder << R"("actual")";
atLeastOne = true;
}
if (writer.rounded())
{
if (atLeastOne)
{
builder << ",";
}
builder << R"("rounded")";
atLeastOne = true;
}
if (writer.intraday())
{
if (atLeastOne)
{
builder << ",";
}
builder << R"("intraday")";
atLeastOne = true;
}
if (writer.reservedBits())
{
if (atLeastOne)
{
builder << ",";
}
builder << R"("reservedBits")";
atLeastOne = true;
}
if (writer.nullValue())
{
if (atLeastOne)
{
builder << ",";
}
builder << R"("nullValue")";
}
builder << ']';
return builder;
}
};
} // namespace mdp3
}
#endif
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -4,21 +4,22 @@
# To update ilinkbinary.xml:
# ---------------------------
# The dissemination scheme is described here:
# https://cmegroup.com/confluence/display/EPICSANDBOX/iLink+3+-+Simple+Binary+Encoding#iLink3SimpleBinaryEncoding-SchemaDistribution
# https://cmegroup.com/confluence/display/EPICSANDBOX/iLink+3+-+Simple+Binary+Encoding#iLink3SimpleBinaryEncoding-SchemaDistribution
# The actual files are stored here:
# sftp cmeconfig@sftpng.cmegroup.com
# password: G3t(0nnect3d
# get /MSGW/NRCert/Templates/ilinkbinary.xml
# sftp cmeconfig@sftpng.cmegroup.com
# password: G3t(0nnect3d
# Get one of:
# /MSGW/NRCert/Templates/ilinkbinary.xml
# /MSGW/Cert/Templates/ilinkbinary.xml
# /MSGW/Production/Templates/ilinkbinary.xml
# And update the corresponding nrcert, cert or prod directories
# ---------------------------
# To generate CPP
# ---------------------------
# Download sbe-all-[version].jar from sbe-logic github.
# Pre-built packages are available at https://search.maven.org/search?q=g:uk.co.real-logic%20sbe
# Run the docker command below which will download a jave acontainer
# and execute the jar.
# Obtain sbe-all-[version].jar from sbe-logic github.
# Pre-built packages are available at https://search.maven.org/search?q=g:uk.co.real-logic%20sbe
# Run the docker command below which will execute the jar in a java docker container
RELEASE_TYPE=${1:-prod}
SBE_VERSION=1.20.4
@@ -29,18 +30,6 @@ cd $MY_DIR
rm -rf src
mkdir -p src
# docker run --rm -it -w $PWD \
# -v $PWD \
# -v /etc/group:/etc/group \
# -v /etc/passwd:/etc/passwd \
# -u $UID \
# java \
# java -Dsbe.output.dir=src \
# -Dsbe.generate.ir="false" \
# -Dsbe.target.language=cpp \
# -jar ./sbe-all-$SBE_VERSION.jar \
# $RELEASE_TYPE/ilinkbinary.xml
docker run --rm -it -w $PWD \
-v /home:/home \
-v /etc/group:/etc/group \
@@ -49,9 +38,10 @@ docker run --rm -it -w $PWD \
java \
java -Dsbe.output.dir=src \
-Dsbe.generate.ir="false" \
-Dsbe.target.namespace="il3" \
-Dsbe.target.language=cpp \
-jar ./sbe-all-$SBE_VERSION.jar \
$RELEASE_TYPE/ilinkbinary.xml
mv src/iLinkBinary/* src/
rmdir src/iLinkBinary/
mv src/il3/* src/
rmdir src/il3/
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_AVGPXIND_H_
#define _ILINKBINARY_AVGPXIND_H_
#ifndef _IL3_AVGPXIND_H_
#define _IL3_AVGPXIND_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -87,7 +87,7 @@
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace iLinkBinary {
namespace il3 {
class AvgPxInd
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_BOOLEANFLAG_H_
#define _ILINKBINARY_BOOLEANFLAG_H_
#ifndef _IL3_BOOLEANFLAG_H_
#define _IL3_BOOLEANFLAG_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -87,7 +87,7 @@
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace iLinkBinary {
namespace il3 {
class BooleanFlag
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_BOOLEANNULL_H_
#define _ILINKBINARY_BOOLEANNULL_H_
#ifndef _IL3_BOOLEANNULL_H_
#define _IL3_BOOLEANNULL_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -87,7 +87,7 @@
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace iLinkBinary {
namespace il3 {
class BooleanNULL
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_BUSINESSREJECT521_H_
#define _ILINKBINARY_BUSINESSREJECT521_H_
#ifndef _IL3_BUSINESSREJECT521_H_
#define _IL3_BUSINESSREJECT521_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -147,7 +147,7 @@
#include "ExecMode.h"
#include "QuoteTyp.h"
namespace iLinkBinary {
namespace il3 {
class BusinessReject521
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_CLEARINGACCTTYPE_H_
#define _ILINKBINARY_CLEARINGACCTTYPE_H_
#ifndef _IL3_CLEARINGACCTTYPE_H_
#define _IL3_CLEARINGACCTTYPE_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -87,7 +87,7 @@
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace iLinkBinary {
namespace il3 {
class ClearingAcctType
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_CMTAGIVEUPCD_H_
#define _ILINKBINARY_CMTAGIVEUPCD_H_
#ifndef _IL3_CMTAGIVEUPCD_H_
#define _IL3_CMTAGIVEUPCD_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -87,7 +87,7 @@
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace iLinkBinary {
namespace il3 {
class CmtaGiveUpCD
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_CUSTORDHANDLINST_H_
#define _ILINKBINARY_CUSTORDHANDLINST_H_
#ifndef _IL3_CUSTORDHANDLINST_H_
#define _IL3_CUSTORDHANDLINST_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -87,7 +87,7 @@
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace iLinkBinary {
namespace il3 {
class CustOrdHandlInst
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_CUSTORDERCAPACITY_H_
#define _ILINKBINARY_CUSTORDERCAPACITY_H_
#ifndef _IL3_CUSTORDERCAPACITY_H_
#define _IL3_CUSTORDERCAPACITY_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -87,7 +87,7 @@
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace iLinkBinary {
namespace il3 {
class CustOrderCapacity
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_DATA_H_
#define _ILINKBINARY_DATA_H_
#ifndef _IL3_DATA_H_
#define _IL3_DATA_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -87,7 +87,7 @@
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace iLinkBinary {
namespace il3 {
class DATA
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_DKREASON_H_
#define _ILINKBINARY_DKREASON_H_
#ifndef _IL3_DKREASON_H_
#define _IL3_DKREASON_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -87,7 +87,7 @@
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace iLinkBinary {
namespace il3 {
class DKReason
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_DECIMAL32NULL_H_
#define _ILINKBINARY_DECIMAL32NULL_H_
#ifndef _IL3_DECIMAL32NULL_H_
#define _IL3_DECIMAL32NULL_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -87,7 +87,7 @@
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace iLinkBinary {
namespace il3 {
class Decimal32NULL
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_DECIMAL64NULL_H_
#define _ILINKBINARY_DECIMAL64NULL_H_
#ifndef _IL3_DECIMAL64NULL_H_
#define _IL3_DECIMAL64NULL_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -87,7 +87,7 @@
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace iLinkBinary {
namespace il3 {
class Decimal64NULL
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_ESTABLISH503_H_
#define _ILINKBINARY_ESTABLISH503_H_
#ifndef _IL3_ESTABLISH503_H_
#define _IL3_ESTABLISH503_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -147,7 +147,7 @@
#include "ExecMode.h"
#include "QuoteTyp.h"
namespace iLinkBinary {
namespace il3 {
class Establish503
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_ESTABLISHMENTACK504_H_
#define _ILINKBINARY_ESTABLISHMENTACK504_H_
#ifndef _IL3_ESTABLISHMENTACK504_H_
#define _IL3_ESTABLISHMENTACK504_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -147,7 +147,7 @@
#include "ExecMode.h"
#include "QuoteTyp.h"
namespace iLinkBinary {
namespace il3 {
class EstablishmentAck504
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_ESTABLISHMENTREJECT505_H_
#define _ILINKBINARY_ESTABLISHMENTREJECT505_H_
#ifndef _IL3_ESTABLISHMENTREJECT505_H_
#define _IL3_ESTABLISHMENTREJECT505_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -147,7 +147,7 @@
#include "ExecMode.h"
#include "QuoteTyp.h"
namespace iLinkBinary {
namespace il3 {
class EstablishmentReject505
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXECACKSTATUS_H_
#define _ILINKBINARY_EXECACKSTATUS_H_
#ifndef _IL3_EXECACKSTATUS_H_
#define _IL3_EXECACKSTATUS_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -87,7 +87,7 @@
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace iLinkBinary {
namespace il3 {
class ExecAckStatus
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXECINST_H_
#define _ILINKBINARY_EXECINST_H_
#ifndef _IL3_EXECINST_H_
#define _IL3_EXECINST_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -87,7 +87,7 @@
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace iLinkBinary {
namespace il3 {
class ExecInst
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXECMODE_H_
#define _ILINKBINARY_EXECMODE_H_
#ifndef _IL3_EXECMODE_H_
#define _IL3_EXECMODE_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -87,7 +87,7 @@
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace iLinkBinary {
namespace il3 {
class ExecMode
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXECREASON_H_
#define _ILINKBINARY_EXECREASON_H_
#ifndef _IL3_EXECREASON_H_
#define _IL3_EXECREASON_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -87,7 +87,7 @@
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace iLinkBinary {
namespace il3 {
class ExecReason
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXECTYPTRDCXL_H_
#define _ILINKBINARY_EXECTYPTRDCXL_H_
#ifndef _IL3_EXECTYPTRDCXL_H_
#define _IL3_EXECTYPTRDCXL_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -87,7 +87,7 @@
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace iLinkBinary {
namespace il3 {
class ExecTypTrdCxl
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXECUTIONACK539_H_
#define _ILINKBINARY_EXECUTIONACK539_H_
#ifndef _IL3_EXECUTIONACK539_H_
#define _IL3_EXECUTIONACK539_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -147,7 +147,7 @@
#include "ExecMode.h"
#include "QuoteTyp.h"
namespace iLinkBinary {
namespace il3 {
class ExecutionAck539
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXECUTIONREPORTCANCEL534_H_
#define _ILINKBINARY_EXECUTIONREPORTCANCEL534_H_
#ifndef _IL3_EXECUTIONREPORTCANCEL534_H_
#define _IL3_EXECUTIONREPORTCANCEL534_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -147,7 +147,7 @@
#include "ExecMode.h"
#include "QuoteTyp.h"
namespace iLinkBinary {
namespace il3 {
class ExecutionReportCancel534
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXECUTIONREPORTELIMINATION524_H_
#define _ILINKBINARY_EXECUTIONREPORTELIMINATION524_H_
#ifndef _IL3_EXECUTIONREPORTELIMINATION524_H_
#define _IL3_EXECUTIONREPORTELIMINATION524_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -147,7 +147,7 @@
#include "ExecMode.h"
#include "QuoteTyp.h"
namespace iLinkBinary {
namespace il3 {
class ExecutionReportElimination524
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXECUTIONREPORTMODIFY531_H_
#define _ILINKBINARY_EXECUTIONREPORTMODIFY531_H_
#ifndef _IL3_EXECUTIONREPORTMODIFY531_H_
#define _IL3_EXECUTIONREPORTMODIFY531_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -147,7 +147,7 @@
#include "ExecMode.h"
#include "QuoteTyp.h"
namespace iLinkBinary {
namespace il3 {
class ExecutionReportModify531
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXECUTIONREPORTNEW522_H_
#define _ILINKBINARY_EXECUTIONREPORTNEW522_H_
#ifndef _IL3_EXECUTIONREPORTNEW522_H_
#define _IL3_EXECUTIONREPORTNEW522_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -147,7 +147,7 @@
#include "ExecMode.h"
#include "QuoteTyp.h"
namespace iLinkBinary {
namespace il3 {
class ExecutionReportNew522
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXECUTIONREPORTREJECT523_H_
#define _ILINKBINARY_EXECUTIONREPORTREJECT523_H_
#ifndef _IL3_EXECUTIONREPORTREJECT523_H_
#define _IL3_EXECUTIONREPORTREJECT523_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -147,7 +147,7 @@
#include "ExecMode.h"
#include "QuoteTyp.h"
namespace iLinkBinary {
namespace il3 {
class ExecutionReportReject523
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXECUTIONREPORTSTATUS532_H_
#define _ILINKBINARY_EXECUTIONREPORTSTATUS532_H_
#ifndef _IL3_EXECUTIONREPORTSTATUS532_H_
#define _IL3_EXECUTIONREPORTSTATUS532_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -147,7 +147,7 @@
#include "ExecMode.h"
#include "QuoteTyp.h"
namespace iLinkBinary {
namespace il3 {
class ExecutionReportStatus532
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXECUTIONREPORTTRADEADDENDUMOUTRIGHT548_H_
#define _ILINKBINARY_EXECUTIONREPORTTRADEADDENDUMOUTRIGHT548_H_
#ifndef _IL3_EXECUTIONREPORTTRADEADDENDUMOUTRIGHT548_H_
#define _IL3_EXECUTIONREPORTTRADEADDENDUMOUTRIGHT548_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -147,7 +147,7 @@
#include "ExecMode.h"
#include "QuoteTyp.h"
namespace iLinkBinary {
namespace il3 {
class ExecutionReportTradeAddendumOutright548
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXECUTIONREPORTTRADEADDENDUMSPREAD549_H_
#define _ILINKBINARY_EXECUTIONREPORTTRADEADDENDUMSPREAD549_H_
#ifndef _IL3_EXECUTIONREPORTTRADEADDENDUMSPREAD549_H_
#define _IL3_EXECUTIONREPORTTRADEADDENDUMSPREAD549_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -147,7 +147,7 @@
#include "ExecMode.h"
#include "QuoteTyp.h"
namespace iLinkBinary {
namespace il3 {
class ExecutionReportTradeAddendumSpread549
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXECUTIONREPORTTRADEADDENDUMSPREADLEG550_H_
#define _ILINKBINARY_EXECUTIONREPORTTRADEADDENDUMSPREADLEG550_H_
#ifndef _IL3_EXECUTIONREPORTTRADEADDENDUMSPREADLEG550_H_
#define _IL3_EXECUTIONREPORTTRADEADDENDUMSPREADLEG550_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -147,7 +147,7 @@
#include "ExecMode.h"
#include "QuoteTyp.h"
namespace iLinkBinary {
namespace il3 {
class ExecutionReportTradeAddendumSpreadLeg550
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXECUTIONREPORTTRADEOUTRIGHT525_H_
#define _ILINKBINARY_EXECUTIONREPORTTRADEOUTRIGHT525_H_
#ifndef _IL3_EXECUTIONREPORTTRADEOUTRIGHT525_H_
#define _IL3_EXECUTIONREPORTTRADEOUTRIGHT525_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -147,7 +147,7 @@
#include "ExecMode.h"
#include "QuoteTyp.h"
namespace iLinkBinary {
namespace il3 {
class ExecutionReportTradeOutright525
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXECUTIONREPORTTRADESPREAD526_H_
#define _ILINKBINARY_EXECUTIONREPORTTRADESPREAD526_H_
#ifndef _IL3_EXECUTIONREPORTTRADESPREAD526_H_
#define _IL3_EXECUTIONREPORTTRADESPREAD526_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -147,7 +147,7 @@
#include "ExecMode.h"
#include "QuoteTyp.h"
namespace iLinkBinary {
namespace il3 {
class ExecutionReportTradeSpread526
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXECUTIONREPORTTRADESPREADLEG527_H_
#define _ILINKBINARY_EXECUTIONREPORTTRADESPREADLEG527_H_
#ifndef _IL3_EXECUTIONREPORTTRADESPREADLEG527_H_
#define _IL3_EXECUTIONREPORTTRADESPREADLEG527_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -147,7 +147,7 @@
#include "ExecMode.h"
#include "QuoteTyp.h"
namespace iLinkBinary {
namespace il3 {
class ExecutionReportTradeSpreadLeg527
{
@@ -1,6 +1,6 @@
/* Generated SBE (Simple Binary Encoding) message codec */
#ifndef _ILINKBINARY_EXPCYCLE_H_
#define _ILINKBINARY_EXPCYCLE_H_
#ifndef _IL3_EXPCYCLE_H_
#define _IL3_EXPCYCLE_H_
#if defined(SBE_HAVE_CMATH)
/* cmath needed for std::numeric_limits<double>::quiet_NaN() */
@@ -87,7 +87,7 @@
#define SBE_NULLVALUE_UINT64 (std::numeric_limits<std::uint64_t>::max)()
namespace iLinkBinary {
namespace il3 {
class ExpCycle
{
Loaded 100 of 173 files, more files were not shown because too many files have changed in this diff. Show more