B2BITS FIX Antenna HFT  1.0.13
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
Engine::TagValue Class Referenceabstract

Represents tag-value structure. More...

#include <B2BITS_TagValue.h>

+ Inheritance diagram for Engine::TagValue:

Public Types

typedef FieldValueT< TagValue
const > const 
ConstFieldValue
 
typedef FieldValueT< TagValueFieldValue
 

Public Member Functions

virtual void copyTo (TagValue *dest, int destTag, int srcTag) const =0
 Copies field value to another instance of the TagValue. More...
 
virtual TagValueExextendTV ()=0 throw ()
 Returns extended interface of TagValue. More...
 
virtual TagValueEx const * extendTV () const =0 throw ()
 Returns extended interface of TagValue. More...
 
virtual bool get (int tag, FIXFieldValue *value) const =0
 Retrieves field value by tag number. More...
 
virtual bool getAsBoolean (int tag) const =0
 Returns field value. More...
 
virtual char getAsChar (int tag) const =0
 Returns field value. More...
 
virtual UTCDateOnly getAsDateOnly (int tag) const =0
 Returns field value. More...
 
virtual Decimal getAsDecimal (int tag) const =0
 Returns field value. More...
 
virtual double getAsDouble (int tag) const =0
 Returns field value. More...
 
FIXGroupgetAsGroup (int tag)
 Returns the repeating group instance found by the leading field tag number. More...
 
FIXGroup const & getAsGroup (int tag) const
 Returns the repeating group instance found by the leading field tag number. More...
 
virtual int getAsInt (int tag) const =0
 Returns field value. More...
 
virtual System::i32 getAsInt32 (int tag) const =0
 Returns field value. More...
 
virtual System::i64 getAsInt64 (int tag) const =0
 Returns field value. More...
 
virtual LocalMktDate getAsLocalMktDate (int tag) const =0
 Returns field value. More...
 
virtual MonthYear getAsMonthYear (int tag) const =0
 Returns field value. More...
 
virtual MultipleChar getAsMultipleChar (int tag) const =0
 Returns field value. More...
 
virtual MultipleString getAsMultipleString (int tag) const =0
 Returns field value. More...
 
virtual ByteArray getAsRaw (int tag) const =0
 Returns field value. More...
 
virtual AsciiString getAsString (int tag) const =0
 Returns field value. More...
 
virtual UTCTimeOnly getAsTimeOnly (int tag) const =0
 Returns field value. More...
 
virtual UTCTimestamp getAsTimestamp (int tag) const =0
 Returns field value. More...
 
virtual unsigned int getAsUInt (int tag) const =0
 Returns field value. More...
 
virtual System::u32 getAsUInt32 (int tag) const =0
 Returns field value. More...
 
virtual System::u64 getAsUInt64 (int tag) const =0
 Returns field value. More...
 
ConstFieldValue getField (int tag) const
 Returns value of the field specified by tag. More...
 
FieldValue getField (int tag)
 Returns value of the field specified by tag. More...
 
virtual FixFieldsContainergetFields () const =0
 Returns list of the message fields and their values. More...
 
virtual FIXGroup const * getGroup (int tag) const =0
 Returns the repeating group instance found by the leading field tag number. More...
 
virtual FIXGroupgetGroup (int tag)=0
 Returns the repeating group instance found by the leading field tag number. More...
 
virtual bool hasFlag (int tag) const =0
 Checks boolean field. More...
 
bool hasValue (int tag) const
 Returns true if value is defined; false otherwise. More...
 
virtual bool isEmpty (int tag) const =0
 Returns true if value of the field is empty; false otherwise. More...
 
virtual bool isEqual (int tag, TagValue const *rv, int rvTag) const =0
 Compares values of the fields. More...
 
virtual bool isSupported (int tag) const =0 throw ()
 Verifies is field acceptable in the message. More...
 
virtual void release () const =0
 Releases FIX message instance. More...
 
virtual void release ()=0
 Releases FIX message instance. More...
 
virtual bool remove (int tag)=0
 Empties field value by tag number. More...
 
virtual void remove (const std::set< int > &tags)=0
 Removes passed tags from message. More...
 
virtual void reserve (int tag, PreparedFieldIndex index, std::size_t size)=0
 Reserves memory to store prepared field value. More...
 
virtual bool set (int tag, MonthYear value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, LocalMktDate value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, UTCDateOnly value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, UTCTimeOnly value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, UTCTimestamp value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, System::i32 value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, System::u32 value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, System::i64 value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, System::u64 value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, double value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, Decimal value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, AsciiString value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, ByteArray value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, char value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, bool value)=0
 Updates field value by tag number. More...
 
bool set (int tag, char const *value)
 Updates field value by tag number. More...
 
virtual bool set (int tag, const MultipleString &value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, const MultipleChar &value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, const FIXFieldValue &value)=0
 Updates field value by tag number. More...
 
virtual bool set (int tag, const std::string &value)=0
 Updates field value by tag number. More...
 
 TagValue ()
 Constructor. More...
 
virtual void write (int tag, std::ostream &stream) const =0
 Writes field value to the stream. More...
 

Static Public Member Functions

static void release (TagValue const *obj)
 Releases assigned resources. More...
 

Protected Member Functions

virtual ~TagValue ()
 Destructor. More...
 

Friends

template<typename >
class FieldValueT
 

Detailed Description

Represents tag-value structure.

Base class for FIX message end repeating group entry

Member Typedef Documentation

Constructor & Destructor Documentation

Engine::TagValue::TagValue ( )

Constructor.

virtual Engine::TagValue::~TagValue ( )
protectedvirtual

Destructor.

Member Function Documentation

virtual void Engine::TagValue::copyTo ( TagValue dest,
int  destTag,
int  srcTag 
) const
pure virtual

Copies field value to another instance of the TagValue.

Exceptions
Utils::Exceptionif source field value is not defined.

Implemented in Parser::LiteFixMessage.

virtual TagValueEx* Engine::TagValue::extendTV ( )
throw (
)
pure virtual

Returns extended interface of TagValue.

Implemented in Parser::LiteFixMessage.

virtual TagValueEx const* Engine::TagValue::extendTV ( ) const
throw (
)
pure virtual

Returns extended interface of TagValue.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::get ( int  tag,
FIXFieldValue value 
) const
pure virtual

Retrieves field value by tag number.

Parameters
tagFIX field tag to get data from.
Returns
pointer to the buffer contained requested field value. If field value is empty returns NULL pointer. Can return NULL.
Warning
The returned buffer is shared for all calls. This means stored content is valid untill the next call of the get().
Exceptions
Utils::Exceptionif requested field is not defined by FIX protocol for this message type.
Deprecated:
Use get( int, FIXFieldValue *) const instead.
See Also
get( int, FIXFieldValue *) 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
Utils::Exceptionif requested field is not defined by FIX protocol for this message type.

Implemented in Parser::LiteFixMessage.

Referenced by fix_algo::copyTagOrClear(), fix_algo::copyTagOrSetDef(), fix_algo::fill_reject(), fix_algo::fill_reject_8(), fix_algo::fill_ucxl_8(), and Parser::LiteFixMessage::isEqual().

virtual bool Engine::TagValue::getAsBoolean ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

virtual char Engine::TagValue::getAsChar ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

virtual UTCDateOnly Engine::TagValue::getAsDateOnly ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

virtual Decimal Engine::TagValue::getAsDecimal ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

virtual double Engine::TagValue::getAsDouble ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

FIXGroup& Engine::TagValue::getAsGroup ( int  tag)

Returns the repeating group instance found by the leading field tag number.

Parameters
tagThe tag number of the leading field value.
Returns
Returns the repeating group instance found by the leading field tag number. The leading field value must be a positive number.
Exceptions
Utils::Exceptionif the requested group is not defined for this message type.
FIXGroup const& Engine::TagValue::getAsGroup ( int  tag) const

Returns the repeating group instance found by the leading field tag number.

Parameters
tagThe tag number of the leading field value.
Returns
Returns the repeating group instance found by the leading field tag number. The leading field value must be a positive number.
Exceptions
Utils::Exceptionif the requested group is not defined for this message type.
virtual int Engine::TagValue::getAsInt ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

virtual System::i32 Engine::TagValue::getAsInt32 ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

virtual System::i64 Engine::TagValue::getAsInt64 ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

virtual LocalMktDate Engine::TagValue::getAsLocalMktDate ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

virtual MonthYear Engine::TagValue::getAsMonthYear ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

virtual MultipleChar Engine::TagValue::getAsMultipleChar ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

virtual MultipleString Engine::TagValue::getAsMultipleString ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

virtual ByteArray Engine::TagValue::getAsRaw ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

virtual AsciiString Engine::TagValue::getAsString ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

virtual UTCTimeOnly Engine::TagValue::getAsTimeOnly ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

virtual UTCTimestamp Engine::TagValue::getAsTimestamp ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

virtual unsigned int Engine::TagValue::getAsUInt ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

virtual System::u32 Engine::TagValue::getAsUInt32 ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

virtual System::u64 Engine::TagValue::getAsUInt64 ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Implemented in Parser::LiteFixMessage.

ConstFieldValue Engine::TagValue::getField ( int  tag) const
inline

Returns value of the field specified by tag.

Returns
the value of the field
FieldValue Engine::TagValue::getField ( int  tag)
inline

Returns value of the field specified by tag.

Returns
the value of the field
virtual FixFieldsContainer* Engine::TagValue::getFields ( ) const
pure virtual

Returns list of the message fields and their values.

Parameters
[out]listList of the message fields and values.

Implemented in Parser::LiteFixMessage.

virtual FIXGroup const* Engine::TagValue::getGroup ( int  tag) const
pure virtual

Returns the repeating group instance found by the leading field tag number.

Parameters
tagThe tag number of the leading field value.
Returns
Returns the repeating group instance found by the leading field tag number. If leading field value is empty or its numerical represntaion is zero, then returned value is NULL.
Exceptions
Utils::Exceptionif requested group not defined this message type.

Implemented in Parser::LiteFixMessage.

virtual FIXGroup* Engine::TagValue::getGroup ( int  tag)
pure virtual

Returns the repeating group instance found by the leading field tag number.

Parameters
tagThe tag number of the leading field value.
Returns
Returns the repeating group instance found by the leading field tag number. If leading field value is empty or its numerical represntaion is zero, then returned value is NULL.
Exceptions
Utils::Exceptionif requested group not defined this message type.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::hasFlag ( int  tag) const
pure virtual

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".

Implemented in Parser::LiteFixMessage.

bool Engine::TagValue::hasValue ( int  tag) const

Returns true if value is defined; false otherwise.

Referenced by fix_algo::fill_reject_8(), and fix_algo::fill_ucxl_8().

virtual bool Engine::TagValue::isEmpty ( int  tag) const
pure virtual

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

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::isEqual ( int  tag,
TagValue const *  rv,
int  rvTag 
) const
pure virtual

Compares values of the fields.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::isSupported ( int  tag) const
throw (
)
pure virtual

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.

Implemented in Parser::LiteFixMessage.

virtual void Engine::TagValue::release ( ) const
pure virtual

Releases FIX message instance.

See Also
release(TagValue const* msg)

Implemented in Parser::LiteFixMessage, and Engine::FIXMessage.

virtual void Engine::TagValue::release ( )
pure virtual

Releases FIX message instance.

See Also
release(TagValue const* msg)

Implemented in Parser::LiteFixMessage, and Engine::FIXMessage.

static void Engine::TagValue::release ( TagValue const *  obj)
static

Releases assigned resources.

virtual bool Engine::TagValue::remove ( int  tag)
pure virtual

Empties field value by tag number.

The returned value indicates previous value existence, i.e if previous value wasn't empty, remove returns true, otherwise false.

Parameters
tagTag of field to remove.
Returns
"true" if request field had value before call of remove, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.

Implemented in Parser::LiteFixMessage.

Referenced by fix_algo::copyTagOrClear(), fix_algo::fill_reject_8(), fix_algo::fill_reject_9(), and fix_algo::fill_ucxl_8().

virtual void Engine::TagValue::remove ( const std::set< int > &  tags)
pure virtual

Removes passed tags from message.

Parameters
tagsSet of field tags to remove.
Exceptions
Utils::Exceptionif one of the requested fields isn't defined this message type.

Implemented in Parser::LiteFixMessage.

virtual void Engine::TagValue::reserve ( int  tag,
PreparedFieldIndex  index,
std::size_t  size 
)
pure virtual

Reserves memory to store prepared field value.

Parameters
[in]tagTag of the field.
[in]indexUser defined index of the prepared field.
[in]sizeSize of the field value to reserve.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::set ( int  tag,
MonthYear  value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.

Implemented in Parser::LiteFixMessage.

Referenced by fix_algo::copyTagOrClear(), fix_algo::copyTagOrSetDef(), fix_algo::fill_reject_8(), fix_algo::fill_reject_9(), fix_algo::fill_ucxl_8(), setPrice(), setScaledPrice(), fix_algo::turnToLiteMessage(), and fix_algo::turnToLiteMessageGlob().

virtual bool Engine::TagValue::set ( int  tag,
LocalMktDate  value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::set ( int  tag,
UTCDateOnly  value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::set ( int  tag,
UTCTimeOnly  value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::set ( int  tag,
UTCTimestamp  value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::set ( int  tag,
System::i32  value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::set ( int  tag,
System::u32  value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::set ( int  tag,
System::i64  value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::set ( int  tag,
System::u64  value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::set ( int  tag,
double  value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::set ( int  tag,
Decimal  value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::set ( int  tag,
AsciiString  value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::set ( int  tag,
ByteArray  value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::set ( int  tag,
char  value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::set ( int  tag,
bool  value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.

Implemented in Parser::LiteFixMessage.

bool Engine::TagValue::set ( int  tag,
char const *  value 
)
inline

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.
virtual bool Engine::TagValue::set ( int  tag,
const MultipleString value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::set ( int  tag,
const MultipleChar value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field not defined this message type.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::set ( int  tag,
const FIXFieldValue value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field is not defined by FIX protocol for this message type. message type.

Implemented in Parser::LiteFixMessage.

virtual bool Engine::TagValue::set ( int  tag,
const std::string &  value 
)
pure virtual

Updates field value by tag number.

The returned value indicates previous value existance, i.e if previous value wasn't empty, set returns true, otherwise false.

Parameters
tagFIX field tag to set data to.
valueNew value for field.
Returns
"true" if request field had value before call of set, otherwise "false" (i.e. tag was inserted into message).
Exceptions
Utils::Exceptionif requested field is not defined for this message type.

Implemented in Parser::LiteFixMessage.

virtual void Engine::TagValue::write ( int  tag,
std::ostream &  stream 
) const
pure virtual

Writes field value to the stream.

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

Implemented in Parser::LiteFixMessage.

Friends And Related Function Documentation

template<typename >
friend class FieldValueT
friend