B2BITS FIX Antenna C++  2.29.0
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 value as byte array. More...
 
char toChar () const
 Returns value as char. More...
 
UTCDateOnly toDateOnly () const
 Returns value as DateOnly. More...
 
Decimal toDecimal () const
 Returns value as Decimal. More...
 
double toDouble () const
 Returns value as double. More...
 
FIXGrouptoGroup ()
 Returns value as repeating group. More...
 
FIXGroup const & toGroup () const
 Returns value as repeating group. More...
 
int toInt () const
 Returns value as signed integer. More...
 
System::i32 toInt32 () const
 Returns value as 32bit signed integer. More...
 
System::i64 toInt64 () const
 Returns value as 64bit signed integer. More...
 
LocalMktDate toLocalMktDate () const
 Returns value as LocalMktDate. More...
 
MonthYear toMonthYear () const
 Returns value as MonthYear. More...
 
MultipleChar toMultipleChar () const
 
MultipleString toMultipleString () const
 
ByteArray toRaw () const
 Returns value as byte array. More...
 
AsciiString toString () const
 Returns value as std::string. More...
 
UTCTimeOnly toTimeOnly () const
 Returns value as TimeOnly. More...
 
UTCTimestamp toTimestamp () const
 Returns value as Timestamp. More...
 
unsigned int toUInt () const
 Returns value as unsigned integer. More...
 
System::u32 toUInt32 () const
 Returns value as 32bit unsigned integer. More...
 
System::u64 toUInt64 () const
 Returns 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

◆ MyT

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

Short name of this instantiation.

Constructor & Destructor Documentation

◆ FieldValueT()

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

Constructor.

Member Function Documentation

◆ equal() [1/11]

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==().

◆ equal() [2/11]

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

Compares field value with passed value.

◆ equal() [3/11]

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

Compares field value with passed value.

◆ equal() [4/11]

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

Compares field value with passed value.

◆ equal() [5/11]

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

Compares field value with passed value.

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

◆ equal() [6/11]

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

Compares field value with passed value.

◆ equal() [7/11]

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

Compares field value with passed value.

◆ equal() [8/11]

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().

◆ equal() [9/11]

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().

◆ equal() [10/11]

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

Compares field value with passed value.

◆ equal() [11/11]

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

Compares field value with passed value.

◆ isEmpty()

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.

◆ reset()

template<typename TagValueT>
void Engine::FieldValueT< TagValueT >::reset ( )
inline

Clears value of the field.

◆ tag()

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

Returns tag of the field.

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

◆ toBoolean()

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

Returns value as byte array.

Returns
value of the field

◆ toChar()

template<typename TagValueT>
char Engine::FieldValueT< TagValueT >::toChar ( ) const
inline

Returns value as char.

Returns
value of the field

◆ toDateOnly()

template<typename TagValueT>
UTCDateOnly Engine::FieldValueT< TagValueT >::toDateOnly ( ) const
inline

Returns value as DateOnly.

Returns
value of the field

◆ toDecimal()

template<typename TagValueT>
Decimal Engine::FieldValueT< TagValueT >::toDecimal ( ) const
inline

Returns value as Decimal.

Returns
value of the field

◆ toDouble()

template<typename TagValueT>
double Engine::FieldValueT< TagValueT >::toDouble ( ) const
inline

Returns value as double.

Returns
value of the field

◆ toGroup() [1/2]

template<typename TagValueT>
FIXGroup& Engine::FieldValueT< TagValueT >::toGroup ( )
inline

Returns value as repeating group.

Returns
value of the field

◆ toGroup() [2/2]

template<typename TagValueT>
FIXGroup const& Engine::FieldValueT< TagValueT >::toGroup ( ) const
inline

Returns value as repeating group.

Returns
value of the field

◆ toInt()

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

Returns value as signed integer.

Returns
value of the field

◆ toInt32()

template<typename TagValueT>
System::i32 Engine::FieldValueT< TagValueT >::toInt32 ( ) const
inline

Returns value as 32bit signed integer.

Returns
value of the field

◆ toInt64()

template<typename TagValueT>
System::i64 Engine::FieldValueT< TagValueT >::toInt64 ( ) const
inline

Returns value as 64bit signed integer.

Returns
value of the field

◆ toLocalMktDate()

template<typename TagValueT>
LocalMktDate Engine::FieldValueT< TagValueT >::toLocalMktDate ( ) const
inline

Returns value as LocalMktDate.

Returns
value of the field

◆ toMonthYear()

template<typename TagValueT>
MonthYear Engine::FieldValueT< TagValueT >::toMonthYear ( ) const
inline

Returns value as MonthYear.

Returns
value of the field

◆ toMultipleChar()

template<typename TagValueT>
MultipleChar Engine::FieldValueT< TagValueT >::toMultipleChar ( ) const
inline

◆ toMultipleString()

template<typename TagValueT>
MultipleString Engine::FieldValueT< TagValueT >::toMultipleString ( ) const
inline

◆ toRaw()

template<typename TagValueT>
ByteArray Engine::FieldValueT< TagValueT >::toRaw ( ) const
inline

Returns value as byte array.

Returns
value of the field

◆ toString()

template<typename TagValueT>
AsciiString Engine::FieldValueT< TagValueT >::toString ( ) const
inline

Returns value as std::string.

Returns
value of the field

◆ toTimeOnly()

template<typename TagValueT>
UTCTimeOnly Engine::FieldValueT< TagValueT >::toTimeOnly ( ) const
inline

Returns value as TimeOnly.

Returns
value of the field

◆ toTimestamp()

template<typename TagValueT>
UTCTimestamp Engine::FieldValueT< TagValueT >::toTimestamp ( ) const
inline

Returns value as Timestamp.

Returns
value of the field

◆ toUInt()

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

Returns value as unsigned integer.

Returns
value of the field

◆ toUInt32()

template<typename TagValueT>
System::u32 Engine::FieldValueT< TagValueT >::toUInt32 ( ) const
inline

Returns value as 32bit unsigned integer.

Returns
value of the field

◆ toUInt64()

template<typename TagValueT>
System::u64 Engine::FieldValueT< TagValueT >::toUInt64 ( ) const
inline

Returns value as 64bit unsigned integer.

Returns
value of the field

◆ tv()

template<typename TagValueT>
TagValueT* Engine::FieldValueT< TagValueT >::tv ( ) const
inline

Returns container of the field.

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

◆ write()

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

Writes field value to stream.