fix8
version 1.4.0
Open Source C++ FIX Framework
|
Static metadata context class - one per FIX xml schema. More...
#include <message.hpp>
Public Member Functions | |
F8MetaCntx (const unsigned version, const MsgTable &bme, const FieldTable &be, const char **cn, const f8String &bg) | |
~F8MetaCntx () | |
Dtor. More... | |
const BaseEntry * | find_be (const unsigned short fnum) const |
const BaseEntry * | reverse_find_be (const char *fieldstr) const |
unsigned short | reverse_find_fnum (const char *fieldstr) const |
BaseField * | create_field (unsigned short fnum, const char *from) const |
BaseField * | create_field (const char *tag, const char *from) const |
const BaseMsgEntry * | find_bme (const char *tag) const |
const BaseMsgEntry * | reverse_find_bme (const char *msgstr) const |
Message * | create_msg_from_longname (const char *tag, bool deepctor=true) const |
Message * | create_msg (const char *tag, bool deepctor=true) const |
unsigned | version () const |
const f8String & | get_beginStr () const |
Static Public Member Functions | |
static bool | _comp (const char *p1, const char *p2) |
Public Attributes | |
const unsigned | _version |
4 digit fix version <Major:1><Minor:1><Revision:2> eg. 4.2r10 is 4210 More... | |
const MsgTable & | _bme |
Framework generated lookup table to generate Fix messages. More... | |
const FieldTable & | _be |
Framework generated lookup table to generate Fix fields. More... | |
const char ** | _cn |
Framework generated component name table. More... | |
const unsigned | _flu_sz |
Number of elements in Hash array. More... | |
const BaseEntry ** | _flu |
Hash array for field lookup (built by ctor) More... | |
msg_create | _mk_hdr |
References to the header and trailer create functions. More... | |
msg_create | _mk_trl |
const f8String | _beginStr |
Fix header beginstring. More... | |
const size_t | _preamble_sz |
Preamble length. More... | |
ReverseMsgTable | _reverse_msgtable |
ReverseFieldTable | _reverse_fieldtable |
Static metadata context class - one per FIX xml schema.
Definition at line 210 of file message.hpp.
|
inline |
Ctor.
version | FIX version |
bme | Generated Message Table |
be | Generated Field Table |
cn | Component name table |
bg | BeginString |
Definition at line 242 of file message.hpp.
References FIX8::_pair< Key, Val >::_key, FIX8::_pair< Key, Val >::_value, FIX8::GeneratedTable< Key, Val >::at(), FIX8::GeneratedTable< Key, Val >::begin(), FIX8::GeneratedTable< Key, Val >::end(), and FIX8::GeneratedTable< Key, Val >::size().
|
inline |
Dtor.
Definition at line 262 of file message.hpp.
References _flu.
|
inlinestatic |
Definition at line 234 of file message.hpp.
|
inline |
Create a new field of the tag type passed, and from the raw string given.
fnum | FIX field number |
from | const char ptr to string containing value to construct from |
Definition at line 300 of file message.hpp.
References FIX8::BaseEntry::_create, FIX8::Inst::_do, FIX8::BaseEntry::_rlm, and find_be().
|
inline |
Create a new field of the tag type passed, and from the raw string given.
tag | const char ptr to longname of field to create |
from | const char ptr to string containing value to construct from |
Definition at line 310 of file message.hpp.
References FIX8::BaseEntry::_create, FIX8::Inst::_do, FIX8::BaseEntry::_rlm, and reverse_find_be().
|
inline |
Create a new message of the tag type passed.
tag | const char ptr to tag of message |
deepctor | if true, do deep message construction |
Definition at line 344 of file message.hpp.
References FIX8::BaseMsgEntry::_create, FIX8::Minst::_do, and find_bme().
|
inline |
Create a new message from longname
tag | const char ptr to tag of message |
deepctor | if true, do deep message construction |
Definition at line 334 of file message.hpp.
References FIX8::BaseMsgEntry::_create, FIX8::Minst::_do, and reverse_find_bme().
|
inline |
Get the field BaseEntry object for this field number. Will use fast field index lookup.
fnum | field to get |
Definition at line 267 of file message.hpp.
Referenced by FIX8::MessageBase::check_set_rlm(), and create_field().
|
inline |
Get the message BaseMsgEntry object for this message.
tag | const char ptr to name of message to get |
Definition at line 319 of file message.hpp.
References FIX8::GeneratedTable< Key, Val >::find_ptr().
Referenced by create_msg().
|
inline |
Get fix header beginstring
Definition at line 356 of file message.hpp.
References _beginStr.
|
inline |
Get the field BaseEntry object for this field by tag. Reverse lookup.
fieldstr | const char ptr to longname of field to get |
Definition at line 273 of file message.hpp.
Referenced by create_field().
|
inline |
Get the message BaseMsgEntry object for this message. Reverse lookup.
msgstr | const char ptr to longname of message to get |
Definition at line 324 of file message.hpp.
Referenced by create_msg_from_longname().
|
inline |
Get the field number for this field by tag. Reverse lookup.
fieldstr | const char ptr to longname of field to get |
Definition at line 286 of file message.hpp.
Referenced by FIX8::MessageBase::get_field_by_name(), and FIX8::Message::get_field_by_name_flattened().
|
inline |
4 digit fix version <Major:1><Minor:1><Revision:2> eg. 4.2r10 is 4210
Definition at line 352 of file message.hpp.
References _version.
Referenced by main().
const FieldTable& FIX8::F8MetaCntx::_be |
Framework generated lookup table to generate Fix fields.
Definition at line 218 of file message.hpp.
const f8String FIX8::F8MetaCntx::_beginStr |
Fix header beginstring.
Definition at line 228 of file message.hpp.
Referenced by get_beginStr(), FIX8::Session::handle_logon(), and main().
const MsgTable& FIX8::F8MetaCntx::_bme |
Framework generated lookup table to generate Fix messages.
Definition at line 216 of file message.hpp.
Referenced by FIX8::Session::create_msg(), and FIX8::Message::factory().
const char** FIX8::F8MetaCntx::_cn |
Framework generated component name table.
Definition at line 220 of file message.hpp.
const BaseEntry** FIX8::F8MetaCntx::_flu |
Hash array for field lookup (built by ctor)
Definition at line 224 of file message.hpp.
Referenced by ~F8MetaCntx().
const unsigned FIX8::F8MetaCntx::_flu_sz |
Number of elements in Hash array.
Definition at line 222 of file message.hpp.
msg_create FIX8::F8MetaCntx::_mk_hdr |
References to the header and trailer create functions.
Definition at line 226 of file message.hpp.
msg_create FIX8::F8MetaCntx::_mk_trl |
Definition at line 226 of file message.hpp.
const size_t FIX8::F8MetaCntx::_preamble_sz |
Preamble length.
Definition at line 230 of file message.hpp.
ReverseFieldTable FIX8::F8MetaCntx::_reverse_fieldtable |
Definition at line 233 of file message.hpp.
ReverseMsgTable FIX8::F8MetaCntx::_reverse_msgtable |
Definition at line 232 of file message.hpp.
const unsigned FIX8::F8MetaCntx::_version |
4 digit fix version <Major:1><Minor:1><Revision:2> eg. 4.2r10 is 4210
Definition at line 213 of file message.hpp.
Referenced by version().