EPAM B2BITS CME MDP Handler C++  5.4.2
Public Member Functions | List of all members
Cme::Mdp::TagValue Struct Reference

Lightweight TagValue wrapper for generated messages. More...

#include <B2BITS_CmeMdpFIX.h>

Public Member Functions

template<class M >
 TagValue (const M &msg)
 
 TagValue (const TagValue &)
 
TagValueoperator= (const TagValue &)=delete
 
const MessageHeadergetHeader () const
 
SemanticType getSemanticType () const
 
bool isSupported (int tag) const
 
bool hasValue (int tag) const
 
const Group getGroup (int tag) const
 
template<class T >
get (int tag) const
 
std::ostream & toString (std::ostream &os, const char *delim="\x01") const
 
Field getters

Format: XXX getAsXXX(int tag)

Parameters
tagTag of the field. See FIXTag namespace
Returns
Field value
Exceptions
std::exceptionif tag is not present in the message or it is not convertible to return type
int32_t getAsInt32 (int tag) const
 
uint32_t getAsUInt32 (int tag) const
 
int64_t getAsInt64 (int tag) const
 
uint64_t getAsUInt64 (int tag) const
 
Decimal getAsDecimal (int tag) const
 
MonthYear getAsMonthYear (int tag) const
 
StringRef getAsString (int tag) const
 

Detailed Description

Lightweight TagValue wrapper for generated messages.

Constructor & Destructor Documentation

template<class M >
Cme::Mdp::TagValue::TagValue ( const M &  msg)

Constructor

Parameters
msgmessage or entry to wrap
Cme::Mdp::TagValue::TagValue ( const TagValue )

Member Function Documentation

template<class T >
T Cme::Mdp::TagValue::get ( int  tag) const

Template getter

Parameters
tagTag number of the group.
Returns
Field value
Exceptions
std::exceptionif tag is not present in the message or is not convertible to return type
Decimal Cme::Mdp::TagValue::getAsDecimal ( int  tag) const
int32_t Cme::Mdp::TagValue::getAsInt32 ( int  tag) const
int64_t Cme::Mdp::TagValue::getAsInt64 ( int  tag) const
MonthYear Cme::Mdp::TagValue::getAsMonthYear ( int  tag) const
StringRef Cme::Mdp::TagValue::getAsString ( int  tag) const
uint32_t Cme::Mdp::TagValue::getAsUInt32 ( int  tag) const
uint64_t Cme::Mdp::TagValue::getAsUInt64 ( int  tag) const
const Group Cme::Mdp::TagValue::getGroup ( int  tag) const
Parameters
tagTag number of the group.
Returns
repeating group wrapper
Exceptions
std::exceptionif group is not supported by the message
const MessageHeader* Cme::Mdp::TagValue::getHeader ( ) const
Returns
MessageHeader if TagValue is wrapped around message, or nullptr if it is wrapped around entry
SemanticType Cme::Mdp::TagValue::getSemanticType ( ) const
Returns
message semantic type
bool Cme::Mdp::TagValue::hasValue ( int  tag) const
Parameters
tagTag number of the field to verify.
Returns
"true" if message contains the tag
bool Cme::Mdp::TagValue::isSupported ( int  tag) const

Verifies if tag is supported by the message

Parameters
tagTag number of the field to verify.
Returns
"true" if tag is supported
TagValue& Cme::Mdp::TagValue::operator= ( const TagValue )
delete
std::ostream& Cme::Mdp::TagValue::toString ( std::ostream &  os,
const char *  delim = "\x01" 
) const

Transform message into textual FIX representation

Parameters
osstd::ostream to write the output
delimDelimeter, SOH(0x01) by default
Returns
passed std::ostream