OnixS C++ Tullett Prebon SURF Handler  1.6.1
API documentation
FieldValue Struct Reference

#include <OnixS/SURF/MarketData/FieldValue.h>

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 ( const char *  data,
size_t  length 
)
protected
FieldValue ( const FieldValue value)
protected

Member Function Documentation

bool empty ( ) const

Indicates whether array of zero length.

FieldValue& operator= ( const FieldValue value)
protected
Date toDate ( ) const

Returns the field value as Date.

Exceptions
std::exceptionif conversion is impossible.
Decimal toDecimal ( ) const

Returns the field value as a decimal number.

Exceptions
std::exceptionif conversion is impossible.
double toDouble ( ) const

Returns the field value as a floating-point number.

Exceptions
std::exceptionif conversion is impossible.
int toInt32 ( ) const

Returns field value as an int value.

Exceptions
std::exceptionif conversion is impossible.
long long toInt64 ( ) const

Returns field value as an 'long long' value.

Exceptions
std::exceptionif conversion is impossible.
std::string toString ( ) const

Returns the field value as a string.

Time toTime ( ) const

Returns the field value as Time.

Exceptions
std::exceptionif conversion is impossible.
unsigned int toUInt32 ( ) const

Returns field value as an 'unsigned int' value.

Exceptions
std::exceptionif conversion is impossible.
unsigned long long toUInt64 ( ) const

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

Exceptions
std::exceptionif conversion is impossible.

The documentation for this struct was generated from the following file: