EPAM B2BITS C++ MOEX/Spectra MarketData handler  1.24.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Static Public Member Functions | Friends | List of all members
B2bits::MD::FIXMessage Class Reference

#include <b2bits/fix/FIXMessage.h>

Inheritance diagram for B2bits::MD::FIXMessage:
Inheritance graph
[legend]
Collaboration diagram for B2bits::MD::FIXMessage:
Collaboration graph
[legend]

Public Member Functions

AsciiString getSenderCompID () const
 
AsciiString getTargetCompID () const
 
int getSeqNum () const
 
AsciiString type () const
 
const std::string * toString (char substChar= ' ') const
 
const char * toRaw (int *size) const
 
FIXMessageclone () const
 
void release () const
 
- Public Member Functions inherited from B2bits::MD::TagValue
bool isNull () const
 
bool get (int tag, FIXFieldValue *value) const
 
bool hasFlag (int tag) const
 
bool isSupported (int tag) const
 
const FIXGroup getGroup (int tag) const
 
const FIXGroup getAsGroup (int tag) const
 
void write (int tag, std::ostream &stream) const
 
i64 getAsInt64 (int tag) const
 
u64 getAsUInt64 (int tag) const
 
i32 getAsInt32 (int tag) const
 
u32 getAsUInt32 (int tag) const
 
int getAsInt (int tag) const
 
unsigned int getAsUInt (int tag) const
 
double getAsDouble (int tag) const
 
Decimal getAsDecimal (int tag) const
 
char getAsChar (int tag) const
 
AsciiString getAsString (int tag) const
 
bool get (int tag, std::string *value) const
 
ByteArray getAsRaw (int tag) const
 
bool getAsBoolean (int tag) const
 
bool getAsBool (int tag) const
 
MonthYear getAsMonthYear (int tag) const
 
LocalMktDate getAsLocalMktDate (int tag) const
 
UTCDateOnly getAsDateOnly (int tag) const
 
UTCTimeOnly getAsTimeOnly (int tag) const
 
UTCTimestamp getAsTimestamp (int tag) const
 
MultipleString getAsMultipleString (int tag) const
 
MultipleChar getAsMultipleChar (int tag) const
 
bool isEqual (int tag, TagValue const &rv, int rvTag) const
 
bool isEmpty (int tag) const
 
bool hasValue (int tag) const
 

Static Public Member Functions

static void release (FIXMessage const *msg)
 

Friends

struct FIXFactory
 

Additional Inherited Members

- Protected Member Functions inherited from B2bits::MD::TagValue
 TagValue ()
 

Member Function Documentation

FIXMessage* B2bits::MD::FIXMessage::clone ( ) const

Duplicates the given message. To free allocated resources - use release() method

Returns
duplicated FIXMessage
AsciiString B2bits::MD::FIXMessage::getSenderCompID ( ) const

Returns the SenderCompID field.

Returns
Value of the SenderCompID field.
int B2bits::MD::FIXMessage::getSeqNum ( ) const

Returns the MsgSeqNum field.

Returns
Value of the MsgSeqNum field.
AsciiString B2bits::MD::FIXMessage::getTargetCompID ( ) const

Returns the TargetCompID field.

Returns
Value of the TargetCompID field.
void B2bits::MD::FIXMessage::release ( ) const

Releases FIX message instance.

See Also
release(FIXMessage* msg)
static void B2bits::MD::FIXMessage::release ( FIXMessage const *  msg)
static

Releases FIX message instance. Must be called only for messages created by clone() method

Parameters
msgInstance of FIXMessage class.
const char* B2bits::MD::FIXMessage::toRaw ( int *  size) const

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.
This method is not thread safe
Warning
Returned buffer does not have null-terminator.
const std::string* B2bits::MD::FIXMessage::toString ( char  substChar = ' ') const

Returns the formatted representation of the message.

Parameters
substCharcharacter to use instead of unreadable symbols (less than 0x20 and greater than 0x7F).
Warning
This method is not thread safe
Intended for debugging only.
AsciiString B2bits::MD::FIXMessage::type ( ) const

Returns the MsgType field.

Returns
Value of the MsgType field.

Friends And Related Function Documentation

friend struct FIXFactory
friend