OnixS C++ Tullett Prebon SURF Handler 1.6.1
API documentation
Loading...
Searching...
No Matches
FieldValue Struct Reference

Public Member Functions

bool empty () const
std::string toString () const
int toInt32 () const
unsigned int toUInt32 () const
long long toInt64 () const
unsigned long long toUInt64 () const
double toDouble () const
Decimal toDecimal () const
Date toDate () const
Time toTime () const

Protected Member Functions

 FieldValue (const char *data, size_t length)
 FieldValue (const FieldValue &value)
FieldValueoperator= (const FieldValue &value)

Detailed Description

Definition at line 87 of file FieldValue.h.

Constructor & Destructor Documentation

◆ FieldValue() [1/2]

FieldValue ( const char * data,
size_t length )
protected

◆ FieldValue() [2/2]

FieldValue ( const FieldValue & value)
protected

Member Function Documentation

◆ empty()

bool empty ( ) const

Indicates whether array of zero length.

◆ operator=()

FieldValue & operator= ( const FieldValue & value)
protected

◆ toDate()

Date toDate ( ) const

Returns the field value as Date.

Exceptions
std::exceptionif conversion is impossible.

◆ toDecimal()

Decimal toDecimal ( ) const

Returns the field value as a decimal number.

Exceptions
std::exceptionif conversion is impossible.

◆ toDouble()

double toDouble ( ) const

Returns the field value as a floating-point number.

Exceptions
std::exceptionif conversion is impossible.

◆ toInt32()

int toInt32 ( ) const

Returns field value as an int value.

Exceptions
std::exceptionif conversion is impossible.

◆ toInt64()

long long toInt64 ( ) const

Returns field value as an 'long long' value.

Exceptions
std::exceptionif conversion is impossible.

◆ toString()

std::string toString ( ) const

Returns the field value as a string.

◆ toTime()

Time toTime ( ) const

Returns the field value as Time.

Exceptions
std::exceptionif conversion is impossible.

◆ toUInt32()

unsigned int toUInt32 ( ) const

Returns field value as an 'unsigned int' value.

Exceptions
std::exceptionif conversion is impossible.

◆ toUInt64()

unsigned long long toUInt64 ( ) const

Returns field value as an 'unsigned long long' value.

Exceptions
std::exceptionif conversion is impossible.