libjmmcg
build_2176
A C++ library containing an eclectic mix of useful, advanced components.
|
The basic, underlying type used to implement FIX message reading. More...
#include <messages.hpp>
Public Types | |
enum | : MsgTypes_t { type_const =static_cast<MsgTypes_t>(msg_version_t::msg_type::tag) } |
using | Header_t = Header< MsgVer > |
using | msg_version_t = typename Header_t::msg_version_t |
using | element_type = typename Header_t::element_type |
using | pointer = typename Header_t::pointer |
using | const_pointer = typename Header_t::const_pointer |
using | size_type = typename Header_t::size_type |
Public Types inherited from jmmcg::exchanges::FIX::common::Header< MsgVer > | |
enum | : bool { has_static_size =false } |
enum | : std::size_t { header_t_size =msg_version_t::fix_template_body_length_offset+sizeof(JMMCG_FIX_MSG_BODY_LENGTH_NULL)+1 } |
using | msg_version_t = MsgVer |
using | element_type = char |
using | pointer = element_type * |
using | const_pointer = element_type const * |
using | size_type = std::size_t |
Public Member Functions | |
constexpr __stdcall | Message () noexcept(true) |
Wrap a FIX message contained in an array of chars that has been written into from a socket or elsewhere. More... | |
constexpr __stdcall | Message (logon_args_t const &) noexcept(true) |
constexpr __stdcall | Message (logoff_args_t const &) noexcept(true) |
template<class SrcMsg > | |
__stdcall | Message (SrcMsg const &msg)=delete |
Create a message from the source message, into the underlying buffer. More... | |
template<class SrcMsg , class RefData > | |
__stdcall | Message (SrcMsg const &msg, RefData const &ref_data)=delete |
Create a message from the source message, into the underlying buffer. More... | |
template<class RefData , class... Fields> | |
Message (RefData const &ref_data, Fields...fields) | |
constexpr size_type __fastcall | size () const noexcept(true) |
Determine the size of the referenced message. More... | |
template<FieldsFast field> | |
constexpr bool __fastcall | search () const noexcept(true) |
Determine if the specified tag is in the referenced message. More... | |
checksum_t | generate_checksum (size_type body_len) const noexcept(true) |
Generate the checksum for the referenced FIX message. More... | |
constexpr bool | is_valid () const noexcept(true) |
Verify that the referenced FIX message is valid. More... | |
constexpr bool | is_checksum_valid (size_type body_len, const_pointer start_of_checksum_value) const noexcept(true) |
Verify that the checksum of the referenced FIX message is valid. More... | |
std::string | to_string () const noexcept(false) |
template<> | |
Message (exchanges::BATSBOE::common::OrderExecution const &msg) | |
template<> | |
Message (exchanges::BATSBOE::common::OrderRejected const &msg) | |
template<> | |
Message (exchanges::BATSBOE::common::CancelRejected const &msg) | |
template<> | |
Message (exchanges::BATSBOE::common::UserModifyRejected const &msg) | |
template<> | |
Message (exchanges::BATSBOE::common::OrderCancelled const &msg) | |
template<> | |
Message (MIT::BIT::MsgTypes::ExecutionReport const &msg, MIT::BIT::ref_data_t rd) | |
template<> | |
Message (MIT::JSE::MsgTypes::ExecutionReport const &msg, MIT::JSE::ref_data_t rd) | |
template<> | |
Message (MIT::LSE::MsgTypes::ExecutionReport const &msg, MIT::LSE::ref_data_t rd) | |
template<> | |
Message (MIT::OSLO::MsgTypes::ExecutionReport const &msg, MIT::OSLO::ref_data_t rd) | |
template<> | |
Message (MIT::TRQ::MsgTypes::ExecutionReport const &msg, MIT::TRQ::ref_data_t rd) | |
template<> | |
Message (MIT::BIT::MsgTypes::ExecutionReport const &msg) | |
template<> | |
Message (MIT::JSE::MsgTypes::ExecutionReport const &msg) | |
template<> | |
Message (MIT::LSE::MsgTypes::ExecutionReport const &msg) | |
template<> | |
Message (MIT::OSLO::MsgTypes::ExecutionReport const &msg) | |
template<> | |
Message (MIT::TRQ::MsgTypes::ExecutionReport const &msg) | |
template<> | |
Message (MIT::BIT::MsgTypes::OrderCancelReject const &msg) | |
template<> | |
Message (MIT::JSE::MsgTypes::OrderCancelReject const &msg) | |
template<> | |
Message (MIT::LSE::MsgTypes::OrderCancelReject const &msg) | |
template<> | |
Message (MIT::OSLO::MsgTypes::OrderCancelReject const &msg) | |
template<> | |
Message (MIT::TRQ::MsgTypes::OrderCancelReject const &msg) | |
template<> | |
Message (MIT::BIT::MsgTypes::Reject const &msg) | |
template<> | |
Message (MIT::JSE::MsgTypes::Reject const &msg) | |
template<> | |
Message (MIT::LSE::MsgTypes::Reject const &msg) | |
template<> | |
Message (MIT::OSLO::MsgTypes::Reject const &msg) | |
template<> | |
Message (MIT::TRQ::MsgTypes::Reject const &msg) | |
template<> | |
Message (MIT::BIT::MsgTypes::BusinessReject const &msg) | |
template<> | |
Message (MIT::JSE::MsgTypes::BusinessReject const &msg) | |
template<> | |
Message (MIT::LSE::MsgTypes::BusinessReject const &msg) | |
template<> | |
Message (MIT::OSLO::MsgTypes::BusinessReject const &msg) | |
template<> | |
Message (MIT::TRQ::MsgTypes::BusinessReject const &msg) | |
Public Member Functions inherited from jmmcg::exchanges::FIX::common::Header< MsgVer > | |
constexpr __stdcall | Header () noexcept(true) |
Create a FIX message from an array of chars read from a socket or elsewhere. More... | |
constexpr size_type | length () const noexcept(true) |
Determine the total size of the referenced message. More... | |
template<FieldsFast field> | |
constexpr field_str_range_t __fastcall | find () noexcept(true) |
Determine if the specified tag is in the referenced message. More... | |
template<FieldsFast field> | |
constexpr field_str_range_t const __fastcall | find () const noexcept(true) |
Determine if the specified tag is in the referenced message. More... | |
MsgTypes | type () const noexcept(true) __attribute__((pure)) |
Static Public Member Functions | |
template<FieldsFast field> | |
static constexpr underlying_fix_data_buffer::iterator | add_field_tag (underlying_fix_data_buffer::iterator data) noexcept(true) |
Protected Member Functions | |
constexpr void | finalise_msg (underlying_fix_data_buffer::iterator) noexcept(true) |
Protected Member Functions inherited from jmmcg::exchanges::FIX::common::Header< MsgVer > | |
template<MsgTypes MsgType> | |
constexpr underlying_fix_data_buffer::iterator | set_header () noexcept(true) |
template<MsgTypes MsgType, class SrcMsg > | |
constexpr underlying_fix_data_buffer::iterator | set_sequence_num (SrcMsg const &msg) noexcept(true) |
Additional Inherited Members | |
Public Attributes inherited from jmmcg::exchanges::FIX::common::Header< MsgVer > | |
enum jmmcg::exchanges::FIX::common::Header:: { ... } | __attribute__ |
Protected Attributes inherited from jmmcg::exchanges::FIX::common::Header< MsgVer > | |
__attribute__((aligned(16))) char begin_string[sizeof(msg_version_t enum_tags::mpl::to_array < FieldsFast, FieldsFast::BodyLength > ::element_type | body_length_tag |
char | body_length_value [sizeof(JMMCG_FIX_MSG_BODY_LENGTH_NULL)-1] |
enum_tags::mpl::to_array < FieldsFast, FieldsFast::MsgType > ::element_type | msg_type_tag |
underlying_fix_data_buffer | data_ |
The basic, underlying type used to implement FIX message reading.
Definition at line 113 of file messages.hpp.
using jmmcg::exchanges::FIX::common::Message< MsgVer >::const_pointer = typename Header_t::const_pointer |
Definition at line 119 of file messages.hpp.
using jmmcg::exchanges::FIX::common::Message< MsgVer >::element_type = typename Header_t::element_type |
Definition at line 117 of file messages.hpp.
using jmmcg::exchanges::FIX::common::Message< MsgVer >::Header_t = Header<MsgVer> |
Definition at line 115 of file messages.hpp.
using jmmcg::exchanges::FIX::common::Message< MsgVer >::msg_version_t = typename Header_t::msg_version_t |
Definition at line 116 of file messages.hpp.
using jmmcg::exchanges::FIX::common::Message< MsgVer >::pointer = typename Header_t::pointer |
Definition at line 118 of file messages.hpp.
using jmmcg::exchanges::FIX::common::Message< MsgVer >::size_type = typename Header_t::size_type |
Definition at line 120 of file messages.hpp.
anonymous enum : MsgTypes_t |
Enumerator | |
---|---|
type_const |
Definition at line 122 of file messages.hpp.
|
inlineexplicitnoexcept |
Wrap a FIX message contained in an array of chars that has been written into from a socket or elsewhere.
b | The array of chars that must comprise a valid FIX message which is not automatically checked. |
Definition at line 128 of file messages_impl.hpp.
|
inlineexplicitnoexcept |
Definition at line 133 of file messages_impl.hpp.
|
inlineexplicitnoexcept |
Definition at line 138 of file messages_impl.hpp.
|
explicitdelete |
Create a message from the source message, into the underlying buffer.
In debug builds the validity of the FIX message is checked.
If an error is generated, then this function will need to be specialised for the particular SrcMsg.
msg | The source message from which the target message should be created. |
|
delete |
Create a message from the source message, into the underlying buffer.
In debug builds the validity of the FIX message is checked.
If an error is generated, then this function will need to be specialised for the particular SrcMsg.
msg | The source message from which the target message should be created. |
ref_data | The reference data to map from exchange-based instrument identifiers to client-based symbology. |
jmmcg::exchanges::FIX::common::Message< MsgVer >::Message | ( | RefData const & | ref_data, |
Fields... | fields | ||
) |
|
inline |
Definition at line 57 of file batsboe_common_to_fix_conversions.hpp.
|
inline |
Definition at line 90 of file batsboe_common_to_fix_conversions.hpp.
|
inline |
Definition at line 105 of file batsboe_common_to_fix_conversions.hpp.
Definition at line 118 of file batsboe_common_to_fix_conversions.hpp.
|
inline |
Definition at line 134 of file batsboe_common_to_fix_conversions.hpp.
|
inline |
Definition at line 146 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 184 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 224 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 264 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 304 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 344 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 356 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 368 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 380 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 392 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 404 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 420 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 436 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 452 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 468 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 484 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 496 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 508 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 520 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 532 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 544 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 560 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 576 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 592 of file mit_to_fix_conversions.hpp.
|
inline |
Definition at line 607 of file mit_to_fix_conversions.hpp.
|
inlinestaticnoexcept |
Definition at line 212 of file messages_impl.hpp.
|
inlineprotectednoexcept |
Definition at line 233 of file messages_impl.hpp.
|
inlinenoexcept |
Generate the checksum for the referenced FIX message.
body_len | The length of the body of the referenced FIX message. |
Definition at line 162 of file messages_impl.hpp.
|
inlinenoexcept |
Verify that the checksum of the referenced FIX message is valid.
body_len | The length of the body of the referenced FIX message. |
start_of_checksum_value | A pointer to that start of the checksum value embedded in the referenced FIX message. |
Definition at line 173 of file messages_impl.hpp.
|
inlinenoexcept |
Verify that the referenced FIX message is valid.
Definition at line 179 of file messages_impl.hpp.
|
inlinenoexcept |
Determine if the specified tag is in the referenced message.
field | The field to be found. Note that the range must contain the field otherwise the behaviour shall be undefined. |
Definition at line 152 of file messages_impl.hpp.
|
inlinenoexcept |
Determine the size of the referenced message.
The referenced message must be valid.
Definition at line 143 of file messages_impl.hpp.
|
inlinenoexcept |
Definition at line 221 of file messages_impl.hpp.