#include <b2bits/fix/FIXMessage.h>
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
-
const char* B2bits::MD::FIXMessage::toRaw |
( |
int * |
size | ) |
const |
Builds raw (native) representation of the message.
- Parameters
-
[out] | size | will 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
-
substChar | character to use instead of unreadable symbols (less than 0x20 and greater than 0x7F). |
- Warning
- This method is not thread safe
-
Intended for debugging only.
Returns the MsgType field.
- Returns
- Value of the MsgType field.