OnixS C++ ICE Binary Order Entry Handler 1.1.1
API Documentation
Loading...
Searching...
No Matches
NewOrderCrossRequest Struct Reference

Classes

struct  LegsEntry
struct  SidesEntry

Public Types

enum  
typedef SchemaTraits Schema
typedef NewOrderCrossRequest ThisType
typedef SbeGroup< SidesEntry, GroupSizeEncoding, MessageSizeSides
typedef SbeGroup< LegsEntry, GroupSizeEncoding, MessageSizeLegs
Public Types inherited from SbeMessage
typedef MessageSize EncodedLength
typedef MessageSize BlockLength

Public Member Functions

 NewOrderCrossRequest ()=default
 NewOrderCrossRequest (void *data, EncodedLength length, SchemaVersion version=Schema::Version)
 NewOrderCrossRequest (void *data, EncodedLength length, NoFieldsInit, SchemaVersion version=Schema::Version)
 NewOrderCrossRequest (void *data, EncodedLength length, NoInit)
 NewOrderCrossRequest (SbeMessage message)
 NewOrderCrossRequest (void *data, EncodedLength length, NoInit, NoCheck) noexcept
auto price () const noexcept
ThisTypeprice (Decimal9 value) noexcept
auto orderQty () const noexcept
ThisTypeorderQty (Decimal9 value) noexcept
auto symbol () const noexcept
ThisTypesymbol (Int32 value) noexcept
auto originatorUserId () const noexcept
ThisTypeoriginatorUserId (StrRef value) noexcept
auto ordType () const noexcept
ThisTypeordType (OrderTypeEnum value) noexcept
auto crossId () const noexcept
ThisTypecrossId (Int64 value) noexcept
auto crossType () const noexcept
ThisTypecrossType (CrossTypeEnum value) noexcept
auto tradeType () const noexcept
ThisTypetradeType (StrRef value) noexcept
ThisTypetradeType (NullOpt) noexcept
auto execInst () const noexcept
ThisTypeexecInst (ExecInstEnum value) noexcept
ThisTypeexecInst (NullOpt) noexcept
auto priceType () const noexcept
ThisTypepriceType (PriceTypeEnum value) noexcept
ThisTypepriceType (NullOpt) noexcept
auto bypassMQR () const noexcept
ThisTypebypassMQR (BooleanEnum value) noexcept
ThisTypebypassMQR (NullOpt) noexcept
auto hedgeOnly () const noexcept
ThisTypehedgeOnly (BooleanEnum value) noexcept
ThisTypehedgeOnly (NullOpt) noexcept
auto benchmarkPrice () const noexcept
ThisTypebenchmarkPrice (Decimal9 value) noexcept
ThisTypebenchmarkPrice (NullOpt) noexcept
auto benchMarkPriceType () const noexcept
ThisTypebenchMarkPriceType (BenchmarkPriceTypeEnum value) noexcept
ThisTypebenchMarkPriceType (NullOpt) noexcept
auto timeInForce () const noexcept
ThisTypetimeInForce (TimeInForceEnum value) noexcept
auto transactDetails () const noexcept
ThisTypetransactDetails (StrRef value) noexcept
ThisTypetransactDetails (NullOpt) noexcept
auto transactTime () const noexcept(ticksToTimestamp::Nothrow)
ThisTypetransactTime (Timestamp value) noexcept(timestampToTicks::Nothrow)
Sides sides () const noexcept
Sides sides () noexcept
Sides sides (Sides::Size length)
Sides sides (Sides::Size length, NoFieldsInit)
Legs legs () const noexcept
Legs legs () noexcept
Legs legs (Legs::Size length)
Legs legs (Legs::Size length, NoFieldsInit)
ThisTyperesetVariableFields () noexcept
ThisTypereset () noexcept
std::string toString () const
const void * tail () const noexcept
EncodedLength calculateBinarySize () const noexcept
Public Member Functions inherited from SbeMessage
 SbeMessage () noexcept
 SbeMessage (void *data, MessageSize size, SchemaVersion version)
 SbeMessage (void *data, MessageSize size)
 SbeMessage (void *data, MessageSize size, NoCheck) noexcept
void clear () noexcept
bool valid () const noexcept
 operator bool () const noexcept
MessageTemplateId templateId () const noexcept
SchemaVersion version () const noexcept
SchemaId schemaId () const noexcept
SequenceId sequenceId () const noexcept
SbeMessagesequenceId (SequenceId value) noexcept
Timestamp sendTime () const noexcept
SbeMessagesendTime (Timestamp value) noexcept
HeaderFlags headerFlags () const noexcept
SbeMessageheaderFlags (HeaderFlags value) noexcept
const void * binary () const noexcept
void * binary () noexcept
const void * blockEnd () noexcept
const void * blockEnd () const noexcept
MessageSize bufferSize () const noexcept
void * body () noexcept
BlockLength blockLength () const noexcept
const void * block () const noexcept
void * block () noexcept
Public Member Functions inherited from SbeFields< Messaging::SbeMessage, MessageSize >
ONIXS_ICEBOE_FORCEINLINE Messaging::SbeMessagecontainer () noexcept
void zeroPaddingBytes (MessageSize offset) noexcept
ONIXS_ICEBOE_FORCEINLINE void setOrdinary (MessageSize offset, FieldValue value) noexcept
ONIXS_ICEBOE_FORCEINLINE void setEnumeration (MessageSize offset, Enumeration value) noexcept
ONIXS_ICEBOE_FORCEINLINE void setFixedStr (MessageSize offset, StrRef value) noexcept

Static Public Member Functions

static constexpr BlockLength minimalBlockLength (SchemaVersion version) noexcept
static constexpr BlockLength blockLength (SchemaVersion version) noexcept
static constexpr MessageSize getMinimalVariableFieldsSize (SchemaVersion version)
static constexpr UInt64 getMaxMessageSize (UInt8 maxGroupItems=255) noexcept
static constexpr StrRef className () noexcept
static constexpr StrRef fixType () noexcept

Additional Inherited Members

Protected Types inherited from SbeMessage
typedef SbeGroupList< MessageSizeGroupList
typedef SbeVariableLengthFieldList< MessageSizeVariableLengthFieldList
Protected Member Functions inherited from SbeMessage
SbeMessageversion (SchemaVersion version) noexcept
GroupList groups () noexcept
GroupList groups () const noexcept
template<typename Group>
void initGroup (Group &group, typename Group::EntrySize entrySize) noexcept
template<typename Group>
void setupGroup (Group &group, typename Group::Size entryCount, const void *messageTail)
template<typename Group>
void constructGroup (Group &group, typename Group::Size entryCount, const void *messageTail)
template<typename DATA>
void setVarDataField (DATA &data, StrRef value, const void *oldMessageTail)
VariableLengthFieldList variableLengthFields () noexcept
VariableLengthFieldList variableLengthFields () const noexcept
void init (MessageHeader::TemplateId value, MessageHeader::BlockLength minimalBlockLength, MessageHeader::BlockLength blockLength, SchemaId id) noexcept
MessageSize calculateBinarySize (const void *tail) const noexcept
template<class Callable, class Owner>
void setVariableLengthField (Callable callable, StrRef value, Owner &owner)
template<class Callable, class Owner>
void setVariableLengthField (Callable callable, StrRef value, SchemaVersion since, Owner &owner)
template<class Callable, class Owner>
StrRef getVariableLengthField (Callable callable, const Owner &owner) const noexcept
template<class Callable, class Owner>
StrRef getVariableLengthField (Callable callable, SchemaVersion since, Owner &owner) const noexcept
template<class Callable, class Owner>
void setVariableLengthFieldToNull (Callable callable, Owner &owner) noexcept
template<class Group, class Callable, class Owner>
void resetGroup (Callable callable, Owner &owner) noexcept
template<class Callable, class Owner>
void setVariableLengthFieldToNull (Callable callable, SchemaVersion since, Owner &owner) noexcept
template<class Group, class Callable, class Owner>
void resetGroup (Callable callable, SchemaVersion since, Owner &owner)
template<class Group, class Callable, class Owner>
ONIXS_ICEBOE_FORCEINLINE Group getGroup (Callable callable, Owner &owner) const noexcept
template<class Group, class Callable, class Owner>
ONIXS_ICEBOE_FORCEINLINE Group getGroup (Callable callable, SchemaVersion since, Owner &owner) const noexcept
template<class Group, class Callable, class Owner>
ONIXS_ICEBOE_FORCEINLINE Group constructGroup (Callable callable, typename Group::Size length, SchemaVersion since, Owner &owner)
template<class Group, class Callable, class Owner>
ONIXS_ICEBOE_FORCEINLINE Group constructGroup (Callable callable, typename Group::Size length, Owner &owner)
template<class Group, class Callable, class Owner>
Group setupGroup (Callable callable, typename Group::Size length, SchemaVersion since, Owner &owner)
template<class Group, class Callable, class Owner>
Group setupGroup (Callable callable, typename Group::Size length, Owner &owner)
Protected Member Functions inherited from SbeFields< Messaging::SbeMessage, MessageSize >
 SbeFields ()=default
 ~SbeFields ()=default
Protected Member Functions inherited from BinaryBlock< Messaging::SbeMessage, MessageSize >
 BinaryBlock ()=default
 ~BinaryBlock ()=default
ONIXS_ICEBOE_FORCEINLINE Value ordinary (MessageSize offset) const noexcept
ONIXS_ICEBOE_FORCEINLINE Enumeration enumeration (MessageSize offset) const noexcept
ONIXS_ICEBOE_FORCEINLINE StrRef fixedStr (MessageSize offset) const noexcept
ONIXS_ICEBOE_FORCEINLINE Value decimal (MessageSize offset) const noexcept
ONIXS_ICEBOE_FORCEINLINE std::enable_if<!isComposite< typenameNullValue::Value >::value, SbeOptionalConverted< decltype(std::declval< Callable >()(std::declval< typenameArgType< Callable >::type >()))> >::type convertible (MessageSize offset, OptionalTag) const noexcept(noexcept(Callable::Nothrow))
Protected Member Functions inherited from BinaryBlockBase
 ~BinaryBlockBase ()=default
Static Protected Member Functions inherited from SbeMessage
static constexpr MessageSize getMaxMessageSize () noexcept

Detailed Description

Definition at line 12942 of file Messages.h.

Member Typedef Documentation

◆ Legs

Repeating group containing LegsEntry entries.

Definition at line 13959 of file Messages.h.

◆ Schema

Used template schema.

Definition at line 12947 of file Messages.h.

◆ Sides

Repeating group containing SidesEntry entries.

Definition at line 13670 of file Messages.h.

◆ ThisType

This type alias.

Definition at line 12950 of file Messages.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Message template ID from SBE schema.

Enumerator
TemplateId 

Definition at line 12953 of file Messages.h.

12953{ TemplateId = 8 };

Constructor & Destructor Documentation

◆ NewOrderCrossRequest() [1/6]

NewOrderCrossRequest ( )
default

Initializes a blank instance.

◆ NewOrderCrossRequest() [2/6]

NewOrderCrossRequest ( void * data,
EncodedLength length,
SchemaVersion version = Schema::Version )
inline

Initializes an instance over the given memory block.

Definition at line 13965 of file Messages.h.

13966 : SbeMessage(data, length, version)
13967 {
13968 checkVersion<Schema>(version);
13969 checkLength(length, version);
13970 init(TemplateId, minimalBlockLength(version), blockLength(version), Schema::Id);
13971 reset();
13972 }

◆ NewOrderCrossRequest() [3/6]

NewOrderCrossRequest ( void * data,
EncodedLength length,
NoFieldsInit ,
SchemaVersion version = Schema::Version )
inline

Initializes an instance over the given memory block With no variable-length fields initialization It is assumed that the user does such an initialization manually.

Definition at line 13977 of file Messages.h.

13978 : SbeMessage(data, length, version)
13979 {
13980 checkVersion<Schema>(version);
13981 checkLength(length, version);
13982 init(TemplateId, minimalBlockLength(version), blockLength(version), Schema::Id);
13983 resetVariableFields();
13984 }

◆ NewOrderCrossRequest() [4/6]

NewOrderCrossRequest ( void * data,
EncodedLength length,
NoInit  )
inline

Creates an instance over the given memory block.

Definition at line 13987 of file Messages.h.

13988 : SbeMessage(data, length)
13989 {
13990 checkCompatibility();
13991 }

◆ NewOrderCrossRequest() [5/6]

NewOrderCrossRequest ( SbeMessage message)
inlineexplicit

Creates an instance over the given SBE message.

Definition at line 13995 of file Messages.h.

13996 : SbeMessage(message)
13997 {
13998 assert(message.valid());
13999
14000 checkCompatibility();
14001 }

◆ NewOrderCrossRequest() [6/6]

NewOrderCrossRequest ( void * data,
EncodedLength length,
NoInit ,
NoCheck  )
inlinenoexcept

Creates an instance over the given memory block.

Performs no checks.

Definition at line 14005 of file Messages.h.

14006 : SbeMessage(data, length, NoCheck())
14007 {
14008 assert(schemaId() == Schema::Id);
14009 assert(version() >= Schema::MinimalVersion);
14010 assert(TemplateId == templateId());
14011 }
const char * version() noexcept

Member Function Documentation

◆ benchmarkPrice() [1/3]

auto benchmarkPrice ( ) const
inlinenoexcept

Quantity, Price with constant exponent -9.

Definition at line 14276 of file Messages.h.

14277 {
14278 constexpr BlockLength offset = 57;
14279
14280 return ordinary<NullDecimal9>(offset, optional);
14281 }

◆ benchmarkPrice() [2/3]

ThisType & benchmarkPrice ( Decimal9 value)
inlinenoexcept

Quantity, Price with constant exponent -9.

Definition at line 14284 of file Messages.h.

14285 {
14286 constexpr BlockLength offset = 57;
14287
14288 setOrdinary(offset, value);
14289 return *this;
14290 }

◆ benchmarkPrice() [3/3]

ThisType & benchmarkPrice ( NullOpt )
inlinenoexcept

Definition at line 14292 of file Messages.h.

14293 {
14294 constexpr BlockLength offset = 57;
14295
14296 setOrdinary(offset, NullDecimal9());
14297 return *this;
14298 }
IntegralConstant< Int64, -9223372036854775807LL-1 > NullDecimal9
Null value for an optional Decimal9 field.
Definition Fields.h:958

◆ benchMarkPriceType() [1/3]

auto benchMarkPriceType ( ) const
inlinenoexcept

uint8NULL.

Definition at line 14302 of file Messages.h.

14303 {
14304 constexpr BlockLength offset = 65;
14305
14306 return enumeration<BenchmarkPriceTypeEnum, NullUint8NULL>(offset, optional);
14307 }

◆ benchMarkPriceType() [2/3]

ThisType & benchMarkPriceType ( BenchmarkPriceTypeEnum value)
inlinenoexcept

uint8NULL.

Definition at line 14310 of file Messages.h.

14311 {
14312 constexpr BlockLength offset = 65;
14313
14314 setEnumeration<BenchmarkPriceTypeEnum>(offset, value);
14315 return *this;
14316 }

◆ benchMarkPriceType() [3/3]

ThisType & benchMarkPriceType ( NullOpt )
inlinenoexcept

Definition at line 14318 of file Messages.h.

14319 {
14320 constexpr BlockLength offset = 65;
14321
14322 setOrdinary(offset, NullUint8NULL());
14323 return *this;
14324 }
IntegralConstant< UInt8, 255 > NullUint8NULL
Null value for an optional Uint8NULL field.
Definition Fields.h:1006

◆ blockLength()

constexpr BlockLength blockLength ( SchemaVersion version)
inlinestaticconstexprnoexcept

Size of message body in bytes.

Definition at line 14471 of file Messages.h.

14472 {
14473 return
14474 ONIXS_ICEBOE_ASSERT(version >= Schema::MinimalVersion),
14475 minimalBlockLength(version);
14476 }

◆ bypassMQR() [1/3]

auto bypassMQR ( ) const
inlinenoexcept

uint8NULL.

Definition at line 14224 of file Messages.h.

14225 {
14226 constexpr BlockLength offset = 55;
14227
14228 return enumeration<BooleanEnum, NullUint8NULL>(offset, optional);
14229 }

◆ bypassMQR() [2/3]

ThisType & bypassMQR ( BooleanEnum value)
inlinenoexcept

uint8NULL.

Definition at line 14232 of file Messages.h.

14233 {
14234 constexpr BlockLength offset = 55;
14235
14236 setEnumeration<BooleanEnum>(offset, value);
14237 return *this;
14238 }

◆ bypassMQR() [3/3]

ThisType & bypassMQR ( NullOpt )
inlinenoexcept

Definition at line 14240 of file Messages.h.

14241 {
14242 constexpr BlockLength offset = 55;
14243
14244 setOrdinary(offset, NullUint8NULL());
14245 return *this;
14246 }

◆ calculateBinarySize()

EncodedLength calculateBinarySize ( ) const
inlinenoexcept
Returns
the size occupied by the message.

Definition at line 14554 of file Messages.h.

14555 {
14556 return
14557 SbeMessage::calculateBinarySize(tail());
14558 }

◆ className()

constexpr StrRef className ( )
inlinestaticconstexprnoexcept
Returns
class name.

Definition at line 14527 of file Messages.h.

14528 {
14529 return constructStrRef("NewOrderCrossRequest");
14530 }
constexpr StrRef constructStrRef(const char(&value)[Size]) noexcept
Definition StrRef.h:414

◆ crossId() [1/2]

auto crossId ( ) const
inlinenoexcept

Provides access to crossID field.

Definition at line 14107 of file Messages.h.

14108 {
14109 constexpr BlockLength offset = 41;
14110
14111 return ordinary<Int64>(offset);
14112 }

◆ crossId() [2/2]

ThisType & crossId ( Int64 value)
inlinenoexcept

Provides access to crossID field.

Definition at line 14115 of file Messages.h.

14116 {
14117 constexpr BlockLength offset = 41;
14118
14119 setOrdinary(offset, value);
14120 return *this;
14121 }

◆ crossType() [1/2]

auto crossType ( ) const
inlinenoexcept

Provides access to crossType field.

Definition at line 14125 of file Messages.h.

14126 {
14127 constexpr BlockLength offset = 49;
14128
14129 return enumeration<CrossTypeEnum>(offset);
14130 }

◆ crossType() [2/2]

ThisType & crossType ( CrossTypeEnum value)
inlinenoexcept

Provides access to crossType field.

Definition at line 14133 of file Messages.h.

14134 {
14135 constexpr BlockLength offset = 49;
14136
14137 setEnumeration<CrossTypeEnum>(offset, value);
14138 return *this;
14139 }

◆ execInst() [1/3]

auto execInst ( ) const
inlinenoexcept

Provides access to execInst field.

Definition at line 14172 of file Messages.h.

14173 {
14174 constexpr BlockLength offset = 53;
14175
14176 return enumeration<ExecInstEnum, NullCharType>(offset, optional);
14177 }

◆ execInst() [2/3]

ThisType & execInst ( ExecInstEnum value)
inlinenoexcept

Provides access to execInst field.

Definition at line 14180 of file Messages.h.

14181 {
14182 constexpr BlockLength offset = 53;
14183
14184 setEnumeration<ExecInstEnum>(offset, value);
14185 return *this;
14186 }

◆ execInst() [3/3]

ThisType & execInst ( NullOpt )
inlinenoexcept

Definition at line 14188 of file Messages.h.

14189 {
14190 constexpr BlockLength offset = 53;
14191
14192 setOrdinary(offset, NullCharType());
14193 return *this;
14194 }
IntegralConstant< Char, '\x0'> NullCharType
Null value for an optional CharType field.
Definition Fields.h:976

◆ fixType()

constexpr StrRef fixType ( )
inlinestaticconstexprnoexcept

FIX message type.

Definition at line 14535 of file Messages.h.

14536 {
14537 return constructStrRef("s");
14538 }

◆ getMaxMessageSize()

constexpr UInt64 getMaxMessageSize ( UInt8 maxGroupItems = 255)
inlinestaticconstexprnoexcept

Maximal message size.

Definition at line 14491 of file Messages.h.

14492 {
14493 return
14494 static_cast<UInt64>(MessageHeaderBuilder::Size) +
14495 blockLength(Schema::Version) +
14496 (GroupSizeEncoding::Size + SidesEntry::blockLength(Schema::Version) * static_cast<UInt64>(maxGroupItems)) +
14497 (GroupSizeEncoding::Size + LegsEntry::blockLength(Schema::Version) * static_cast<UInt64>(maxGroupItems));
14498 }

◆ getMinimalVariableFieldsSize()

constexpr MessageSize getMinimalVariableFieldsSize ( SchemaVersion version)
inlinestaticconstexpr

Minimal variable fields size (when variable-length fields are empty).

Definition at line 14481 of file Messages.h.

14482 {
14483 return
14484 ONIXS_ICEBOE_ASSERT(version >= Schema::MinimalVersion),
14485 static_cast<MessageSize>(Sides::EmptySize) + static_cast<MessageSize>(Legs::EmptySize);
14486 }
UInt16 MessageSize
Message length type.
Definition Aliases.h:29

◆ hedgeOnly() [1/3]

auto hedgeOnly ( ) const
inlinenoexcept

uint8NULL.

Definition at line 14250 of file Messages.h.

14251 {
14252 constexpr BlockLength offset = 56;
14253
14254 return enumeration<BooleanEnum, NullUint8NULL>(offset, optional);
14255 }

◆ hedgeOnly() [2/3]

ThisType & hedgeOnly ( BooleanEnum value)
inlinenoexcept

uint8NULL.

Definition at line 14258 of file Messages.h.

14259 {
14260 constexpr BlockLength offset = 56;
14261
14262 setEnumeration<BooleanEnum>(offset, value);
14263 return *this;
14264 }

◆ hedgeOnly() [3/3]

ThisType & hedgeOnly ( NullOpt )
inlinenoexcept

Definition at line 14266 of file Messages.h.

14267 {
14268 constexpr BlockLength offset = 56;
14269
14270 setOrdinary(offset, NullUint8NULL());
14271 return *this;
14272 }

◆ legs() [1/4]

Legs legs ( ) const
inlinenoexcept
Returns
instance of Legs repeating group.

Definition at line 14427 of file Messages.h.

14428 {
14429 return getGroup<Legs>(LegsAccess(), *this);
14430 }

◆ legs() [2/4]

Legs legs ( )
inlinenoexcept
Returns
instance of Legs repeating group.

Definition at line 14434 of file Messages.h.

14435 {
14436 return getGroup<Legs>(LegsAccess(), *this);
14437 }

◆ legs() [3/4]

Legs legs ( Legs::Size length)
inline

Setup repeating group with the given number of entries.

Sets all optional fields of the group entries to null.

Returns
noLegs(555) repeating group.

Definition at line 14442 of file Messages.h.

14443 {
14444 return constructGroup<Legs>(
14445 LegsAccess(),
14446 length,
14447 *this);
14448 }

◆ legs() [4/4]

Legs legs ( Legs::Size length,
NoFieldsInit  )
inline

Setup repeating group with the given number of entries.

Returns
noLegs(555) repeating group.

Definition at line 14452 of file Messages.h.

14453 {
14454 return setupGroup<Legs>(
14455 LegsAccess(),
14456 length,
14457 *this);
14458 }

◆ minimalBlockLength()

constexpr BlockLength minimalBlockLength ( SchemaVersion version)
inlinestaticconstexprnoexcept

Minimal size of message body in bytes.

Definition at line 14462 of file Messages.h.

14463 {
14464 return
14465 ONIXS_ICEBOE_ASSERT(version >= Schema::MinimalVersion),
14466 175;
14467 }

◆ orderQty() [1/2]

auto orderQty ( ) const
inlinenoexcept

Quantity, Price with constant exponent -9.

Definition at line 14033 of file Messages.h.

14034 {
14035 constexpr BlockLength offset = 8;
14036
14037 return ordinary<Decimal9>(offset);
14038 }

◆ orderQty() [2/2]

ThisType & orderQty ( Decimal9 value)
inlinenoexcept

Quantity, Price with constant exponent -9.

Definition at line 14041 of file Messages.h.

14042 {
14043 constexpr BlockLength offset = 8;
14044
14045 setOrdinary(offset, value);
14046 return *this;
14047 }

◆ ordType() [1/2]

auto ordType ( ) const
inlinenoexcept

Provides access to ordType field.

Definition at line 14089 of file Messages.h.

14090 {
14091 constexpr BlockLength offset = 40;
14092
14093 return enumeration<OrderTypeEnum>(offset);
14094 }

◆ ordType() [2/2]

ThisType & ordType ( OrderTypeEnum value)
inlinenoexcept

Provides access to ordType field.

Definition at line 14097 of file Messages.h.

14098 {
14099 constexpr BlockLength offset = 40;
14100
14101 setEnumeration<OrderTypeEnum>(offset, value);
14102 return *this;
14103 }

◆ originatorUserId() [1/2]

auto originatorUserId ( ) const
inlinenoexcept

Provides access to originatorUserID field.

Definition at line 14069 of file Messages.h.

14070 {
14071 constexpr BlockLength offset = 20;
14072 constexpr BlockLength length = 20;
14073
14074 return fixedStr<length>(offset);
14075 }

◆ originatorUserId() [2/2]

ThisType & originatorUserId ( StrRef value)
inlinenoexcept

Provides access to originatorUserID field.

Definition at line 14078 of file Messages.h.

14079 {
14080 constexpr BlockLength offset = 20;
14081 constexpr BlockLength length = 20;
14082
14083 setFixedStr<length>(offset, value);
14084 return *this;
14085 }

◆ price() [1/2]

auto price ( ) const
inlinenoexcept

Quantity, Price with constant exponent -9.

Definition at line 14015 of file Messages.h.

14016 {
14017 constexpr BlockLength offset = 0;
14018
14019 return ordinary<Decimal9>(offset);
14020 }

◆ price() [2/2]

ThisType & price ( Decimal9 value)
inlinenoexcept

Quantity, Price with constant exponent -9.

Definition at line 14023 of file Messages.h.

14024 {
14025 constexpr BlockLength offset = 0;
14026
14027 setOrdinary(offset, value);
14028 return *this;
14029 }

◆ priceType() [1/3]

auto priceType ( ) const
inlinenoexcept

uint8NULL.

Definition at line 14198 of file Messages.h.

14199 {
14200 constexpr BlockLength offset = 54;
14201
14202 return enumeration<PriceTypeEnum, NullUint8NULL>(offset, optional);
14203 }

◆ priceType() [2/3]

ThisType & priceType ( NullOpt )
inlinenoexcept

Definition at line 14214 of file Messages.h.

14215 {
14216 constexpr BlockLength offset = 54;
14217
14218 setOrdinary(offset, NullUint8NULL());
14219 return *this;
14220 }

◆ priceType() [3/3]

ThisType & priceType ( PriceTypeEnum value)
inlinenoexcept

uint8NULL.

Definition at line 14206 of file Messages.h.

14207 {
14208 constexpr BlockLength offset = 54;
14209
14210 setEnumeration<PriceTypeEnum>(offset, value);
14211 return *this;
14212 }

◆ reset()

ThisType & reset ( )
inlinenoexcept

Reset all variable-length and optional fields if any.

Definition at line 14509 of file Messages.h.

14510 {
14511 tradeType(nullOpt);
14512 execInst(nullOpt);
14513 priceType(nullOpt);
14514 bypassMQR(nullOpt);
14515 hedgeOnly(nullOpt);
14516 benchmarkPrice(nullOpt);
14517 benchMarkPriceType(nullOpt);
14518 transactDetails(nullOpt);
14519
14520 resetVariableFields();
14521 return *this;
14522 }

◆ resetVariableFields()

ThisType & resetVariableFields ( )
inlinenoexcept

Reset all variable-length fields if any.

Definition at line 14501 of file Messages.h.

14502 {
14503 sides(nullOpt);
14504 legs(nullOpt);
14505 return *this;
14506 }

◆ sides() [1/4]

Sides sides ( ) const
inlinenoexcept
Returns
instance of Sides repeating group.

Definition at line 14392 of file Messages.h.

14393 {
14394 return getGroup<Sides>(SidesAccess(), *this);
14395 }

◆ sides() [2/4]

Sides sides ( )
inlinenoexcept
Returns
instance of Sides repeating group.

Definition at line 14399 of file Messages.h.

14400 {
14401 return getGroup<Sides>(SidesAccess(), *this);
14402 }

◆ sides() [3/4]

Sides sides ( Sides::Size length)
inline

Setup repeating group with the given number of entries.

Sets all optional fields of the group entries to null.

Returns
noSides(552) repeating group.

Definition at line 14407 of file Messages.h.

14408 {
14409 return constructGroup<Sides>(
14410 SidesAccess(),
14411 length,
14412 *this);
14413 }

◆ sides() [4/4]

Sides sides ( Sides::Size length,
NoFieldsInit  )
inline

Setup repeating group with the given number of entries.

Returns
noSides(552) repeating group.

Definition at line 14417 of file Messages.h.

14418 {
14419 return setupGroup<Sides>(
14420 SidesAccess(),
14421 length,
14422 *this);
14423 }

◆ symbol() [1/2]

auto symbol ( ) const
inlinenoexcept

Provides access to symbol field.

Definition at line 14051 of file Messages.h.

14052 {
14053 constexpr BlockLength offset = 16;
14054
14055 return ordinary<Int32>(offset);
14056 }

◆ symbol() [2/2]

ThisType & symbol ( Int32 value)
inlinenoexcept

Provides access to symbol field.

Definition at line 14059 of file Messages.h.

14060 {
14061 constexpr BlockLength offset = 16;
14062
14063 setOrdinary(offset, value);
14064 return *this;
14065 }

◆ tail()

const void * tail ( ) const
inlinenoexcept
Returns
the end of the message.

Definition at line 14546 of file Messages.h.

14547 {
14548 return
14549 legs().tail();
14550 }

◆ timeInForce() [1/2]

auto timeInForce ( ) const
inlinenoexcept

Provides access to timeInForce field.

Definition at line 14328 of file Messages.h.

14329 {
14330 constexpr BlockLength offset = 66;
14331
14332 return enumeration<TimeInForceEnum>(offset);
14333 }

◆ timeInForce() [2/2]

ThisType & timeInForce ( TimeInForceEnum value)
inlinenoexcept

Provides access to timeInForce field.

Definition at line 14336 of file Messages.h.

14337 {
14338 constexpr BlockLength offset = 66;
14339
14340 setEnumeration<TimeInForceEnum>(offset, value);
14341 return *this;
14342 }

◆ toString()

std::string toString ( ) const
inline
Returns
a human-readable presentation.

Definition at line 1129 of file MessageSerialization.h.

1130{
1131 return toStr(*this);
1132}
std::string toStr(Order::PriceOptional value)
Definition Order.cpp:34

◆ tradeType() [1/3]

auto tradeType ( ) const
inlinenoexcept

Provides access to tradeType field.

Definition at line 14143 of file Messages.h.

14144 {
14145 constexpr BlockLength offset = 50;
14146 constexpr BlockLength length = 3;
14147
14148 return fixedStr<length>(offset, optional);
14149 }

◆ tradeType() [2/3]

ThisType & tradeType ( NullOpt )
inlinenoexcept

Definition at line 14161 of file Messages.h.

14162 {
14163 constexpr BlockLength offset = 50;
14164 constexpr BlockLength length = 3;
14165
14166 setFixedStr<length>(offset, StrRef());
14167 return *this;
14168 }
std::basic_string_view< Char > StrRef
Definition StrRef.h:46

◆ tradeType() [3/3]

ThisType & tradeType ( StrRef value)
inlinenoexcept

Provides access to tradeType field.

Definition at line 14152 of file Messages.h.

14153 {
14154 constexpr BlockLength offset = 50;
14155 constexpr BlockLength length = 3;
14156
14157 setFixedStr<length>(offset, value);
14158 return *this;
14159 }

◆ transactDetails() [1/3]

auto transactDetails ( ) const
inlinenoexcept

Provides access to transactDetails field.

Definition at line 14346 of file Messages.h.

14347 {
14348 constexpr BlockLength offset = 67;
14349 constexpr BlockLength length = 100;
14350
14351 return fixedStr<length>(offset, optional);
14352 }

◆ transactDetails() [2/3]

ThisType & transactDetails ( NullOpt )
inlinenoexcept

Definition at line 14364 of file Messages.h.

14365 {
14366 constexpr BlockLength offset = 67;
14367 constexpr BlockLength length = 100;
14368
14369 setFixedStr<length>(offset, StrRef());
14370 return *this;
14371 }

◆ transactDetails() [3/3]

ThisType & transactDetails ( StrRef value)
inlinenoexcept

Provides access to transactDetails field.

Definition at line 14355 of file Messages.h.

14356 {
14357 constexpr BlockLength offset = 67;
14358 constexpr BlockLength length = 100;
14359
14360 setFixedStr<length>(offset, value);
14361 return *this;
14362 }

◆ transactTime() [1/2]

auto transactTime ( ) const
inlinenoexcept

Nanoseconds since Unix epoch (January 1st, 1970).

Definition at line 14375 of file Messages.h.

14376 {
14377 constexpr BlockLength offset = 167;
14378 return convertible<ticksToTimestamp>(offset);
14379 }

◆ transactTime() [2/2]

ThisType & transactTime ( Timestamp value)
inlinenoexcept

Nanoseconds since Unix epoch (January 1st, 1970).

Definition at line 14382 of file Messages.h.

14383 {
14384 constexpr BlockLength offset = 167;
14385
14386 setOrdinary(offset, convert<timestampToTicks>(value));
14387 return *this;
14388 }