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

Public Types

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

Public Member Functions

 OrderMassCancelReport ()=default
 OrderMassCancelReport (void *data, EncodedLength length, SchemaVersion version=Schema::Version)
 OrderMassCancelReport (void *data, EncodedLength length, NoFieldsInit, SchemaVersion version=Schema::Version)
 OrderMassCancelReport (void *data, EncodedLength length, NoInit)
 OrderMassCancelReport (SbeMessage message)
 OrderMassCancelReport (void *data, EncodedLength length, NoInit, NoCheck) noexcept
auto originatorUserId () const noexcept
ThisTypeoriginatorUserId (StrRef value) noexcept
auto symbol () const noexcept
ThisTypesymbol (Int32NULL value) noexcept
ThisTypesymbol (NullOpt) noexcept
auto clOrdId () const noexcept
ThisTypeclOrdId (Int64 value) noexcept
auto transactTime () const noexcept(ticksToTimestamp::Nothrow)
ThisTypetransactTime (Timestamp value) noexcept(timestampToTicks::Nothrow)
auto marketTypeId () const noexcept
ThisTypemarketTypeId (Int32NULL value) noexcept
ThisTypemarketTypeId (NullOpt) noexcept
auto massCancelRequestType () const noexcept
ThisTypemassCancelRequestType (MassCancelRequestTypeEnum value) noexcept
auto massCancelResponse () const noexcept
ThisTypemassCancelResponse (MassCancelResponseEnum value) noexcept
auto massCancelRejectReason () const noexcept
ThisTypemassCancelRejectReason (MassCancelRejectEnum value) noexcept
ThisTypemassCancelRejectReason (NullOpt) noexcept
auto exchangeCode () const noexcept
ThisTypeexchangeCode (Int32NULL value) noexcept
ThisTypeexchangeCode (NullOpt) noexcept
auto text () const noexcept
ThisTypetext (StrRef value) noexcept
ThisTypetext (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 22155 of file Messages.h.

Member Typedef Documentation

◆ Schema

Used template schema.

Definition at line 22160 of file Messages.h.

◆ ThisType

This type alias.

Definition at line 22163 of file Messages.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Message template ID from SBE schema.

Enumerator
TemplateId 109 

Definition at line 22166 of file Messages.h.

22166{ TemplateId = 109 };

Constructor & Destructor Documentation

◆ OrderMassCancelReport() [1/6]

OrderMassCancelReport ( )
default

Initializes a blank instance.

◆ OrderMassCancelReport() [2/6]

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

Initializes an instance over the given memory block.

Definition at line 22172 of file Messages.h.

22173 : SbeMessage(data, length, version)
22174 {
22175 checkVersion<Schema>(version);
22176 checkLength(length, version);
22177 init(TemplateId, minimalBlockLength(version), blockLength(version), Schema::Id);
22178 reset();
22179 }

◆ OrderMassCancelReport() [3/6]

OrderMassCancelReport ( 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 22184 of file Messages.h.

22185 : SbeMessage(data, length, version)
22186 {
22187 checkVersion<Schema>(version);
22188 checkLength(length, version);
22189 init(TemplateId, minimalBlockLength(version), blockLength(version), Schema::Id);
22190 resetVariableFields();
22191 }

◆ OrderMassCancelReport() [4/6]

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

Creates an instance over the given memory block.

Definition at line 22194 of file Messages.h.

22195 : SbeMessage(data, length)
22196 {
22197 checkCompatibility();
22198 }

◆ OrderMassCancelReport() [5/6]

OrderMassCancelReport ( SbeMessage message)
inlineexplicit

Creates an instance over the given SBE message.

Definition at line 22202 of file Messages.h.

22203 : SbeMessage(message)
22204 {
22205 assert(message.valid());
22206
22207 checkCompatibility();
22208 }

◆ OrderMassCancelReport() [6/6]

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

Creates an instance over the given memory block.

Performs no checks.

Definition at line 22212 of file Messages.h.

22213 : SbeMessage(data, length, NoCheck())
22214 {
22215 assert(schemaId() == Schema::Id);
22216 assert(version() >= Schema::MinimalVersion);
22217 assert(TemplateId == templateId());
22218 }
const char * version() noexcept

Member Function Documentation

◆ blockLength()

constexpr BlockLength blockLength ( SchemaVersion version)
inlinestaticconstexprnoexcept

Size of message body in bytes.

Definition at line 22455 of file Messages.h.

22456 {
22457 return
22458 ONIXS_ICEBOE_ASSERT(version >= Schema::MinimalVersion),
22459 minimalBlockLength(version);
22460 }

◆ calculateBinarySize()

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

Definition at line 22535 of file Messages.h.

22536 {
22537 return
22538 SbeMessage::calculateBinarySize(tail());
22539 }

◆ className()

constexpr StrRef className ( )
inlinestaticconstexprnoexcept
Returns
class name.

Definition at line 22504 of file Messages.h.

22505 {
22506 return constructStrRef("OrderMassCancelReport");
22507 }
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 22268 of file Messages.h.

22269 {
22270 constexpr BlockLength offset = 24;
22271
22272 return ordinary<Int64>(offset);
22273 }

◆ clOrdId() [2/2]

ThisType & clOrdId ( Int64 value)
inlinenoexcept

Provides access to clOrdID field.

Definition at line 22276 of file Messages.h.

22277 {
22278 constexpr BlockLength offset = 24;
22279
22280 setOrdinary(offset, value);
22281 return *this;
22282 }

◆ exchangeCode() [1/3]

auto exchangeCode ( ) const
inlinenoexcept

int32NULL.

Definition at line 22391 of file Messages.h.

22392 {
22393 constexpr BlockLength offset = 47;
22394
22395 return ordinary<NullInt32NULL>(offset, optional);
22396 }

◆ exchangeCode() [2/3]

ThisType & exchangeCode ( Int32NULL value)
inlinenoexcept

int32NULL.

Definition at line 22399 of file Messages.h.

22400 {
22401 constexpr BlockLength offset = 47;
22402
22403 setOrdinary(offset, value);
22404 return *this;
22405 }

◆ exchangeCode() [3/3]

ThisType & exchangeCode ( NullOpt )
inlinenoexcept

Definition at line 22407 of file Messages.h.

22408 {
22409 constexpr BlockLength offset = 47;
22410
22411 setOrdinary(offset, NullInt32NULL());
22412 return *this;
22413 }
IntegralConstant< Int32, -2147483647-1 > NullInt32NULL
Null value for an optional Int32NULL field.
Definition Fields.h:994

◆ fixType()

constexpr StrRef fixType ( )
inlinestaticconstexprnoexcept

FIX message type.

Definition at line 22512 of file Messages.h.

22513 {
22514 return constructStrRef("r");
22515 }

◆ getMaxMessageSize()

constexpr UInt64 getMaxMessageSize ( UInt8 )
inlinestaticconstexprnoexcept

Maximal message size.

Definition at line 22475 of file Messages.h.

22476 {
22477 return
22478 static_cast<UInt64>(MessageHeaderBuilder::Size) +
22479 blockLength(Schema::Version);
22480 }

◆ getMinimalVariableFieldsSize()

constexpr MessageSize getMinimalVariableFieldsSize ( SchemaVersion version)
inlinestaticconstexpr

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

Definition at line 22465 of file Messages.h.

22466 {
22467 return
22468 ONIXS_ICEBOE_ASSERT(version >= Schema::MinimalVersion),
22469 0;
22470 }

◆ marketTypeId() [1/3]

auto marketTypeId ( ) const
inlinenoexcept

int32NULL.

Definition at line 22303 of file Messages.h.

22304 {
22305 constexpr BlockLength offset = 40;
22306
22307 return ordinary<NullInt32NULL>(offset, optional);
22308 }

◆ marketTypeId() [2/3]

ThisType & marketTypeId ( Int32NULL value)
inlinenoexcept

int32NULL.

Definition at line 22311 of file Messages.h.

22312 {
22313 constexpr BlockLength offset = 40;
22314
22315 setOrdinary(offset, value);
22316 return *this;
22317 }

◆ marketTypeId() [3/3]

ThisType & marketTypeId ( NullOpt )
inlinenoexcept

Definition at line 22319 of file Messages.h.

22320 {
22321 constexpr BlockLength offset = 40;
22322
22323 setOrdinary(offset, NullInt32NULL());
22324 return *this;
22325 }

◆ massCancelRejectReason() [1/3]

auto massCancelRejectReason ( ) const
inlinenoexcept

uint8NULL.

Definition at line 22365 of file Messages.h.

22366 {
22367 constexpr BlockLength offset = 46;
22368
22369 return enumeration<MassCancelRejectEnum, NullUint8NULL>(offset, optional);
22370 }

◆ massCancelRejectReason() [2/3]

ThisType & massCancelRejectReason ( MassCancelRejectEnum value)
inlinenoexcept

uint8NULL.

Definition at line 22373 of file Messages.h.

22374 {
22375 constexpr BlockLength offset = 46;
22376
22377 setEnumeration<MassCancelRejectEnum>(offset, value);
22378 return *this;
22379 }

◆ massCancelRejectReason() [3/3]

ThisType & massCancelRejectReason ( NullOpt )
inlinenoexcept

Definition at line 22381 of file Messages.h.

22382 {
22383 constexpr BlockLength offset = 46;
22384
22385 setOrdinary(offset, NullUint8NULL());
22386 return *this;
22387 }
IntegralConstant< UInt8, 255 > NullUint8NULL
Null value for an optional Uint8NULL field.
Definition Fields.h:1006

◆ massCancelRequestType() [1/2]

auto massCancelRequestType ( ) const
inlinenoexcept

Provides access to massCancelRequestType field.

Definition at line 22329 of file Messages.h.

22330 {
22331 constexpr BlockLength offset = 44;
22332
22333 return enumeration<MassCancelRequestTypeEnum>(offset);
22334 }

◆ massCancelRequestType() [2/2]

ThisType & massCancelRequestType ( MassCancelRequestTypeEnum value)
inlinenoexcept

Provides access to massCancelRequestType field.

Definition at line 22337 of file Messages.h.

22338 {
22339 constexpr BlockLength offset = 44;
22340
22341 setEnumeration<MassCancelRequestTypeEnum>(offset, value);
22342 return *this;
22343 }

◆ massCancelResponse() [1/2]

auto massCancelResponse ( ) const
inlinenoexcept

Provides access to massCancelResponse field.

Definition at line 22347 of file Messages.h.

22348 {
22349 constexpr BlockLength offset = 45;
22350
22351 return enumeration<MassCancelResponseEnum>(offset);
22352 }

◆ massCancelResponse() [2/2]

ThisType & massCancelResponse ( MassCancelResponseEnum value)
inlinenoexcept

Provides access to massCancelResponse field.

Definition at line 22355 of file Messages.h.

22356 {
22357 constexpr BlockLength offset = 45;
22358
22359 setEnumeration<MassCancelResponseEnum>(offset, value);
22360 return *this;
22361 }

◆ minimalBlockLength()

constexpr BlockLength minimalBlockLength ( SchemaVersion version)
inlinestaticconstexprnoexcept

Minimal size of message body in bytes.

Definition at line 22446 of file Messages.h.

22447 {
22448 return
22449 ONIXS_ICEBOE_ASSERT(version >= Schema::MinimalVersion),
22450 151;
22451 }

◆ originatorUserId() [1/2]

auto originatorUserId ( ) const
inlinenoexcept

Provides access to originatorUserID field.

Definition at line 22222 of file Messages.h.

22223 {
22224 constexpr BlockLength offset = 0;
22225 constexpr BlockLength length = 20;
22226
22227 return fixedStr<length>(offset);
22228 }

◆ originatorUserId() [2/2]

ThisType & originatorUserId ( StrRef value)
inlinenoexcept

Provides access to originatorUserID field.

Definition at line 22231 of file Messages.h.

22232 {
22233 constexpr BlockLength offset = 0;
22234 constexpr BlockLength length = 20;
22235
22236 setFixedStr<length>(offset, value);
22237 return *this;
22238 }

◆ reset()

ThisType & reset ( )
inlinenoexcept

Reset all variable-length and optional fields if any.

Definition at line 22489 of file Messages.h.

22490 {
22491 symbol(nullOpt);
22492 marketTypeId(nullOpt);
22493 massCancelRejectReason(nullOpt);
22494 exchangeCode(nullOpt);
22495 text(nullOpt);
22496
22497 resetVariableFields();
22498 return *this;
22499 }

◆ resetVariableFields()

ThisType & resetVariableFields ( )
inlinenoexcept

Reset all variable-length fields if any.

Definition at line 22483 of file Messages.h.

22484 {
22485 return *this;
22486 }

◆ symbol() [1/3]

auto symbol ( ) const
inlinenoexcept

int32NULL.

Definition at line 22242 of file Messages.h.

22243 {
22244 constexpr BlockLength offset = 20;
22245
22246 return ordinary<NullInt32NULL>(offset, optional);
22247 }

◆ symbol() [2/3]

ThisType & symbol ( Int32NULL value)
inlinenoexcept

int32NULL.

Definition at line 22250 of file Messages.h.

22251 {
22252 constexpr BlockLength offset = 20;
22253
22254 setOrdinary(offset, value);
22255 return *this;
22256 }

◆ symbol() [3/3]

ThisType & symbol ( NullOpt )
inlinenoexcept

Definition at line 22258 of file Messages.h.

22259 {
22260 constexpr BlockLength offset = 20;
22261
22262 setOrdinary(offset, NullInt32NULL());
22263 return *this;
22264 }

◆ tail()

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

Definition at line 22523 of file Messages.h.

22524 {
22525 return
22528 binary(),
22529 static_cast<ptrdiff_t>(SbeMessage::blockLength()) +
22530 MessageHeader::Size));
22531 }
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

◆ text() [1/3]

auto text ( ) const
inlinenoexcept

Provides access to text field.

Definition at line 22417 of file Messages.h.

22418 {
22419 constexpr BlockLength offset = 51;
22420 constexpr BlockLength length = 100;
22421
22422 return fixedStr<length>(offset, optional);
22423 }

◆ text() [2/3]

ThisType & text ( NullOpt )
inlinenoexcept

Definition at line 22435 of file Messages.h.

22436 {
22437 constexpr BlockLength offset = 51;
22438 constexpr BlockLength length = 100;
22439
22440 setFixedStr<length>(offset, StrRef());
22441 return *this;
22442 }
std::basic_string_view< Char > StrRef
Definition StrRef.h:46

◆ text() [3/3]

ThisType & text ( StrRef value)
inlinenoexcept

Provides access to text field.

Definition at line 22426 of file Messages.h.

22427 {
22428 constexpr BlockLength offset = 51;
22429 constexpr BlockLength length = 100;
22430
22431 setFixedStr<length>(offset, value);
22432 return *this;
22433 }

◆ toString()

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

Definition at line 1824 of file MessageSerialization.h.

1825{
1826 return toStr(*this);
1827}
std::string toStr(Order::PriceOptional value)
Definition Order.cpp:34

◆ transactTime() [1/2]

auto transactTime ( ) const
inlinenoexcept

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

Definition at line 22286 of file Messages.h.

22287 {
22288 constexpr BlockLength offset = 32;
22289 return convertible<ticksToTimestamp>(offset);
22290 }

◆ transactTime() [2/2]

ThisType & transactTime ( Timestamp value)
inlinenoexcept

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

Definition at line 22293 of file Messages.h.

22294 {
22295 constexpr BlockLength offset = 32;
22296
22297 setOrdinary(offset, convert<timestampToTicks>(value));
22298 return *this;
22299 }