B2BITS FIX Antenna HFT  1.0.13
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | List of all members
Engine::FieldValueT< TagValueT > Class Template Reference

Represents value of field. More...

#include <B2BITS_TagValue.h>

Public Types

typedef FieldValueT< TagValueT > MyT
 Short name of this instantiation. More...
 

Public Member Functions

bool equal (Integer value) const
 Compares field value with passed value. More...
 
bool equal (UInteger value) const
 Compares field value with passed value. More...
 
bool equal (ByteArray value) const
 Compares field value with passed value. More...
 
bool equal (AsciiString value) const
 Compares field value with passed value. More...
 
bool equal (char const *value) const
 Compares field value with passed value. More...
 
bool equal (Decimal value) const
 Compares field value with passed value. More...
 
bool equal (double value) const
 Compares field value with passed value. More...
 
template<typename T >
bool equal (FieldValueT< T > value) const
 Compares field value with passed value. More...
 
bool equal (MyT value) const
 Compares field value with passed value. More...
 
bool equal (char value) const
 Compares field value with passed value. More...
 
bool equal (bool value) const
 Compares field value with passed value. More...
 
 FieldValueT (TagValueT *aTv, int aTag)
 Constructor. More...
 
bool isEmpty () const
 Returns true if value is empty; false otherwise. More...
 
void reset ()
 Clears value of the field. More...
 
int tag () const
 Returns tag of the field. More...
 
bool toBoolean () const
 Returns the value as byte array. More...
 
char toChar () const
 Returns the value as char. More...
 
UTCDateOnly toDateOnly () const
 Returns the value as DateOnly. More...
 
Decimal toDecimal () const
 Returns the value as Decimal. More...
 
double toDouble () const
 Returns the value as double. More...
 
FIXGrouptoGroup ()
 Returns the value as repeating group. More...
 
FIXGroup const & toGroup () const
 Returns the value as repeating group. More...
 
int toInt () const
 Returns the value as signed integer. More...
 
System::i32 toInt32 () const
 Returns the value as 32bit signed integer. More...
 
System::i64 toInt64 () const
 Returns the value as 64bit signed integer. More...
 
LocalMktDate toLocalMktDate () const
 Returns the value as LocalMktDate. More...
 
MonthYear toMonthYear () const
 Returns the value as MonthYear. More...
 
MultipleChar toMultipleChar () const
 Returns the value as MultipleChar. More...
 
MultipleString toMultipleString () const
 Returns the value as MultipleString. More...
 
ByteArray toRaw () const
 Returns the value as byte array. More...
 
AsciiString toString () const
 Returns the value as std::string. More...
 
UTCTimeOnly toTimeOnly () const
 Returns the value as TimeOnly. More...
 
UTCTimestamp toTimestamp () const
 Returns the value as Timestamp. More...
 
unsigned int toUInt () const
 Returns the value as unsigned integer. More...
 
System::u32 toUInt32 () const
 Returns the value as 32bit unsigned integer. More...
 
System::u64 toUInt64 () const
 Returns the value as 64bit unsigned integer. More...
 
TagValueT * tv () const
 Returns container of the field. More...
 
void write (std::ostream &stream) const
 Writes field value to stream. More...
 

Detailed Description

template<typename TagValueT>
class Engine::FieldValueT< TagValueT >

Represents value of field.

Member Typedef Documentation

template<typename TagValueT>
typedef FieldValueT<TagValueT> Engine::FieldValueT< TagValueT >::MyT

Short name of this instantiation.

Constructor & Destructor Documentation

template<typename TagValueT>
Engine::FieldValueT< TagValueT >::FieldValueT ( TagValueT *  aTv,
int  aTag 
)
inline

Constructor.

Member Function Documentation

template<typename TagValueT>
bool Engine::FieldValueT< TagValueT >::equal ( Integer  value) const
inline

Compares field value with passed value.

Referenced by Engine::FieldValueT< TagValueT >::equal(), Engine::operator!=(), and Engine::operator==().

template<typename TagValueT>
bool Engine::FieldValueT< TagValueT >::equal ( UInteger  value) const
inline

Compares field value with passed value.

template<typename TagValueT>
bool Engine::FieldValueT< TagValueT >::equal ( ByteArray  value) const
inline

Compares field value with passed value.

template<typename TagValueT>
bool Engine::FieldValueT< TagValueT >::equal ( AsciiString  value) const
inline

Compares field value with passed value.

template<typename TagValueT>
bool Engine::FieldValueT< TagValueT >::equal ( char const *  value) const
inline

Compares field value with passed value.

References Engine::FieldValueT< TagValueT >::equal().

template<typename TagValueT>
bool Engine::FieldValueT< TagValueT >::equal ( Decimal  value) const
inline

Compares field value with passed value.

template<typename TagValueT>
bool Engine::FieldValueT< TagValueT >::equal ( double  value) const
inline

Compares field value with passed value.

template<typename TagValueT>
template<typename T >
bool Engine::FieldValueT< TagValueT >::equal ( FieldValueT< T >  value) const
inline

Compares field value with passed value.

References Engine::FieldValueT< TagValueT >::tag(), and Engine::FieldValueT< TagValueT >::tv().

template<typename TagValueT>
bool Engine::FieldValueT< TagValueT >::equal ( MyT  value) const
inline

Compares field value with passed value.

References Engine::FieldValueT< TagValueT >::tag(), and Engine::FieldValueT< TagValueT >::tv().

template<typename TagValueT>
bool Engine::FieldValueT< TagValueT >::equal ( char  value) const
inline

Compares field value with passed value.

template<typename TagValueT>
bool Engine::FieldValueT< TagValueT >::equal ( bool  value) const
inline

Compares field value with passed value.

template<typename TagValueT>
bool Engine::FieldValueT< TagValueT >::isEmpty ( ) const
inline

Returns true if value is empty; false otherwise.

Returns
true if value is empty; false otherwise.
template<typename TagValueT>
void Engine::FieldValueT< TagValueT >::reset ( )
inline

Clears value of the field.

template<typename TagValueT>
int Engine::FieldValueT< TagValueT >::tag ( ) const
inline

Returns tag of the field.

Referenced by Engine::FieldValueT< TagValueT >::equal().

template<typename TagValueT>
bool Engine::FieldValueT< TagValueT >::toBoolean ( ) const
inline

Returns the value as byte array.

Returns
the value of the field
template<typename TagValueT>
char Engine::FieldValueT< TagValueT >::toChar ( ) const
inline

Returns the value as char.

Returns
the value of the field
template<typename TagValueT>
UTCDateOnly Engine::FieldValueT< TagValueT >::toDateOnly ( ) const
inline

Returns the value as DateOnly.

Returns
the value of the field
template<typename TagValueT>
Decimal Engine::FieldValueT< TagValueT >::toDecimal ( ) const
inline

Returns the value as Decimal.

Returns
the value of the field
template<typename TagValueT>
double Engine::FieldValueT< TagValueT >::toDouble ( ) const
inline

Returns the value as double.

Returns
the value of the field
template<typename TagValueT>
FIXGroup& Engine::FieldValueT< TagValueT >::toGroup ( )
inline

Returns the value as repeating group.

Returns
the value of the field
template<typename TagValueT>
FIXGroup const& Engine::FieldValueT< TagValueT >::toGroup ( ) const
inline

Returns the value as repeating group.

Returns
the value of the field
template<typename TagValueT>
int Engine::FieldValueT< TagValueT >::toInt ( ) const
inline

Returns the value as signed integer.

Returns
the value of the field
template<typename TagValueT>
System::i32 Engine::FieldValueT< TagValueT >::toInt32 ( ) const
inline

Returns the value as 32bit signed integer.

Returns
the value of the field
template<typename TagValueT>
System::i64 Engine::FieldValueT< TagValueT >::toInt64 ( ) const
inline

Returns the value as 64bit signed integer.

Returns
the value of the field
template<typename TagValueT>
LocalMktDate Engine::FieldValueT< TagValueT >::toLocalMktDate ( ) const
inline

Returns the value as LocalMktDate.

Returns
the value of the field
template<typename TagValueT>
MonthYear Engine::FieldValueT< TagValueT >::toMonthYear ( ) const
inline

Returns the value as MonthYear.

Returns
the value of the field
template<typename TagValueT>
MultipleChar Engine::FieldValueT< TagValueT >::toMultipleChar ( ) const
inline

Returns the value as MultipleChar.

Returns
the value of the field
template<typename TagValueT>
MultipleString Engine::FieldValueT< TagValueT >::toMultipleString ( ) const
inline

Returns the value as MultipleString.

Returns
the value of the field
template<typename TagValueT>
ByteArray Engine::FieldValueT< TagValueT >::toRaw ( ) const
inline

Returns the value as byte array.

Returns
the value of the field
template<typename TagValueT>
AsciiString Engine::FieldValueT< TagValueT >::toString ( ) const
inline

Returns the value as std::string.

Returns
the value of the field
template<typename TagValueT>
UTCTimeOnly Engine::FieldValueT< TagValueT >::toTimeOnly ( ) const
inline

Returns the value as TimeOnly.

Returns
the value of the field
template<typename TagValueT>
UTCTimestamp Engine::FieldValueT< TagValueT >::toTimestamp ( ) const
inline

Returns the value as Timestamp.

Returns
the value of the field
template<typename TagValueT>
unsigned int Engine::FieldValueT< TagValueT >::toUInt ( ) const
inline

Returns the value as unsigned integer.

Returns
the value of the field
template<typename TagValueT>
System::u32 Engine::FieldValueT< TagValueT >::toUInt32 ( ) const
inline

Returns the value as 32bit unsigned integer.

Returns
the value of the field
template<typename TagValueT>
System::u64 Engine::FieldValueT< TagValueT >::toUInt64 ( ) const
inline

Returns the value as 64bit unsigned integer.

Returns
the value of the field
template<typename TagValueT>
TagValueT* Engine::FieldValueT< TagValueT >::tv ( ) const
inline

Returns container of the field.

Referenced by Engine::FieldValueT< TagValueT >::equal().

template<typename TagValueT>
void Engine::FieldValueT< TagValueT >::write ( std::ostream &  stream) const
inline

Writes field value to stream.