Public Member Functions | Static Public Member Functions | Public Attributes

Engine::FIXFieldValue Struct Reference

It is used for storing the Contents information (data + length). More...

#include <B2BITS_FIXFieldValue.h>

List of all members.

Public Member Functions

void clear ()
 Resets internal storage.
 FIXFieldValue ()
 Constructs empty sequence.
 FIXFieldValue (const FIXFieldValue &fieldValue)
 Copy constructor.
 FIXFieldValue (const char *str)
 Constructs object from null-terminated C-string.
 FIXFieldValue (const char *data, size_t length)
 Constructs object from char chain.
bool isEmpty () const
 Verifies is sequence empty.
bool operator!= (const FIXFieldValue &fieldValue) const
 Compares two object.
bool operator== (const FIXFieldValue &fieldValue) const
 Compares two object.
bool operator== (const char *val) const
 Compares with null-terminated char* string.
void toRaw (Utils::RawBuffer *buffer) const
 Streams value to raw buffer.
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 'stdstrcmp' style.

Public Attributes

const char * data_
 Pointer to byte array.
size_t length_
 Length of sequence.

Detailed Description

It is used for storing the Contents information (data + length).

Definition at line 63 of file B2BITS_FIXFieldValue.h.


Constructor & Destructor Documentation

Engine::FIXFieldValue::FIXFieldValue (  )

Constructs empty sequence.

Engine::FIXFieldValue::FIXFieldValue ( const char *  str ) [explicit]

Constructs object from null-terminated C-string.

Engine::FIXFieldValue::FIXFieldValue ( const char *  data,
size_t  length 
)

Constructs object from char chain.

Engine::FIXFieldValue::FIXFieldValue ( const FIXFieldValue fieldValue )

Copy constructor.


Member Function Documentation

void Engine::FIXFieldValue::clear (  )

Resets internal storage.

static int Engine::FIXFieldValue::compare ( const FIXFieldValue firstValue,
const FIXFieldValue secondValue 
) [static]

Compares two sequences in 'stdstrcmp' style.

Parameters:
firstValuelvalue
secondValuervalue
bool Engine::FIXFieldValue::isEmpty (  ) const [inline]

Verifies is sequence empty.

Definition at line 129 of file B2BITS_FIXFieldValue.h.

References length_.

bool Engine::FIXFieldValue::operator!= ( const FIXFieldValue fieldValue ) const

Compares two object.

Based on compare() member.

Parameters:
fieldValueInstance of FIXFieldValue to compare with.
bool Engine::FIXFieldValue::operator== ( const char *  val ) const

Compares with null-terminated char* string.

Based on compare() member.

Parameters:
valnull-terminated string to compare with.
bool Engine::FIXFieldValue::operator== ( const FIXFieldValue fieldValue ) const

Compares two object.

Based on compare() member.

Parameters:
fieldValueInstance of FIXFieldValue to compare with.
void Engine::FIXFieldValue::toRaw ( Utils::RawBuffer *  buffer ) const

Streams value to raw buffer.

int Engine::FIXFieldValue::toSigned (  ) const

Returns signed numeric value of sequence.

System::i64 Engine::FIXFieldValue::toSigned64 (  ) const

Returns signed 64bit numeric value of sequence.

Exceptions:
Utils::ExceptionIf value cannot be converted
unsigned int Engine::FIXFieldValue::toUnsigned (  ) const

Returns unsigned numeric value of sequence.

Exceptions:
Utils::ExceptionIf value cannot be converted
System::u64 Engine::FIXFieldValue::toUnsigned64 (  ) const

Returns signed 64bit numeric value of sequence.

Exceptions:
Utils::ExceptionIf value cannot be converted

Member Data Documentation

Pointer to byte array.

Definition at line 66 of file B2BITS_FIXFieldValue.h.

Length of sequence.

Definition at line 69 of file B2BITS_FIXFieldValue.h.

Referenced by isEmpty().