B2BITS FIX Antenna HFT  1.0.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Engine::FIXMessage Class Referenceabstract

Basic FIX message. More...

#include <B2BITS_FIXMessage.h>

+ Inheritance diagram for Engine::FIXMessage:
+ Collaboration diagram for Engine::FIXMessage:

Public Member Functions

virtual void checkFields () const =0
 Validates if values of defined fields match field types. More...
 
virtual void checkRequired (Parser::Options options) const =0
 Validates if required and conditionally required fields and blocks are present and unknown fields are absent. More...
 
virtual Engine::FIXMessagecloneMessage () const =0
 Creates a copy of the message. More...
 
virtual FIXMessageExextend () throw ()
 Returns extended interface of FIXMessage. More...
 
virtual FIXMessageEx const * extend () const throw ()
 Returns extended interface of FIXMessage. More...
 
 FIXMessage ()
 Constructor. More...
 
virtual FIXVersion getApplicationVersion () const =0 throw ()
 Returns the version of the FIX protocol. More...
 
virtual const char * getBuffer (int *size, SecurityAttributes *sa=NULL) const =0
 Returns a pointer to the internal message buffer that contains raw form (native FIX format) of the message. More...
 
virtual int getHeartBeatInterval () const =0
 Returns Heartbeat interval (HeartBtInt) in seconds. More...
 
System::u64 getNanosTimestamp ()
 Returns timestamp in nanoseconds set up to the message instance. More...
 
virtual AsciiString getSenderCompID () const =0
 Returns the SenderCompID field. More...
 
virtual int getSeqNum () const =0
 Returns the MsgSeqNum field. More...
 
virtual FIXVersion getSessionVersion () const =0 throw ()
 For the session message received from FIX50 session returns version of the session protocol. More...
 
virtual AsciiString getTargetCompID () const =0
 Returns the TargetCompID field. More...
 
System::u64 getUserData2 () const
 Returns user data attached to the message instance. More...
 
System::u64getUserData2Ptr ()
 Returns pointer to user data attached to the message instance. More...
 
virtual FIXVersion getVer () const =0 throw ()
 Returns the version of the FIX protocol. More...
 
virtual bool isAdministrativeMsg () const =0 throw ()
 Checks whether the message is a session level message. More...
 
virtual bool isBusinessMsgRejectMsg () const =0 throw ()
 Checks whether the message is a Business Level Reject message. More...
 
virtual bool isLiteMessage () const
 Returns true if actual type of the message instance is LiteFixMessage. More...
 
virtual bool isOriginal () const =0
 Checks the message's originality. More...
 
virtual bool isSessionLevelRejectMsg () const =0 throw ()
 Checks whether the message is a SessionLevelReject message. More...
 
void operator delete (void *obj)
 Overloaded delete operator. More...
 
void * operator new (std::size_t size)
 Overloaded new operator. More...
 
virtual ProtocolID protocolID () const =0 throw ()
 Returns unique protocol identifier of the message. More...
 
virtual void release () const =0
 Releases FIX message instance. More...
 
virtual void release ()=0
 Releases FIX message instance. More...
 
void setElem (Engine::FIXMessageElem *elem)
 Sets pointer to owner. More...
 
void setElem (Engine::MsgPipeElem *elem)
 Sets pointer to owner. More...
 
virtual bool setHeartBeatInterval (int hbi)=0
 Updates HeartBtInt field value. More...
 
void setNanosTimestamp (System::u64 timestampNanos)
 Sets timestamp in nanoseconds to the message instance. More...
 
void setSender (const std::string &senderCompID)
 Sets user data associated with the message, the data is stored on disk together with the message and will be available even after an application restart. More...
 
virtual void setSenderCompID (AsciiString senderCompID)=0
 Sets the SenderCompID field. More...
 
virtual bool setSeqNum (int msgSeqNum)=0
 Updates the MsgSeqNum field. More...
 
void setTarget (const std::string &targetCompID)
 Returns the TargetCompID field. More...
 
virtual void setTargetCompID (AsciiString targetCompID)=0
 Sets the TargetCompID field. More...
 
void setUserData2 (System::u64 userData)
 Attaches the user data to the message instance. More...
 
virtual const char * toRaw (int *size) const =0
 Builds raw (native) representation of the message. More...
 
virtual const char * toRaw (Engine::SecurityAttributes *sa, int *size) const =0
 Serializes message. More...
 
virtual const char * toRaw (SecurityAttributes *sa, Utils::RawBuffer *rawFixMsg, int *size) const =0
 Serializes message. More...
 
virtual const char * toRaw (SecurityAttributes *sa, Utils::RawBuffer *rawFixMsg, int *size, bool calculateCRC) const =0
 Serializes message. More...
 
virtual const std::string * toString (char substChar= ' ') const =0
 Returns the formatted representation of the message. More...
 
virtual AsciiString type () const =0 throw ()
 Returns the MsgType field. More...
 
virtual ~FIXMessage ()
 Destructor. More...
 
- Public Member Functions inherited from Engine::TagValue
virtual void copyTo (TagValue *dest, int destTag, int srcTag) const =0
 Copies field value to another instance of the TagValue. More...
 
virtual TagValueExextendTV ()=0 throw ()
 Returns extended interface of TagValue. More...
 
virtual TagValueEx const * extendTV () const =0 throw ()
 Returns extended interface of TagValue. More...
 
virtual bool get (int tag, FIXFieldValue *value) const =0
 Retrieves field value by tag number. More...
 
virtual bool getAsBoolean (int tag) const =0
 Returns field value. More...
 
virtual char getAsChar (int tag) const =0
 Returns field value. More...
 
virtual UTCDateOnly getAsDateOnly (int tag) const =0
 Returns field value. More...
 
virtual Decimal getAsDecimal (int tag) const =0
 Returns field value. More...
 
virtual double getAsDouble (int tag) const =0
 Returns field value. More...
 
FIXGroupgetAsGroup (int tag)
 Returns the repeating group instance found by the leading field tag number. More...
 
FIXGroup const & getAsGroup (int tag) const
 Returns the repeating group instance found by the leading field tag number. More...
 
virtual int getAsInt (int tag) const =0
 Returns field value. More...
 
virtual System::i32 getAsInt32 (int tag) const =0
 Returns field value. More...
 
virtual System::i64 getAsInt64 (int tag) const =0
 Returns field value. More...
 
virtual LocalMktDate getAsLocalMktDate (int tag) const =0
 Returns field value. More...
 
virtual MonthYear getAsMonthYear (int tag) const =0
 Returns field value. More...
 
virtual MultipleChar getAsMultipleChar (int tag) const =0
 Returns field value. More...
 
virtual MultipleString getAsMultipleString (int tag) const =0
 Returns field value. More...
 
virtual ByteArray getAsRaw (int tag) const =0
 Returns field value. More...
 
virtual AsciiString getAsString (int tag) const =0
 Returns field value. More...
 
virtual UTCTimeOnly getAsTimeOnly (int tag) const =0
 Returns field value. More...
 
virtual UTCTimestamp getAsTimestamp (int tag) const =0
 Returns field value. More...
 
virtual unsigned int getAsUInt (int tag) const =0
 Returns field value. More...
 
virtual System::u32 getAsUInt32 (int tag) const =0
 Returns field value. More...
 
virtual System::u64 getAsUInt64 (int tag) const =0
 Returns field value. More...
 
ConstFieldValue getField (int tag) const
 Returns value of the field specified by tag. More...
 
FieldValue getField (int tag)
 Returns value of the field specified by tag. More...
 
virtual FixFieldsContainergetFields () const =0
 Returns list of the message fields and their values. More...
 
virtual FIXGroup const * getGroup (int tag) const =0
 Returns the repeating group instance found by the leading field tag number. More...
 
virtual FIXGroupgetGroup (int tag)=0
 Returns the repeating group instance found by the leading field tag number. More...
 
virtual bool hasFlag (int tag) const =0
 Checks boolean field. More...
 
bool hasValue (int tag) const
 Returns true if value is defined; false otherwise. More...
 
virtual bool isEmpty (int tag) const =0
 Returns true if value of the field is empty; false otherwise. More...
 
virtual bool isEqual (int tag, TagValue const *rv, int rvTag) const =0
 Compares values of the fields. More...
 
virtual bool isSupported (int tag) const =0 throw ()
 Verifies is field acceptable in the message. More...
 
virtual bool remove (int tag)=0
 Empties field value by tag number. More...
 
virtual void remove (const std::set< int > &tags)=0
 Removes passed tags from message. More...
 
virtual void reserve (int tag, PreparedFieldIndex index, std::size_t size)=0
 Reserves memory to store prepared field value. More...
 
virtual bool set (int tag, MonthYear value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, LocalMktDate value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, UTCDateOnly value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, UTCTimeOnly value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, UTCTimestamp value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, System::i32 value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, System::u32 value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, System::i64 value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, System::u64 value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, double value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, Decimal value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, AsciiString value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, ByteArray value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, char value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, bool value)=0
 Updates field value by tag number. More...
 
bool set (int tag, char const *value)
 Updates field value by tag number. More...
 
virtual bool set (int tag, const MultipleString &value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, const MultipleChar &value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, const FIXFieldValue &value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, const std::string &value)=0
 Updates field value by tag number. More...
 
 TagValue ()
 Constructor. More...
 
virtual void write (int tag, std::ostream &stream) const =0
 Writes field value to the stream. More...
 
- Public Member Functions inherited from Engine::FIXMessageEx
 FIXMessageEx ()
 The constructor. More...
 
System::u64 generateNewGlobalId ()
 Generates the new globalMsgID for the message. More...
 
void generateNewGlobalIdBeforeSend ()
 Generates a new globalMsgID for the message before message is sent. More...
 
bool V12_API getBinaryData (const char *&buffer, size_t &dataSize) const
 This function can be used to get original binary data of the message if it is applicable for the message and session in context. More...
 
const PersistentDatagetPersistentData () const
 Returns the persistent data from the message. More...
 
PersistentDatagetPersistentData ()
 Returns the persistent data from the message. More...
 
const PersistentUserDatagetPersistentUserData () const
 Returns the user part of the persistent data from the message. More...
 
PersistentUserDatagetPersistentUserData ()
 Returns the user part of the persistent data from the message. More...
 
System::u64 getTimestamp ()
 Returns the sending/receiving timestamp. More...
 
void * getUserData () const
 Returns user data attached to the message instance. More...
 
bool isFromGapQueue () const
 Checks whether the message is from gap(out-of-sequence) queue. More...
 
bool needNewGlobIDBeforeSend ()
 Returns true if the message is configured to generate a new globalMsgID for the message before the message is sent. More...
 
void setNeedNewGlobIDBeforeSend (bool enable)
 Configures the message to generate a new globalMsgID for the message before the message is sent or to skip the generation. More...
 
const void setPersistentData (const PersistentData &persistentData)
 Sets the persistent data to the message. More...
 
void setPersistentUserData (const PersistentUserData &userData)
 Sets the user part of the persistent data to the message. More...
 
void setTimestamp (System::u64 timestampUsec)
 Sets the sending/receiving timestamp. More...
 
void setUserData (void *userData)
 Attaches the user data to the message instance. More...
 

Static Public Member Functions

static void release (FIXMessage const *msg)
 Releases FIX message instance. More...
 
- Static Public Member Functions inherited from Engine::TagValue
static void release (TagValue const *obj)
 Releases assigned resources. More...
 
- Static Public Member Functions inherited from Engine::FIXMessageEx
static System::u64 getCurrGlobalMsgId ()
 Returns the last generated GlobalMsgId. More...
 
static void seedGlobalMsgId (System::u64 globalMsgId)
 Initializes the global GlobalMsgId generator with the new start value. More...
 

Public Attributes

union {
   FIXMessageElem *   elem1
 Pointer to owner if owner is FIXMessageElem. More...
 
   MsgPipeElem *   elem2
 Pointer to owner if owner is MsgPipeElem. More...
 
}; 
 Pointer to owner. More...
 
struct {
   char   isElemType1_:1
 if owner is FIXMessageElem flag More...
 
}; 
 flags bitfields struct More...
 
System::u64 timestampNanos_
 Timestamp in nanoseconds field. More...
 
System::u64 userData2_
 User data field. More...
 
- Public Attributes inherited from Engine::FIXMessageEx
EngineTagDataengineTagData_
 This data field is used by the engine internaly, don't process or use it!. More...
 
bool isFromGapQueue_
 Flag indicating whatever this message is from gap(out-of-sequence) queue. More...
 
uint64_t measuredLatency_
 This data field is used to measure latency. More...
 
bool needNewGlobIDBeforeSend_
 The Generate-a-new-globalMsgID flag. More...
 
PersistentData persistentData_
 The persistent data assigned to the message instance. More...
 
System::u64 timestampNanos_
 The sending/receiving timestamp. More...
 
void * userData_
 The user data field. More...
 

Additional Inherited Members

- Public Types inherited from Engine::TagValue
typedef FieldValueT< TagValue
const > const 
ConstFieldValue
 
typedef FieldValueT< TagValueFieldValue
 
- Protected Member Functions inherited from Engine::TagValue
virtual ~TagValue ()
 Destructor. More...
 

Detailed Description

Basic FIX message.

To create FIXMessage instance use FIXMsgFactory::newSkel method. To parse raw FIX message use FIXMsgProcessor::parse method. To clone FIXMessage use FIXMsgProcessor::clone method.

See Also
FIXMsgFactory::newSkel
FIXMsgProcessor::parse
FIXMsgProcessor::clone

Constructor & Destructor Documentation

Engine::FIXMessage::FIXMessage ( )

Constructor.

virtual Engine::FIXMessage::~FIXMessage ( )
virtual

Destructor.

Member Function Documentation

virtual void Engine::FIXMessage::checkFields ( ) const
pure virtual

Validates if values of defined fields match field types.

Exceptions
Parser::ParserExceptionif validation is not passed.

Implemented in Parser::LiteFixMessage.

virtual void Engine::FIXMessage::checkRequired ( Parser::Options  options) const
pure virtual

Validates if required and conditionally required fields and blocks are present and unknown fields are absent.

Parameters
optionsvalidation options.
Exceptions
Parser::ParserExceptionif validation is not passed.

Implemented in Parser::LiteFixMessage.

virtual Engine::FIXMessage* Engine::FIXMessage::cloneMessage ( ) const
pure virtual

Creates a copy of the message.

Returns
the pointer to the new instance.

Implemented in Parser::LiteFixMessage.

virtual FIXMessageEx* Engine::FIXMessage::extend ( )
throw (
)
inlinevirtual

Returns extended interface of FIXMessage.

virtual FIXMessageEx const* Engine::FIXMessage::extend ( ) const
throw (
)
inlinevirtual

Returns extended interface of FIXMessage.

virtual FIXVersion Engine::FIXMessage::getApplicationVersion ( ) const
throw (
)
pure virtual

Returns the version of the FIX protocol.

For the message received from FIX50 session returns version of the application protocol.

Implemented in Parser::LiteFixMessage.

virtual const char* Engine::FIXMessage::getBuffer ( int *  size,
SecurityAttributes *  sa = NULL 
) const
pure virtual

Returns a pointer to the internal message buffer that contains raw form (native FIX format) of the message.

Parameters
sizethe receiving field for the buffer's size.
saSession's security attributes. Always set 0 for this parameter.
Deprecated:
Use toRaw(int* size) const instead.
virtual int Engine::FIXMessage::getHeartBeatInterval ( ) const
pure virtual

Returns Heartbeat interval (HeartBtInt) in seconds.

Returns
Heartbeat interval (HeartBtInt) in seconds.

Implemented in Parser::LiteFixMessage.

System::u64 Engine::FIXMessage::getNanosTimestamp ( )
inline

Returns timestamp in nanoseconds set up to the message instance.

virtual AsciiString Engine::FIXMessage::getSenderCompID ( ) const
pure virtual

Returns the SenderCompID field.

Returns
Value of the SenderCompID field.

Implemented in Parser::LiteFixMessage.

virtual int Engine::FIXMessage::getSeqNum ( ) const
pure virtual

Returns the MsgSeqNum field.

Returns
Value of the MsgSeqNum field.

Implemented in Parser::LiteFixMessage.

virtual FIXVersion Engine::FIXMessage::getSessionVersion ( ) const
throw (
)
pure virtual

For the session message received from FIX50 session returns version of the session protocol.

For the application message received from FIX50 session returns NA. Otherwise returns same result as getApplicationVersion() method.

Implemented in Parser::LiteFixMessage.

virtual AsciiString Engine::FIXMessage::getTargetCompID ( ) const
pure virtual

Returns the TargetCompID field.

Returns
Value of the TargetCompID field.

Implemented in Parser::LiteFixMessage.

System::u64 Engine::FIXMessage::getUserData2 ( ) const
inline

Returns user data attached to the message instance.

Note
The data is not processed by the engine e.g. no clone, no persist, no load
System::u64* Engine::FIXMessage::getUserData2Ptr ( )
inline

Returns pointer to user data attached to the message instance.

Note
The data is not processed by the engine e.g. no clone, no persist, no load
virtual FIXVersion Engine::FIXMessage::getVer ( ) const
throw (
)
pure virtual

Returns the version of the FIX protocol.

Deprecated:
Method is deprecated! The getApplicationVersion should be used to get version of protocol for the application message.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::FIXMessage::isAdministrativeMsg ( ) const
throw (
)
pure virtual

Checks whether the message is a session level message.

Returns
"true" if the message is a Session Level message. "false" otherwise.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::FIXMessage::isBusinessMsgRejectMsg ( ) const
throw (
)
pure virtual

Checks whether the message is a Business Level Reject message.

Returns
"true" if the message is a Business Level Reject message. "false" otherwise.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::FIXMessage::isLiteMessage ( ) const
inlinevirtual

Returns true if actual type of the message instance is LiteFixMessage.

Reimplemented in Parser::LiteFixMessage.

virtual bool Engine::FIXMessage::isOriginal ( ) const
pure virtual

Checks the message's originality.

Returns
Returns "true" if the message is original, i.e. PossDupFlag field value is empty or equals to 'N'. Otherwise returns "false".

Implemented in Parser::LiteFixMessage.

virtual bool Engine::FIXMessage::isSessionLevelRejectMsg ( ) const
throw (
)
pure virtual

Checks whether the message is a SessionLevelReject message.

Returns
"true" if the message is a Session Level Reject message. "false" otherwise.

Implemented in Parser::LiteFixMessage.

void Engine::FIXMessage::operator delete ( void *  obj)

Overloaded delete operator.

void* Engine::FIXMessage::operator new ( std::size_t  size)

Overloaded new operator.

virtual ProtocolID Engine::FIXMessage::protocolID ( ) const
throw (
)
pure virtual

Returns unique protocol identifier of the message.

Implemented in Parser::LiteFixMessage.

virtual void Engine::FIXMessage::release ( ) const
pure virtual

Releases FIX message instance.

See Also
release(FIXMessage* msg)

Implements Engine::TagValue.

Implemented in Parser::LiteFixMessage.

virtual void Engine::FIXMessage::release ( )
pure virtual

Releases FIX message instance.

See Also
release(FIXMessage* msg)

Implements Engine::TagValue.

Implemented in Parser::LiteFixMessage.

static void Engine::FIXMessage::release ( FIXMessage const *  msg)
static

Releases FIX message instance.

Parameters
msgInstance of FIXMessage class.
Warning
This method releases all resources assigned with message. So, don't call FIXGroup::release() for repeating group entries of this message after you call this method.
void Engine::FIXMessage::setElem ( Engine::FIXMessageElem elem)
inline

Sets pointer to owner.

Referenced by Engine::MsgPipeElem::MsgPipeElem().

void Engine::FIXMessage::setElem ( Engine::MsgPipeElem elem)
inline

Sets pointer to owner.

virtual bool Engine::FIXMessage::setHeartBeatInterval ( int  hbi)
pure virtual

Updates HeartBtInt field value.

Parameters
hbiNew heartbeat value.
Returns
allways returns true.

Implemented in Parser::LiteFixMessage.

void Engine::FIXMessage::setNanosTimestamp ( System::u64  timestampNanos)
inline

Sets timestamp in nanoseconds to the message instance.

See Also
get_nanosec()
void Engine::FIXMessage::setSender ( const std::string &  senderCompID)
inline

Sets user data associated with the message, the data is stored on disk together with the message and will be available even after an application restart.

Parameters
userdata Gets user data associated with the message, the data is stored on disk together with the message and will be available even after an application restart
userdata Returns the SenderCompID field.
Deprecated:
Use FIXMessage::getSenderCompID instead.
Returns
Value of the SenderCompID field. Sets the SenderCompID field.
Deprecated:
Use FIXMessage::setSenderCompID instead.
Parameters
senderCompIDNew SenderCompID value.

Referenced by ILink3V5::binToFix(), ILink3V7::binToFix(), and ILink3::binToFix().

virtual void Engine::FIXMessage::setSenderCompID ( AsciiString  senderCompID)
pure virtual

Sets the SenderCompID field.

Parameters
senderCompIDNew SenderCompID value.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::FIXMessage::setSeqNum ( int  msgSeqNum)
pure virtual

Updates the MsgSeqNum field.

Parameters
msgSeqNumNew MsgSeqNum value.
Returns
true field value was updated, false otherwise.

Implemented in Parser::LiteFixMessage.

void Engine::FIXMessage::setTarget ( const std::string &  targetCompID)
inline

Returns the TargetCompID field.

Deprecated:
Use FIXMessage::getTargetCompID instead.
Returns
Value of the TargetCompID field. Sets the TargetCompID field.
Deprecated:
Use FIXMessage::setTargetCompID instead.
Parameters
targetCompIDNew TargetCompID value.

Referenced by ILink3V5::binToFix(), ILink3V7::binToFix(), and ILink3::binToFix().

virtual void Engine::FIXMessage::setTargetCompID ( AsciiString  targetCompID)
pure virtual

Sets the TargetCompID field.

Parameters
targetCompIDNew TargetCompID value.

Implemented in Parser::LiteFixMessage.

void Engine::FIXMessage::setUserData2 ( System::u64  userData)
inline

Attaches the user data to the message instance.

Note
The data is not processed by the engine e.g. no clone, no persist, no load
virtual const char* Engine::FIXMessage::toRaw ( int *  size) const
pure virtual

Builds raw (native) representation of the message.

Parameters
[out]sizewill contain size of returned memory buffer.
Returns
Pointer to buffer contained raw form.
Note
This method should be used instead of getBuffer.
Warning
Returned buffer does not have null-terminator.

Implemented in Parser::LiteFixMessage.

Referenced by msgToRaw(), fix_algo::toLiteMessage(), fix_algo::turnToLiteMessage(), and fix_algo::turnToLiteMessageGlob().

virtual const char* Engine::FIXMessage::toRaw ( Engine::SecurityAttributes *  sa,
int *  size 
) const
pure virtual

Serializes message.

Parameters
sasecurity attributes. Optional.
[out]sizesize of the serialized message.
Returns
pointer to the internal buffer with serialized message.

Implemented in Parser::LiteFixMessage.

virtual const char* Engine::FIXMessage::toRaw ( SecurityAttributes *  sa,
Utils::RawBuffer rawFixMsg,
int *  size 
) const
pure virtual

Serializes message.

Parameters
sasecurity attributes. Optional.
rawFixMsgbuffer to store the serialized message.
[out]sizesize of the serialized message.
Returns
pointer to the buffer with serialized message.
virtual const char* Engine::FIXMessage::toRaw ( SecurityAttributes *  sa,
Utils::RawBuffer rawFixMsg,
int *  size,
bool  calculateCRC 
) const
pure virtual

Serializes message.

Parameters
sasecurity attributes. Optional.
rawFixMsgbuffer to store the serialized message.
[out]sizesize of the serialized message.
calculateCRCif true update CRC of the serialized message.
Returns
pointer to the buffer with serialized message.
virtual const std::string* Engine::FIXMessage::toString ( char  substChar = ' ') const
pure virtual

Returns the formatted representation of the message.

Parameters
substCharcharacter to use instead of unreadable symbols (< 0x20 and > 0x7F).
Warning
Intended for debugging only.

Implemented in Parser::LiteFixMessage.

virtual AsciiString Engine::FIXMessage::type ( ) const
throw (
)
pure virtual

Returns the MsgType field.

Deprecated:
Use FIXMessage::type method instead.
Returns
Value of the MsgType field. Returns the MsgType field.
Value of the MsgType field.

Implemented in Parser::LiteFixMessage.

Referenced by fix_algo::fill_reject(), and fix_algo::fill_reject_9().

Member Data Documentation

union { ... }

Pointer to owner.

struct { ... }

flags bitfields struct

FIXMessageElem* Engine::FIXMessage::elem1

Pointer to owner if owner is FIXMessageElem.

MsgPipeElem* Engine::FIXMessage::elem2

Pointer to owner if owner is MsgPipeElem.

char Engine::FIXMessage::isElemType1_

if owner is FIXMessageElem flag

System::u64 Engine::FIXMessage::timestampNanos_

Timestamp in nanoseconds field.

See Also
setNanosTimestamp(timestampNanos)
getNanosTimestamp()
System::u64 Engine::FIXMessage::userData2_

User data field.

See Also
setUserData2(userData)
getUserData2()