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

Public Types

enum  
typedef SchemaTraits Schema
typedef OrderMassCancelRequest ThisType
Public Types inherited from SbeMessage
typedef MessageSize EncodedLength
typedef MessageSize BlockLength

Public Member Functions

 OrderMassCancelRequest ()=default
 OrderMassCancelRequest (void *data, EncodedLength length, SchemaVersion version=Schema::Version)
 OrderMassCancelRequest (void *data, EncodedLength length, NoFieldsInit, SchemaVersion version=Schema::Version)
 OrderMassCancelRequest (void *data, EncodedLength length, NoInit)
 OrderMassCancelRequest (SbeMessage message)
 OrderMassCancelRequest (void *data, EncodedLength length, NoInit, NoCheck) noexcept
auto originatorUserId () const noexcept
ThisTypeoriginatorUserId (StrRef value) noexcept
auto ordType () const noexcept
ThisTypeordType (OrderTypeEnum value) noexcept
ThisTypeordType (NullOpt) noexcept
auto side () const noexcept
ThisTypeside (SideEnum value) noexcept
ThisTypeside (NullOpt) noexcept
auto symbol () const noexcept
ThisTypesymbol (Int32NULL value) noexcept
ThisTypesymbol (NullOpt) noexcept
auto clOrdId () const noexcept
ThisTypeclOrdId (Int64 value) noexcept
auto marketTypeId () const noexcept
ThisTypemarketTypeId (Int32NULL value) noexcept
ThisTypemarketTypeId (NullOpt) noexcept
auto price () const noexcept
ThisTypeprice (Decimal9 value) noexcept
ThisTypeprice (NullOpt) noexcept
auto massCancelRequestType () const noexcept
ThisTypemassCancelRequestType (MassCancelRequestTypeEnum value) noexcept
auto timeInForce () const noexcept
ThisTypetimeInForce (TimeInForceEnum value) noexcept
ThisTypetimeInForce (NullOpt) noexcept
auto onBehalfOfSubId () const noexcept
ThisTypeonBehalfOfSubId (StrRef value) noexcept
ThisTypeonBehalfOfSubId (NullOpt) noexcept
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) 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 14629 of file Messages.h.

Member Typedef Documentation

◆ Schema

Used template schema.

Definition at line 14634 of file Messages.h.

◆ ThisType

This type alias.

Definition at line 14637 of file Messages.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Message template ID from SBE schema.

Enumerator
TemplateId 

Definition at line 14640 of file Messages.h.

14640{ TemplateId = 9 };

Constructor & Destructor Documentation

◆ OrderMassCancelRequest() [1/6]

Initializes a blank instance.

◆ OrderMassCancelRequest() [2/6]

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

Initializes an instance over the given memory block.

Definition at line 14646 of file Messages.h.

14647 : SbeMessage(data, length, version)
14648 {
14649 checkVersion<Schema>(version);
14650 checkLength(length, version);
14651 init(TemplateId, minimalBlockLength(version), blockLength(version), Schema::Id);
14652 reset();
14653 }

◆ OrderMassCancelRequest() [3/6]

OrderMassCancelRequest ( 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 14658 of file Messages.h.

14659 : SbeMessage(data, length, version)
14660 {
14661 checkVersion<Schema>(version);
14662 checkLength(length, version);
14663 init(TemplateId, minimalBlockLength(version), blockLength(version), Schema::Id);
14664 resetVariableFields();
14665 }

◆ OrderMassCancelRequest() [4/6]

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

Creates an instance over the given memory block.

Definition at line 14668 of file Messages.h.

14669 : SbeMessage(data, length)
14670 {
14671 checkCompatibility();
14672 }

◆ OrderMassCancelRequest() [5/6]

OrderMassCancelRequest ( SbeMessage message)
inlineexplicit

Creates an instance over the given SBE message.

Definition at line 14676 of file Messages.h.

14677 : SbeMessage(message)
14678 {
14679 assert(message.valid());
14680
14681 checkCompatibility();
14682 }

◆ OrderMassCancelRequest() [6/6]

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

Creates an instance over the given memory block.

Performs no checks.

Definition at line 14686 of file Messages.h.

14687 : SbeMessage(data, length, NoCheck())
14688 {
14689 assert(schemaId() == Schema::Id);
14690 assert(version() >= Schema::MinimalVersion);
14691 assert(TemplateId == templateId());
14692 }
const char * version() noexcept

Member Function Documentation

◆ blockLength()

constexpr BlockLength blockLength ( SchemaVersion version)
inlinestaticconstexprnoexcept

Size of message body in bytes.

Definition at line 14946 of file Messages.h.

14947 {
14948 return
14949 ONIXS_ICEBOE_ASSERT(version >= Schema::MinimalVersion),
14950 minimalBlockLength(version);
14951 }

◆ calculateBinarySize()

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

Definition at line 15028 of file Messages.h.

15029 {
15030 return
15031 SbeMessage::calculateBinarySize(tail());
15032 }

◆ className()

constexpr StrRef className ( )
inlinestaticconstexprnoexcept
Returns
class name.

Definition at line 14997 of file Messages.h.

14998 {
14999 return constructStrRef("OrderMassCancelRequest");
15000 }
constexpr StrRef constructStrRef(const char(&value)[Size]) noexcept
Definition StrRef.h:414

◆ clOrdId() [1/2]

auto clOrdId ( ) const
inlinenoexcept

Provides access to clOrdID field.

Definition at line 14794 of file Messages.h.

14795 {
14796 constexpr BlockLength offset = 26;
14797
14798 return ordinary<Int64>(offset);
14799 }

◆ clOrdId() [2/2]

ThisType & clOrdId ( Int64 value)
inlinenoexcept

Provides access to clOrdID field.

Definition at line 14802 of file Messages.h.

14803 {
14804 constexpr BlockLength offset = 26;
14805
14806 setOrdinary(offset, value);
14807 return *this;
14808 }

◆ fixType()

constexpr StrRef fixType ( )
inlinestaticconstexprnoexcept

FIX message type.

Definition at line 15005 of file Messages.h.

15006 {
15007 return constructStrRef("q");
15008 }

◆ getMaxMessageSize()

constexpr UInt64 getMaxMessageSize ( UInt8 )
inlinestaticconstexprnoexcept

Maximal message size.

Definition at line 14966 of file Messages.h.

14967 {
14968 return
14969 static_cast<UInt64>(MessageHeaderBuilder::Size) +
14970 blockLength(Schema::Version);
14971 }

◆ getMinimalVariableFieldsSize()

constexpr MessageSize getMinimalVariableFieldsSize ( SchemaVersion version)
inlinestaticconstexpr

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

Definition at line 14956 of file Messages.h.

14957 {
14958 return
14959 ONIXS_ICEBOE_ASSERT(version >= Schema::MinimalVersion),
14960 0;
14961 }

◆ marketTypeId() [1/3]

auto marketTypeId ( ) const
inlinenoexcept

int32NULL.

Definition at line 14812 of file Messages.h.

14813 {
14814 constexpr BlockLength offset = 34;
14815
14816 return ordinary<NullInt32NULL>(offset, optional);
14817 }

◆ marketTypeId() [2/3]

ThisType & marketTypeId ( Int32NULL value)
inlinenoexcept

int32NULL.

Definition at line 14820 of file Messages.h.

14821 {
14822 constexpr BlockLength offset = 34;
14823
14824 setOrdinary(offset, value);
14825 return *this;
14826 }

◆ marketTypeId() [3/3]

ThisType & marketTypeId ( NullOpt )
inlinenoexcept

Definition at line 14828 of file Messages.h.

14829 {
14830 constexpr BlockLength offset = 34;
14831
14832 setOrdinary(offset, NullInt32NULL());
14833 return *this;
14834 }
IntegralConstant< Int32, -2147483647-1 > NullInt32NULL
Null value for an optional Int32NULL field.
Definition Fields.h:994

◆ massCancelRequestType() [1/2]

auto massCancelRequestType ( ) const
inlinenoexcept

Provides access to massCancelRequestType field.

Definition at line 14864 of file Messages.h.

14865 {
14866 constexpr BlockLength offset = 46;
14867
14868 return enumeration<MassCancelRequestTypeEnum>(offset);
14869 }

◆ massCancelRequestType() [2/2]

ThisType & massCancelRequestType ( MassCancelRequestTypeEnum value)
inlinenoexcept

Provides access to massCancelRequestType field.

Definition at line 14872 of file Messages.h.

14873 {
14874 constexpr BlockLength offset = 46;
14875
14876 setEnumeration<MassCancelRequestTypeEnum>(offset, value);
14877 return *this;
14878 }

◆ minimalBlockLength()

constexpr BlockLength minimalBlockLength ( SchemaVersion version)
inlinestaticconstexprnoexcept

Minimal size of message body in bytes.

Definition at line 14937 of file Messages.h.

14938 {
14939 return
14940 ONIXS_ICEBOE_ASSERT(version >= Schema::MinimalVersion),
14941 89;
14942 }

◆ onBehalfOfSubId() [1/3]

auto onBehalfOfSubId ( ) const
inlinenoexcept

Provides access to onBehalfOfSubID field.

Definition at line 14908 of file Messages.h.

14909 {
14910 constexpr BlockLength offset = 48;
14911 constexpr BlockLength length = 41;
14912
14913 return fixedStr<length>(offset, optional);
14914 }

◆ onBehalfOfSubId() [2/3]

ThisType & onBehalfOfSubId ( NullOpt )
inlinenoexcept

Definition at line 14926 of file Messages.h.

14927 {
14928 constexpr BlockLength offset = 48;
14929 constexpr BlockLength length = 41;
14930
14931 setFixedStr<length>(offset, StrRef());
14932 return *this;
14933 }
std::basic_string_view< Char > StrRef
Definition StrRef.h:46

◆ onBehalfOfSubId() [3/3]

ThisType & onBehalfOfSubId ( StrRef value)
inlinenoexcept

Provides access to onBehalfOfSubID field.

Definition at line 14917 of file Messages.h.

14918 {
14919 constexpr BlockLength offset = 48;
14920 constexpr BlockLength length = 41;
14921
14922 setFixedStr<length>(offset, value);
14923 return *this;
14924 }

◆ ordType() [1/3]

auto ordType ( ) const
inlinenoexcept

uint8NULL.

Definition at line 14716 of file Messages.h.

14717 {
14718 constexpr BlockLength offset = 20;
14719
14720 return enumeration<OrderTypeEnum, NullUint8NULL>(offset, optional);
14721 }

◆ ordType() [2/3]

ThisType & ordType ( NullOpt )
inlinenoexcept

Definition at line 14732 of file Messages.h.

14733 {
14734 constexpr BlockLength offset = 20;
14735
14736 setOrdinary(offset, NullUint8NULL());
14737 return *this;
14738 }
IntegralConstant< UInt8, 255 > NullUint8NULL
Null value for an optional Uint8NULL field.
Definition Fields.h:1006

◆ ordType() [3/3]

ThisType & ordType ( OrderTypeEnum value)
inlinenoexcept

uint8NULL.

Definition at line 14724 of file Messages.h.

14725 {
14726 constexpr BlockLength offset = 20;
14727
14728 setEnumeration<OrderTypeEnum>(offset, value);
14729 return *this;
14730 }

◆ originatorUserId() [1/2]

auto originatorUserId ( ) const
inlinenoexcept

Provides access to originatorUserID field.

Definition at line 14696 of file Messages.h.

14697 {
14698 constexpr BlockLength offset = 0;
14699 constexpr BlockLength length = 20;
14700
14701 return fixedStr<length>(offset);
14702 }

◆ originatorUserId() [2/2]

ThisType & originatorUserId ( StrRef value)
inlinenoexcept

Provides access to originatorUserID field.

Definition at line 14705 of file Messages.h.

14706 {
14707 constexpr BlockLength offset = 0;
14708 constexpr BlockLength length = 20;
14709
14710 setFixedStr<length>(offset, value);
14711 return *this;
14712 }

◆ price() [1/3]

auto price ( ) const
inlinenoexcept

Quantity, Price with constant exponent -9.

Definition at line 14838 of file Messages.h.

14839 {
14840 constexpr BlockLength offset = 38;
14841
14842 return ordinary<NullDecimal9>(offset, optional);
14843 }

◆ price() [2/3]

ThisType & price ( Decimal9 value)
inlinenoexcept

Quantity, Price with constant exponent -9.

Definition at line 14846 of file Messages.h.

14847 {
14848 constexpr BlockLength offset = 38;
14849
14850 setOrdinary(offset, value);
14851 return *this;
14852 }

◆ price() [3/3]

ThisType & price ( NullOpt )
inlinenoexcept

Definition at line 14854 of file Messages.h.

14855 {
14856 constexpr BlockLength offset = 38;
14857
14858 setOrdinary(offset, NullDecimal9());
14859 return *this;
14860 }
IntegralConstant< Int64, -9223372036854775807LL-1 > NullDecimal9
Null value for an optional Decimal9 field.
Definition Fields.h:958

◆ reset()

ThisType & reset ( )
inlinenoexcept

Reset all variable-length and optional fields if any.

Definition at line 14980 of file Messages.h.

14981 {
14982 ordType(nullOpt);
14983 side(nullOpt);
14984 symbol(nullOpt);
14985 marketTypeId(nullOpt);
14986 price(nullOpt);
14987 timeInForce(nullOpt);
14988 onBehalfOfSubId(nullOpt);
14989
14990 resetVariableFields();
14991 return *this;
14992 }

◆ resetVariableFields()

ThisType & resetVariableFields ( )
inlinenoexcept

Reset all variable-length fields if any.

Definition at line 14974 of file Messages.h.

14975 {
14976 return *this;
14977 }

◆ side() [1/3]

auto side ( ) const
inlinenoexcept

uint8NULL.

Definition at line 14742 of file Messages.h.

14743 {
14744 constexpr BlockLength offset = 21;
14745
14746 return enumeration<SideEnum, NullUint8NULL>(offset, optional);
14747 }

◆ side() [2/3]

ThisType & side ( NullOpt )
inlinenoexcept

Definition at line 14758 of file Messages.h.

14759 {
14760 constexpr BlockLength offset = 21;
14761
14762 setOrdinary(offset, NullUint8NULL());
14763 return *this;
14764 }

◆ side() [3/3]

ThisType & side ( SideEnum value)
inlinenoexcept

uint8NULL.

Definition at line 14750 of file Messages.h.

14751 {
14752 constexpr BlockLength offset = 21;
14753
14754 setEnumeration<SideEnum>(offset, value);
14755 return *this;
14756 }

◆ symbol() [1/3]

auto symbol ( ) const
inlinenoexcept

int32NULL.

Definition at line 14768 of file Messages.h.

14769 {
14770 constexpr BlockLength offset = 22;
14771
14772 return ordinary<NullInt32NULL>(offset, optional);
14773 }

◆ symbol() [2/3]

ThisType & symbol ( Int32NULL value)
inlinenoexcept

int32NULL.

Definition at line 14776 of file Messages.h.

14777 {
14778 constexpr BlockLength offset = 22;
14779
14780 setOrdinary(offset, value);
14781 return *this;
14782 }

◆ symbol() [3/3]

ThisType & symbol ( NullOpt )
inlinenoexcept

Definition at line 14784 of file Messages.h.

14785 {
14786 constexpr BlockLength offset = 22;
14787
14788 setOrdinary(offset, NullInt32NULL());
14789 return *this;
14790 }

◆ tail()

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

Definition at line 15016 of file Messages.h.

15017 {
15018 return
15021 binary(),
15022 static_cast<ptrdiff_t>(SbeMessage::blockLength()) +
15023 MessageHeader::Size));
15024 }
ONIXS_ICEBOE_FORCEINLINE void * toOpaquePtr(Type *ptr) noexcept
Makes the pointer an opaque one.
Definition Memory.h:51
ONIXS_ICEBOE_FORCEINLINE Type * advanceByBytes(Type *pointer, ptrdiff_t distance) noexcept
Advances the pointer to a given offset (distance) in bytes.
Definition Memory.h:110

◆ timeInForce() [1/3]

auto timeInForce ( ) const
inlinenoexcept

uint8NULL.

Definition at line 14882 of file Messages.h.

14883 {
14884 constexpr BlockLength offset = 47;
14885
14886 return enumeration<TimeInForceEnum, NullUint8NULL>(offset, optional);
14887 }

◆ timeInForce() [2/3]

ThisType & timeInForce ( NullOpt )
inlinenoexcept

Definition at line 14898 of file Messages.h.

14899 {
14900 constexpr BlockLength offset = 47;
14901
14902 setOrdinary(offset, NullUint8NULL());
14903 return *this;
14904 }

◆ timeInForce() [3/3]

ThisType & timeInForce ( TimeInForceEnum value)
inlinenoexcept

uint8NULL.

Definition at line 14890 of file Messages.h.

14891 {
14892 constexpr BlockLength offset = 47;
14893
14894 setEnumeration<TimeInForceEnum>(offset, value);
14895 return *this;
14896 }

◆ toString()

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

Definition at line 1223 of file MessageSerialization.h.

1224{
1225 return toStr(*this);
1226}
std::string toStr(Order::PriceOptional value)
Definition Order.cpp:34