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

Public Types

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

Public Member Functions

 SecurityDefinitionReject ()=default
 SecurityDefinitionReject (void *data, EncodedLength length, SchemaVersion version=Schema::Version)
 SecurityDefinitionReject (void *data, EncodedLength length, NoFieldsInit, SchemaVersion version=Schema::Version)
 SecurityDefinitionReject (void *data, EncodedLength length, NoInit)
 SecurityDefinitionReject (SbeMessage message)
 SecurityDefinitionReject (void *data, EncodedLength length, NoInit, NoCheck) noexcept
auto securityReqId () const noexcept
ThisTypesecurityReqId (Int32 value) noexcept
auto securityResponseType () const noexcept
ThisTypesecurityResponseType (SecurityResponseTypeEnum value) noexcept
auto securityRequestType () const noexcept
ThisTypesecurityRequestType (SecurityRequestTypeEnum value) noexcept
auto marketTypeId () const noexcept
ThisTypemarketTypeId (Int32 value) noexcept
auto securityType () const noexcept
ThisTypesecurityType (SecurityTypeEnum value) noexcept
ThisTypesecurityType (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 6774 of file Messages.h.

Member Typedef Documentation

◆ Schema

Used template schema.

Definition at line 6779 of file Messages.h.

◆ ThisType

This type alias.

Definition at line 6782 of file Messages.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Message template ID from SBE schema.

Enumerator
TemplateId 155 

Definition at line 6785 of file Messages.h.

6785{ TemplateId = 155 };

Constructor & Destructor Documentation

◆ SecurityDefinitionReject() [1/6]

Initializes a blank instance.

◆ SecurityDefinitionReject() [2/6]

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

Initializes an instance over the given memory block.

Definition at line 6791 of file Messages.h.

6792 : SbeMessage(data, length, version)
6793 {
6794 checkVersion<Schema>(version);
6795 checkLength(length, version);
6796 init(TemplateId, minimalBlockLength(version), blockLength(version), Schema::Id);
6797 reset();
6798 }

◆ SecurityDefinitionReject() [3/6]

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 6803 of file Messages.h.

6804 : SbeMessage(data, length, version)
6805 {
6806 checkVersion<Schema>(version);
6807 checkLength(length, version);
6808 init(TemplateId, minimalBlockLength(version), blockLength(version), Schema::Id);
6809 resetVariableFields();
6810 }

◆ SecurityDefinitionReject() [4/6]

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

Creates an instance over the given memory block.

Definition at line 6813 of file Messages.h.

6814 : SbeMessage(data, length)
6815 {
6816 checkCompatibility();
6817 }

◆ SecurityDefinitionReject() [5/6]

SecurityDefinitionReject ( SbeMessage message)
inlineexplicit

Creates an instance over the given SBE message.

Definition at line 6821 of file Messages.h.

6822 : SbeMessage(message)
6823 {
6824 assert(message.valid());
6825
6826 checkCompatibility();
6827 }

◆ SecurityDefinitionReject() [6/6]

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

Creates an instance over the given memory block.

Performs no checks.

Definition at line 6831 of file Messages.h.

6832 : SbeMessage(data, length, NoCheck())
6833 {
6834 assert(schemaId() == Schema::Id);
6835 assert(version() >= Schema::MinimalVersion);
6836 assert(TemplateId == templateId());
6837 }
const char * version() noexcept

Member Function Documentation

◆ blockLength()

constexpr BlockLength blockLength ( SchemaVersion version)
inlinestaticconstexprnoexcept

Size of message body in bytes.

Definition at line 7003 of file Messages.h.

7004 {
7005 return
7006 ONIXS_ICEBOE_ASSERT(version >= Schema::MinimalVersion),
7007 minimalBlockLength(version);
7008 }

◆ calculateBinarySize()

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

Definition at line 7081 of file Messages.h.

7082 {
7083 return
7084 SbeMessage::calculateBinarySize(tail());
7085 }

◆ className()

constexpr StrRef className ( )
inlinestaticconstexprnoexcept
Returns
class name.

Definition at line 7050 of file Messages.h.

7051 {
7052 return constructStrRef("SecurityDefinitionReject");
7053 }
constexpr StrRef constructStrRef(const char(&value)[Size]) noexcept
Definition StrRef.h:414

◆ exchangeCode() [1/3]

auto exchangeCode ( ) const
inlinenoexcept

int32NULL.

Definition at line 6939 of file Messages.h.

6940 {
6941 constexpr BlockLength offset = 11;
6942
6943 return ordinary<NullInt32NULL>(offset, optional);
6944 }

◆ exchangeCode() [2/3]

ThisType & exchangeCode ( Int32NULL value)
inlinenoexcept

int32NULL.

Definition at line 6947 of file Messages.h.

6948 {
6949 constexpr BlockLength offset = 11;
6950
6951 setOrdinary(offset, value);
6952 return *this;
6953 }

◆ exchangeCode() [3/3]

ThisType & exchangeCode ( NullOpt )
inlinenoexcept

Definition at line 6955 of file Messages.h.

6956 {
6957 constexpr BlockLength offset = 11;
6958
6959 setOrdinary(offset, NullInt32NULL());
6960 return *this;
6961 }
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 7058 of file Messages.h.

7059 {
7060 return constructStrRef("d");
7061 }

◆ getMaxMessageSize()

constexpr UInt64 getMaxMessageSize ( UInt8 )
inlinestaticconstexprnoexcept

Maximal message size.

Definition at line 7023 of file Messages.h.

7024 {
7025 return
7026 static_cast<UInt64>(MessageHeaderBuilder::Size) +
7027 blockLength(Schema::Version);
7028 }

◆ getMinimalVariableFieldsSize()

constexpr MessageSize getMinimalVariableFieldsSize ( SchemaVersion version)
inlinestaticconstexpr

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

Definition at line 7013 of file Messages.h.

7014 {
7015 return
7016 ONIXS_ICEBOE_ASSERT(version >= Schema::MinimalVersion),
7017 0;
7018 }

◆ marketTypeId() [1/2]

auto marketTypeId ( ) const
inlinenoexcept

Provides access to marketTypeID field.

Definition at line 6895 of file Messages.h.

6896 {
6897 constexpr BlockLength offset = 6;
6898
6899 return ordinary<Int32>(offset);
6900 }

◆ marketTypeId() [2/2]

ThisType & marketTypeId ( Int32 value)
inlinenoexcept

Provides access to marketTypeID field.

Definition at line 6903 of file Messages.h.

6904 {
6905 constexpr BlockLength offset = 6;
6906
6907 setOrdinary(offset, value);
6908 return *this;
6909 }

◆ minimalBlockLength()

constexpr BlockLength minimalBlockLength ( SchemaVersion version)
inlinestaticconstexprnoexcept

Minimal size of message body in bytes.

Definition at line 6994 of file Messages.h.

6995 {
6996 return
6997 ONIXS_ICEBOE_ASSERT(version >= Schema::MinimalVersion),
6998 115;
6999 }

◆ reset()

ThisType & reset ( )
inlinenoexcept

Reset all variable-length and optional fields if any.

Definition at line 7037 of file Messages.h.

7038 {
7039 securityType(nullOpt);
7040 exchangeCode(nullOpt);
7041 text(nullOpt);
7042
7043 resetVariableFields();
7044 return *this;
7045 }

◆ resetVariableFields()

ThisType & resetVariableFields ( )
inlinenoexcept

Reset all variable-length fields if any.

Definition at line 7031 of file Messages.h.

7032 {
7033 return *this;
7034 }

◆ securityReqId() [1/2]

auto securityReqId ( ) const
inlinenoexcept

Provides access to securityReqID field.

Definition at line 6841 of file Messages.h.

6842 {
6843 constexpr BlockLength offset = 0;
6844
6845 return ordinary<Int32>(offset);
6846 }

◆ securityReqId() [2/2]

ThisType & securityReqId ( Int32 value)
inlinenoexcept

Provides access to securityReqID field.

Definition at line 6849 of file Messages.h.

6850 {
6851 constexpr BlockLength offset = 0;
6852
6853 setOrdinary(offset, value);
6854 return *this;
6855 }

◆ securityRequestType() [1/2]

auto securityRequestType ( ) const
inlinenoexcept

Provides access to securityRequestType field.

Definition at line 6877 of file Messages.h.

6878 {
6879 constexpr BlockLength offset = 5;
6880
6881 return enumeration<SecurityRequestTypeEnum>(offset);
6882 }

◆ securityRequestType() [2/2]

ThisType & securityRequestType ( SecurityRequestTypeEnum value)
inlinenoexcept

Provides access to securityRequestType field.

Definition at line 6885 of file Messages.h.

6886 {
6887 constexpr BlockLength offset = 5;
6888
6889 setEnumeration<SecurityRequestTypeEnum>(offset, value);
6890 return *this;
6891 }

◆ securityResponseType() [1/2]

auto securityResponseType ( ) const
inlinenoexcept

Provides access to securityResponseType field.

Definition at line 6859 of file Messages.h.

6860 {
6861 constexpr BlockLength offset = 4;
6862
6863 return enumeration<SecurityResponseTypeEnum>(offset);
6864 }

◆ securityResponseType() [2/2]

ThisType & securityResponseType ( SecurityResponseTypeEnum value)
inlinenoexcept

Provides access to securityResponseType field.

Definition at line 6867 of file Messages.h.

6868 {
6869 constexpr BlockLength offset = 4;
6870
6871 setEnumeration<SecurityResponseTypeEnum>(offset, value);
6872 return *this;
6873 }

◆ securityType() [1/3]

auto securityType ( ) const
inlinenoexcept

uint8NULL.

Definition at line 6913 of file Messages.h.

6914 {
6915 constexpr BlockLength offset = 10;
6916
6917 return enumeration<SecurityTypeEnum, NullUint8NULL>(offset, optional);
6918 }

◆ securityType() [2/3]

ThisType & securityType ( NullOpt )
inlinenoexcept

Definition at line 6929 of file Messages.h.

6930 {
6931 constexpr BlockLength offset = 10;
6932
6933 setOrdinary(offset, NullUint8NULL());
6934 return *this;
6935 }
IntegralConstant< UInt8, 255 > NullUint8NULL
Null value for an optional Uint8NULL field.
Definition Fields.h:1006

◆ securityType() [3/3]

ThisType & securityType ( SecurityTypeEnum value)
inlinenoexcept

uint8NULL.

Definition at line 6921 of file Messages.h.

6922 {
6923 constexpr BlockLength offset = 10;
6924
6925 setEnumeration<SecurityTypeEnum>(offset, value);
6926 return *this;
6927 }

◆ tail()

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

Definition at line 7069 of file Messages.h.

7070 {
7071 return
7074 binary(),
7075 static_cast<ptrdiff_t>(SbeMessage::blockLength()) +
7076 MessageHeader::Size));
7077 }
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 6965 of file Messages.h.

6966 {
6967 constexpr BlockLength offset = 15;
6968 constexpr BlockLength length = 100;
6969
6970 return fixedStr<length>(offset, optional);
6971 }

◆ text() [2/3]

ThisType & text ( NullOpt )
inlinenoexcept

Definition at line 6983 of file Messages.h.

6984 {
6985 constexpr BlockLength offset = 15;
6986 constexpr BlockLength length = 100;
6987
6988 setFixedStr<length>(offset, StrRef());
6989 return *this;
6990 }
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 6974 of file Messages.h.

6975 {
6976 constexpr BlockLength offset = 15;
6977 constexpr BlockLength length = 100;
6978
6979 setFixedStr<length>(offset, value);
6980 return *this;
6981 }

◆ toString()

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

Definition at line 555 of file MessageSerialization.h.

556{
557 return toStr(*this);
558}
std::string toStr(Order::PriceOptional value)
Definition Order.cpp:34