![]() |
B2BITS FIX Antenna C++
2.31.0
|
Processes raw messages and provides message verification capabilities. More...
#include <B2BITS_FIXMsgProcessor.h>
Public Types | |
enum | Option { PROHIBIT_TAGS_WITHOUT_VALUE, VERIFY_DATA_TAGS_SEQUENCE, VERIFY_TAGS_VALUES, PROHIBIT_UNKNOWN_TAGS, PROHIBIT_DUPLICATED_TAGS, VERIFY_REPEATING_GROUP_BOUNDS, CHECK_REQUIRED_TAGS, CHECK_REQUIRED_GROUP_FIELDS, ALLOW_ZERO_NUMINGROUP, IGNORE_UNKNOWN_FIELDS, VERIFY_REPEATING_GROUP_TAGS_ORDER } |
List of options available to control message parsing flow. More... | |
enum | OptionState { ON, OFF } |
Option state. More... | |
Public Member Functions | |
virtual void | check (const FIXMessage &fixMessage, unsigned char tagsDelimiter='\x01') const =0 |
Checks that the message contains all required and conditionally required fields. More... | |
virtual void | checkFields (const FIXMessage &fixMessage, unsigned char tagsDelimiter='\x01') const =0 |
Checks that the message contains valid values of fields. More... | |
virtual FIXMessage * | clone (const FIXMessage &fixMessage) const =0 |
Duplicates the given message. More... | |
virtual TagValue * | clone (const TagValue &instance) const =0 |
Duplicates the given TagValue instance. More... | |
virtual FIXMessage * | createReject (const FIXMessage &fixMessage, bool appReject=true) const =0 |
Creates corresponding reject for the source message. More... | |
virtual void | fillRequired (FIXMessage &fixMessage) const =0 |
Fills a message with required fields, blocks and repeating groups. More... | |
virtual OptionState | optionState (Option option) const =0 |
Returns the state of particular option. More... | |
virtual FIXMessage * | parse (char const *rawMessage, std::size_t rawMessageSize, SecurityAttributes *pSA=NULL, bool verifyBodyLength=false, bool verifyCheckSum=false, ProtocolIndex preferredVersion=NA, unsigned char tagsDelimiter='\x01') const =0 |
Parses the input std::string and creates corresponding structured message. More... | |
virtual FIXMessage * | parse (ParserID parserID, const char *rawMessage, std::size_t rawMessageSize, SecurityAttributes *pSA=NULL, bool verifyBodyLength=false, bool verifyCheckSum=false, ProtocolIndex preferredVersion=NA, unsigned char tagsDelimiter='\x01') const =0 |
Parses the input std::string and creates corresponding structured message. More... | |
FIXMessage * | parse (const std::string &rawMessage, SecurityAttributes *pSA=NULL, bool verifyBodyLength=false, bool verifyCheckSum=false, ProtocolIndex preferredVersion=NA, unsigned char tagsDelimiter='\x01') const |
Parses the input std::string and creates corresponding structured message. More... | |
FIXMessage * | parse (ParserID parserID, const std::string &rawMessage, SecurityAttributes *pSA=NULL, bool verifyBodyLength=false, bool verifyCheckSum=false, ProtocolIndex preferredVersion=NA, unsigned char tagsDelimiter='\x01') const |
Parses the input std::string and creates corresponding structured message. More... | |
virtual void | switchOption (Option option, OptionState state)=0 |
Changes state of particular parsing option. More... | |
Static Public Member Functions | |
static FIXMsgProcessor * | singleton () |
Returns the instance of the class. More... | |
Protected Member Functions | |
FIXMsgProcessor () | |
Constructor. More... | |
virtual | ~FIXMsgProcessor () |
Destructor. More... | |
Processes raw messages and provides message verification capabilities.
List of options available to control message parsing flow.
|
inlineprotected |
Constructor.
|
protectedvirtual |
Destructor.
|
pure virtual |
Checks that the message contains all required and conditionally required fields.
fixMessage | FIXMessage to check. |
tagsDelimiter |
Utils::Exception | if any required and conditionally required field is absent. |
|
pure virtual |
Checks that the message contains valid values of fields.
fixMessage | FIXMessage to check. |
tagsDelimiter |
Utils::Exception | if any field contains invalid value |
|
pure virtual |
Duplicates the given message.
fixMessage | message to duplicate |
|
pure virtual |
Creates corresponding reject for the source message.
fixMessage | message to be rejected |
appReject | when true application reject will be created, session when false |
|
pure virtual |
Fills a message with required fields, blocks and repeating groups.
fixMessage | FIXMessage to fill. |
|
pure virtual |
Returns the state of particular option.
option | Option to ckeck |
|
pure virtual |
Parses the input std::string and creates corresponding structured message.
rawMessage | message to parse. |
rawMessageSize | Size of the message to parse. |
pSA | pointer to SecurityAttributes class to decrypt input message. This parameter may be NULL if input message wasn't encrypted. |
verifyBodyLength | if true then conformance of the input message length to the 'BodyLength' field (tag 9) value will be checked. |
verifyCheckSum | if true then conformance of the input message checksum to the 'CheckSum' field (tag 10) value will be checked. |
preferredVersion | forces to use specified FIX version instead of using 'BeginString' field (tag 8) value. |
tagsDelimiter | symbol |
|
pure virtual |
Parses the input std::string and creates corresponding structured message.
parserID | Unique FIX parser identifier of the passed message. |
rawMessage | Message to parse. |
rawMessageSize | Message size. |
pSA | pointer to SecurityAttributes class to decrypt input message. This parameter may be NULL if input message wasn't encrypted. |
verifyBodyLength | if true then conformance of the input message length to the 'BodyLength' field (tag 9) value will be checked. |
verifyCheckSum | if true then conformance of the input message checksum to the 'CheckSum' field (tag 10) value will be checked. |
preferredVersion | forces to use specified FIX version instead of using 'BeginString' field (tag 8) value. |
tagsDelimiter | symbol |
|
inline |
Parses the input std::string and creates corresponding structured message.
rawMessage | message to parse. |
pSA | pointer to SecurityAttributes class to decrypt input message. This parameter may be NULL if input message wasn't encrypted. |
verifyBodyLength | if true then conformance of the input message length to the 'BodyLength' field (tag 9) value will be checked. |
verifyCheckSum | if true then conformance of the input message checksum to the 'CheckSum' field (tag 10) value will be checked. |
preferredVersion | forces to use specified FIX version instead of using 'BeginString' field (tag 8) value. |
tagsDelimiter | symbol |
|
inline |
Parses the input std::string and creates corresponding structured message.
parserID | Unique FIX parser identifier of the passed message. |
rawMessage | message to parse. |
pSA | pointer to SecurityAttributes class to decrypt input message. This parameter may be NULL if input message wasn't encrypted. |
verifyBodyLength | if true then conformance of the input message length to the 'BodyLength' field (tag 9) value will be checked. |
verifyCheckSum | if true then conformance of the input message checksum to the 'CheckSum' field (tag 10) value will be checked. |
preferredVersion | forces to use specified FIX version instead of using 'BeginString' field (tag 8) value. |
tagsDelimiter | symbol |
|
static |
Returns the instance of the class.
|
pure virtual |
Changes state of particular parsing option.
option | Option to change |
state | New state |