Public Types | |
| enum | ValidationOptions { CHECK_LENGTH = 2, CHECK_CHECK_SUM = 4 } |
| Validation options. More... | |
| enum | FORMAT { TAG_NUMBER = 1, TAG_NAME = 2 } |
| Format of the message string representation. More... | |
Public Member Functions | |
| Message (const std::string &nativeFixMessage) | |
| Constructs the FIX message object from the native (tag=value) representation. | |
| Message (const std::string &nativeFixMessage, int validationOptions) | |
| Constructs the FIX message object from the native (tag=value) representation. | |
| Message (const std::string &type, Version version) | |
| Constructor. | |
| Message (const char *type, Version version) | |
| Constructor. | |
| Message (const Message &msg) | |
| Copy Constructor. | |
| ~Message () | |
| Destructor. | |
| bool | operator== (const Message &rh) |
| bool | operator!= (const Message &rh) |
| void | assemble () |
| Updates the BodyLength (9) and CheckSum (10) fields. | |
| bool | contain (int tag) const |
| Returns 'true' if the message contains the field with the given tag, otherwise - 'false'. | |
| const std::string & | get (int tag) const |
| Returns the field value as a string. | |
| double | getDouble (int tag) const |
| Returns the field value as a floating-point number. | |
| Group * | getGroup (int numberOfInstancesTag) const |
| Returns the repeating group. | |
| int | getInteger (int tag) const |
| Returns the field value as an integer. | |
| const std::string & | getSenderCompID () const |
| Returns the assigned value used to identify firm sending message (SenderCompID (49) field value). | |
| int | getSeqNum () const |
| Returns the message sequence number (the MsgSeqNum (tag=34) field value). | |
| const std::string & | getTargetCompID () const |
| Returns the assigned value used to identify receiving firm (TargetCompID(56) field value). | |
| const std::string & | getType () const |
| Returns the message type (MsgType(35) field value). | |
| Version | getVersion () const |
| Returns the Financial Interface eXchange (FIX) protocol version. | |
| bool | hasFlag (int tag) const |
| Returns true if the given flag is present and it equals to "Y", otherwise false. | |
| bool | remove (int tag) |
| Removes the field. | |
| bool | set (int tag, int value) |
| Sets the integer field value. | |
| bool | set (int tag, double value) |
| Sets the double field value. | |
| bool | set (int tag, const std::string &value) |
| Sets the string field value. | |
| void | setFlag (int tag, bool value) |
| Sets the given flag to "Y" or "N". | |
| Group * | setGroup (int numberOfInstancesTag, int numberOfIntances) |
| Creates a new repeating group or changes the number of instances in the existing repeatign group. | |
| void | setSenderCompID (const std::string &value) |
| Sets the assigned value used to identify firm sending message (SenderCompID (49) field value). | |
| void | setSeqNum (int value) |
| Sets the message sequence number (the MsgSeqNum (tag=34) field value). | |
| void | setTargetCompID (const std::string &value) |
| Sets the assigned value used to identify receiving firm (TargetCompID(56) field value). | |
| const std::string & | toString () const |
| Returns the <tag>=<value> string representation of the message using the standard FIX delimiter ('0x01'). | |
| const std::string & | toString (char delimiter) const |
| Returns the <tag>=<value> string representation of the message using the given delimiter. | |
| const std::string & | toString (int format, char delimiter= ' ') const |
| Returns the <tag>=<value> string representation of the message using the given format and delimiter. | |
| void | validate () const |
| Validates the message. | |
Friends | |
| class | Session |
| struct | Session::Impl |
| class | FAST_1_0::Context |
| class | FAST_1_1::Encoder |
| class | FAST_1_1::Decoder |
| FF_API std::ostream & | operator<< (std::ostream &os, const Message &msg) |
Definition at line 29 of file Message.h.
| enum ValidationOptions |
| enum FORMAT |
| Message | ( | const std::string & | nativeFixMessage | ) |
Constructs the FIX message object from the native (tag=value) representation.
| Message | ( | const std::string & | nativeFixMessage, | |
| int | validationOptions | |||
| ) |
| ~Message | ( | ) |
Destructor.
| bool operator== | ( | const Message & | rh | ) |
| bool operator!= | ( | const Message & | rh | ) |
| void assemble | ( | ) |
Updates the BodyLength (9) and CheckSum (10) fields.
| bool contain | ( | int | tag | ) | const |
Returns 'true' if the message contains the field with the given tag, otherwise - 'false'.
| const std::string& get | ( | int | tag | ) | const |
Returns the field value as a string.
| double getDouble | ( | int | tag | ) | const |
Returns the field value as a floating-point number.
| Group* getGroup | ( | int | numberOfInstancesTag | ) | const |
Returns the repeating group.
| numberOfInstancesTag | Tag number of the field that defines the number of instances in this repeating group (the NoXXX field). |
| int getInteger | ( | int | tag | ) | const |
Returns the field value as an integer.
| const std::string& getSenderCompID | ( | ) | const |
Returns the assigned value used to identify firm sending message (SenderCompID (49) field value).
| int getSeqNum | ( | ) | const |
Returns the message sequence number (the MsgSeqNum (tag=34) field value).
| const std::string& getTargetCompID | ( | ) | const |
Returns the assigned value used to identify receiving firm (TargetCompID(56) field value).
| const std::string& getType | ( | ) | const |
Returns the message type (MsgType(35) field value).
| bool hasFlag | ( | int | tag | ) | const |
Returns true if the given flag is present and it equals to "Y", otherwise false.
| bool remove | ( | int | tag | ) |
Removes the field.
| bool set | ( | int | tag, | |
| int | value | |||
| ) |
Sets the integer field value.
| bool set | ( | int | tag, | |
| double | value | |||
| ) |
Sets the double field value.
| bool set | ( | int | tag, | |
| const std::string & | value | |||
| ) |
Sets the string field value.
| void setFlag | ( | int | tag, | |
| bool | value | |||
| ) |
Sets the given flag to "Y" or "N".
| Group* setGroup | ( | int | numberOfInstancesTag, | |
| int | numberOfIntances | |||
| ) |
Creates a new repeating group or changes the number of instances in the existing repeatign group.
| numberOfInstancesTag | Tag number of the field that defines the number of instances in this repeating group (the NoXXX field). | |
| numberOfIntances | Number of instances in the repeating group. |
| void setSenderCompID | ( | const std::string & | value | ) |
Sets the assigned value used to identify firm sending message (SenderCompID (49) field value).
| void setSeqNum | ( | int | value | ) |
Sets the message sequence number (the MsgSeqNum (tag=34) field value).
| void setTargetCompID | ( | const std::string & | value | ) |
Sets the assigned value used to identify receiving firm (TargetCompID(56) field value).
| const std::string& toString | ( | ) | const |
Returns the <tag>=<value> string representation of the message using the standard FIX delimiter ('0x01').
| const std::string& toString | ( | char | delimiter | ) | const |
Returns the <tag>=<value> string representation of the message using the given delimiter.
| const std::string& toString | ( | int | format, | |
| char | delimiter = ' ' | |||
| ) | const |
Returns the <tag>=<value> string representation of the message using the given format and delimiter.
| format | Format of the string representation, several FORMAT values could be joined using logical 'or' operator. | |
| delimiter | Fields delimiter. |
| void validate | ( | ) | const |
Validates the message.
friend class FAST_1_1::Encoder [friend] |
friend class FAST_1_1::Decoder [friend] |
| FF_API std::ostream& operator<< | ( | std::ostream & | os, | |
| const Message & | msg | |||
| ) | [friend] |
1.5.2