EPAM B2BITS C++ Bovespa MarketData handler  1.28.2
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Friends | List of all members
B2bits::MD::TagValue Class Reference

#include <b2bits/fix/TagValue.h>

Inheritance diagram for B2bits::MD::TagValue:
Inheritance graph
[legend]

Public Member Functions

bool isNull () const
 
bool get (int tag, FIXFieldValue *value) const
 
bool hasFlag (int tag) const
 
bool isSupported (int tag) const
 
const FIXGroup getGroup (int tag) const
 
const FIXGroup getAsGroup (int tag) const
 
void write (int tag, std::ostream &stream) const
 
i64 getAsInt64 (int tag) const
 
u64 getAsUInt64 (int tag) const
 
i32 getAsInt32 (int tag) const
 
u32 getAsUInt32 (int tag) const
 
int getAsInt (int tag) const
 
unsigned int getAsUInt (int tag) const
 
double getAsDouble (int tag) const
 
Decimal getAsDecimal (int tag) const
 
char getAsChar (int tag) const
 
AsciiString getAsString (int tag) const
 
bool get (int tag, std::string *value) const
 
ByteArray getAsRaw (int tag) const
 
bool getAsBoolean (int tag) const
 
bool getAsBool (int tag) const
 
MonthYear getAsMonthYear (int tag) const
 
LocalMktDate getAsLocalMktDate (int tag) const
 
UTCDateOnly getAsDateOnly (int tag) const
 
UTCTimeOnly getAsTimeOnly (int tag) const
 
UTCTimestamp getAsTimestamp (int tag) const
 
MultipleString getAsMultipleString (int tag) const
 
MultipleChar getAsMultipleChar (int tag) const
 
bool isEqual (int tag, TagValue const &rv, int rvTag) const
 
bool isEmpty (int tag) const
 
bool hasValue (int tag) const
 

Protected Member Functions

 TagValue ()
 

Friends

struct FIXFactory
 

Constructor & Destructor Documentation

B2bits::MD::TagValue::TagValue ( )
inlineprotected

Member Function Documentation

bool B2bits::MD::TagValue::get ( int  tag,
FIXFieldValue value 
) const

Retrieves field value by tag number and stores it into instance of FIXFieldValue class.

Parameters
[out]valuepointer to the FIXFieldValue object to store data. Cannot be NULL.
tagTag number of field requested field value.
Returns
"true" if requested field exists in message, "false" if requested field does not exist.
Exceptions
std:exceptionif requested field is not defined by FIX protocol for this message type.
bool B2bits::MD::TagValue::get ( int  tag,
std::string *  value 
) const

Returns true if field is not empty, false otherwise.

Parameters
[in]tagTag of the field.
[out]valueValue of the field.
bool B2bits::MD::TagValue::getAsBool ( int  tag) const
inline

Returns field value. Synonym of Engine::TagValue::getAsBoolean

Parameters
[in]tagTag of the field.
bool B2bits::MD::TagValue::getAsBoolean ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
char B2bits::MD::TagValue::getAsChar ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
UTCDateOnly B2bits::MD::TagValue::getAsDateOnly ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
Decimal B2bits::MD::TagValue::getAsDecimal ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
double B2bits::MD::TagValue::getAsDouble ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
const FIXGroup B2bits::MD::TagValue::getAsGroup ( int  tag) const
inline
int B2bits::MD::TagValue::getAsInt ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
i32 B2bits::MD::TagValue::getAsInt32 ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
i64 B2bits::MD::TagValue::getAsInt64 ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
LocalMktDate B2bits::MD::TagValue::getAsLocalMktDate ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
MonthYear B2bits::MD::TagValue::getAsMonthYear ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
MultipleChar B2bits::MD::TagValue::getAsMultipleChar ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
MultipleString B2bits::MD::TagValue::getAsMultipleString ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
ByteArray B2bits::MD::TagValue::getAsRaw ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
AsciiString B2bits::MD::TagValue::getAsString ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
UTCTimeOnly B2bits::MD::TagValue::getAsTimeOnly ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
UTCTimestamp B2bits::MD::TagValue::getAsTimestamp ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
unsigned int B2bits::MD::TagValue::getAsUInt ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
u32 B2bits::MD::TagValue::getAsUInt32 ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
u64 B2bits::MD::TagValue::getAsUInt64 ( int  tag) const

Returns field value.

Parameters
[in]tagTag of the field.
const FIXGroup B2bits::MD::TagValue::getGroup ( int  tag) const

Returns the repeating group instance by leading field tag number. The FIXGroup instance's memory is managed by FIX Engine. FIXGroup instance is guaranteed to exist within it's parent FIXMessage's lifetime or until trimming to zero length.

Parameters
tagTag number of the leading field value.
Returns
Returns the repeating group instance by leading field tag number. If leading field value is empty or its numerical represntaion is zero, then returned value is NULL.
Exceptions
std:exceptionif requested group not defined this message type.
bool B2bits::MD::TagValue::hasFlag ( int  tag) const

Checks boolean field

Parameters
tagTag number of the field to verify.
Returns
"true" if the given flag is present and it equals to "Y", otherwise "false".
bool B2bits::MD::TagValue::hasValue ( int  tag) const

Returns true if value is defined; false otherwise.

Exceptions
std:exceptionis given field is not defined for this entry.
bool B2bits::MD::TagValue::isEmpty ( int  tag) const

Returns true if value of the field is empty; false otherwise.

Exceptions
std:exceptionis given field is not defined for this entry.
bool B2bits::MD::TagValue::isEqual ( int  tag,
TagValue const &  rv,
int  rvTag 
) const

Compares values of the fields

bool B2bits::MD::TagValue::isNull ( ) const
inline

Returns true if underlying is null

Returns
true if underlying is null
bool B2bits::MD::TagValue::isSupported ( int  tag) const

Verifies is field acceptable in the message

Parameters
tagTag number of the field to verify.
Returns
"true" if field supported by this message, otherwise returns false.
void B2bits::MD::TagValue::write ( int  tag,
std::ostream &  stream 
) const

Writes field value to the stream

Parameters
[in]tagTag of the field.
[out]streamOutput stream to write field value to.

Friends And Related Function Documentation

friend struct FIXFactory
friend