B2BITS FIX Antenna HFT
1.0.16
|
It is used for storing the Contents information (data + length). More...
#include <B2BITS_FIXFieldValue.h>
Public Member Functions | |
void | clear () |
Resets internal storage. More... | |
FIXFieldValue () | |
Constructs empty sequence. More... | |
FIXFieldValue (const char *str) | |
Constructs object from null-terminated C-string. More... | |
FIXFieldValue (const char *data, std::size_t length) | |
Constructs object from char chain. More... | |
FIXFieldValue (const FIXFieldValue &fieldValue) | |
Copy constructor. More... | |
bool | isEmpty () const |
Verifies is sequence empty. More... | |
bool | operator!= (const FIXFieldValue &fieldValue) const |
Compares two object. More... | |
bool | operator== (const FIXFieldValue &fieldValue) const |
Compares two object. More... | |
bool | operator== (const char *val) const |
Compares with null-terminated char* std::string. More... | |
int | toSigned () const |
Returns signed numeric value of sequence. More... | |
System::i64 | toSigned64 () const |
Returns signed 64bit numeric value of sequence. More... | |
unsigned int | toUnsigned () const |
Returns unsigned numeric value of sequence. More... | |
System::u64 | toUnsigned64 () const |
Returns signed 64bit numeric value of sequence. More... | |
Static Public Member Functions | |
static int | compare (const FIXFieldValue &firstValue, const FIXFieldValue &secondValue) |
Compares two sequences in 'std::strcmp' style. More... | |
Public Attributes | |
const char * | data_ |
Pointer to byte array. More... | |
std::size_t | length_ |
Length of sequence. More... | |
It is used for storing the Contents information (data + length).
Engine::FIXFieldValue::FIXFieldValue | ( | ) |
Constructs empty sequence.
|
explicit |
Constructs object from null-terminated C-string.
Engine::FIXFieldValue::FIXFieldValue | ( | const char * | data, |
std::size_t | length | ||
) |
Constructs object from char chain.
Engine::FIXFieldValue::FIXFieldValue | ( | const FIXFieldValue & | fieldValue | ) |
Copy constructor.
void Engine::FIXFieldValue::clear | ( | ) |
Resets internal storage.
|
static |
Compares two sequences in 'std::strcmp' style.
firstValue | lvalue |
secondValue | rvalue |
|
inline |
Verifies is sequence empty.
References length_.
bool Engine::FIXFieldValue::operator!= | ( | const FIXFieldValue & | fieldValue | ) | const |
Compares two object.
Based on compare() member.
fieldValue | Instance of FIXFieldValue to compare with. |
bool Engine::FIXFieldValue::operator== | ( | const FIXFieldValue & | fieldValue | ) | const |
Compares two object.
Based on compare() member.
fieldValue | Instance of FIXFieldValue to compare with. |
bool Engine::FIXFieldValue::operator== | ( | const char * | val | ) | const |
Compares with null-terminated char* std::string.
Based on compare() member.
val | null-terminated std::string to compare with. |
int Engine::FIXFieldValue::toSigned | ( | ) | const |
Returns signed numeric value of sequence.
System::i64 Engine::FIXFieldValue::toSigned64 | ( | ) | const |
Returns signed 64bit numeric value of sequence.
Utils::Exception | If value cannot be converted |
unsigned int Engine::FIXFieldValue::toUnsigned | ( | ) | const |
Returns unsigned numeric value of sequence.
Utils::Exception | If value cannot be converted |
System::u64 Engine::FIXFieldValue::toUnsigned64 | ( | ) | const |
Returns signed 64bit numeric value of sequence.
Utils::Exception | If value cannot be converted |
const char* Engine::FIXFieldValue::data_ |
std::size_t Engine::FIXFieldValue::length_ |
Length of sequence.
Referenced by ShortStr< OPT_MATURITY_LEN+CALLPUT_LEN+MAX_STRIKE_LEN >::append(), ShortStr< OPT_MATURITY_LEN+CALLPUT_LEN+MAX_STRIKE_LEN >::assign(), fix_algo::fill_reject_8(), fix_algo::fill_reply_8_cross(), fix_algo::fill_ucxl_8(), isEmpty(), and Parser::LiteFixMessage::isEqual().