B2BITS FIX Antenna C++ 2.33.0
|
It is used for storing the Contents information (data + length). More...
#include <B2BITS_FIXFieldValue.h>
Public Member Functions | |
void | clear () |
Resets internal storage. | |
FIXFieldValue () | |
Constructs empty sequence. | |
FIXFieldValue (const char *data, std::size_t length) | |
Constructs object from char chain. | |
FIXFieldValue (const char *str) | |
Constructs object from null-terminated C-string. | |
bool | isEmpty () const |
Verifies is sequence empty. | |
bool | operator!= (const FIXFieldValue &fieldValue) const |
Compares two object. | |
bool | operator== (const char *val) const |
Compares with null-terminated char* std::string. | |
bool | operator== (const FIXFieldValue &fieldValue) const |
Compares two object. | |
int | toSigned () const |
Returns signed numeric value of sequence. | |
System::i64 | toSigned64 () const |
Returns signed 64bit numeric value of sequence. | |
unsigned int | toUnsigned () const |
Returns unsigned numeric value of sequence. | |
System::u64 | toUnsigned64 () const |
Returns signed 64bit numeric value of sequence. | |
Static Public Member Functions | |
static int | compare (const FIXFieldValue &firstValue, const FIXFieldValue &secondValue) |
Compares two sequences in 'std::strcmp' style. | |
Public Attributes | |
const char * | data_ |
Pointer to byte array. | |
std::size_t | length_ |
Length of sequence. | |
It is used for storing the Contents information (data + length).
|
inline |
Constructs empty sequence.
Referenced by operator==().
|
explicit |
Constructs object from null-terminated C-string.
|
inline |
Constructs object from char chain.
void Engine::FIXFieldValue::clear | ( | ) |
Resets internal storage.
|
static |
Compares two sequences in 'std::strcmp' style.
firstValue | lvalue |
secondValue | rvalue |
Referenced by operator!=(), operator==(), and operator==().
|
inline |
Verifies is sequence empty.
References length_.
|
inline |
Compares two object.
Based on compare() member.
fieldValue | Instance of FIXFieldValue to compare with. |
References compare().
|
inline |
Compares with null-terminated char* std::string.
Based on compare() member.
val | null-terminated std::string to compare with. |
References compare(), and FIXFieldValue().
|
inline |
Compares two object.
Based on compare() member.
fieldValue | Instance of FIXFieldValue to compare with. |
References compare().
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_ |
Pointer to byte array.
std::size_t Engine::FIXFieldValue::length_ |
Length of sequence.
Referenced by isEmpty().