B2BITS FIX Antenna C++  2.27.0
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 apply (FixFieldsFunctor &f) const =0
 Apply the given functor to every field. More...
 
virtual void copyTo (TagValue *dest, int destTag, int srcTag) const =0
 
Copies field value to another instance of the TagValue. More...
 
virtual TagValueEx * extendTV ()=0 throw ()
 Returns extended interface of TagValue. More...
 
virtual TagValueEx const * extendTV () const =0 throw ()
 Returns extended interface of TagValue. More...
 
virtual const std::string * get (int tag) const =0
 Retrieves field value by tag number. More...
 
virtual bool get (int tag, FIXFieldValue *value) const =0
 Retrieves field value by tag number and stores it into instance of FIXFieldValue class. More...
 
virtual bool get (int tag, std::string *value) const =0
 Returns true if field is not empty, false otherwise. More...
 
bool getAsBool (int tag) const
 Returns field value. 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)
 
FIXGroup const & getAsGroup (int tag) const
 
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 by leading field tag number. More...
 
virtual FIXGroupgetGroup (int tag)=0
 Returns the repeating group instance by 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 and for repeating group entry

Member Typedef Documentation

◆ ConstFieldValue

◆ FieldValue

Constructor & Destructor Documentation

◆ TagValue()

Engine::TagValue::TagValue ( )

Constructor.

◆ ~TagValue()

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

Destructor.

Member Function Documentation

◆ apply()

virtual void Engine::TagValue::apply ( FixFieldsFunctor f) const
pure virtual

Apply the given functor to every field.

See also
FixFieldsFunctor::operator(int tag, const Engine::AsciiString& value, int role)

◆ copyTo()

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 is not defined by FIX specification.
Utils::Exceptionif destination field is not defined by FIX specification.
Utils::Exceptionif source field is value is not defined.

◆ extendTV() [1/2]

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

Returns extended interface of TagValue.

◆ extendTV() [2/2]

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

Returns extended interface of TagValue.

◆ get() [1/3]

virtual const std::string* Engine::TagValue::get ( int  tag) 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.
See also
get( int, FIXFieldValue *) const
Deprecated:
Use Engine::TagValue::get( int, FIXFieldValue *) const instead.

◆ get() [2/3]

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

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.

◆ get() [3/3]

virtual bool Engine::TagValue::get ( int  tag,
std::string *  value 
) const
pure virtual

Returns true if field is not empty, false otherwise.

Parameters
[in]tagTag of the field.
[out]valueValue of the field.

◆ getAsBool()

bool Engine::TagValue::getAsBool ( int  tag) const
inline

Returns field value.

Synonym of Engine::TagValue::getAsBoolean

Parameters
[in]tagTag of the field.

◆ getAsBoolean()

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

Returns field value.

Parameters
[in]tagTag of the field.

◆ getAsChar()

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

Returns field value.

Parameters
[in]tagTag of the field.

◆ getAsDateOnly()

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

Returns field value.

Parameters
[in]tagTag of the field.

◆ getAsDecimal()

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

Returns field value.

Parameters
[in]tagTag of the field.

◆ getAsDouble()

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

Returns field value.

Parameters
[in]tagTag of the field.

◆ getAsGroup() [1/2]

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

◆ getAsGroup() [2/2]

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

◆ getAsInt()

virtual int Engine::TagValue::getAsInt ( int  tag) const
pure virtual

Returns field value.

Parameters
[in]tagTag of the field.

Referenced by Engine::FIXMsgHelper::addEntryToNestedGroup().

◆ getAsInt32()

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

Returns field value.

Parameters
[in]tagTag of the field.

◆ getAsInt64()

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

Returns field value.

Parameters
[in]tagTag of the field.

◆ getAsLocalMktDate()

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

Returns field value.

Parameters
[in]tagTag of the field.

◆ getAsMonthYear()

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

Returns field value.

Parameters
[in]tagTag of the field.

◆ getAsMultipleChar()

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

Returns field value.

Parameters
[in]tagTag of the field.

◆ getAsMultipleString()

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

Returns field value.

Parameters
[in]tagTag of the field.

◆ getAsRaw()

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

Returns field value.

Parameters
[in]tagTag of the field.

◆ getAsString()

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

Returns field value.

Parameters
[in]tagTag of the field.

◆ getAsTimeOnly()

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

Returns field value.

Parameters
[in]tagTag of the field.

◆ getAsTimestamp()

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

Returns field value.

Parameters
[in]tagTag of the field.

◆ getAsUInt()

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

Returns field value.

Parameters
[in]tagTag of the field.

◆ getAsUInt32()

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

Returns field value.

Parameters
[in]tagTag of the field.

◆ getAsUInt64()

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

Returns field value.

Parameters
[in]tagTag of the field.

◆ getField() [1/2]

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

Returns value of the field specified by tag.

Returns
value of the field

◆ getField() [2/2]

FieldValue Engine::TagValue::getField ( int  tag)
inline

Returns value of the field specified by tag.

Returns
value of the field

◆ getFields()

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.

◆ getGroup() [1/2]

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

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
Utils::Exceptionif requested group not defined this message type.

Referenced by Engine::FIXMsgHelper::addEntryToNestedGroup().

◆ getGroup() [2/2]

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

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
Utils::Exceptionif requested group not defined this message type.

◆ hasFlag()

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

◆ hasValue()

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


Returns true if value is defined; false otherwise.

Exceptions
Utils::Exceptionis given field is not defined for this entry.

◆ isEmpty()

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


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

Exceptions
Utils::Exceptionis given field is not defined for this entry.

Referenced by Engine::FIXMsgHelper::addEntryToNestedGroup().

◆ isEqual()

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

Compares values of the fields.

◆ isSupported()

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.

◆ release() [1/3]

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

Releases FIX message instance.

See also
release(TagValue const* msg)

Implemented in Engine::FIXMessage.

◆ release() [2/3]

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

Releases FIX message instance.

See also
release(TagValue const* msg)

Implemented in Engine::FIXMessage.

◆ release() [3/3]

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

Releases assigned resources.

◆ remove() [1/2]

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.

◆ remove() [2/2]

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.

◆ reserve()

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.

◆ set() [1/20]

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.

Referenced by Engine::FIXMsgHelper::addEntryToNestedGroup(), Engine::TZTimeHelper::setTagDateOnly(), Engine::TZTimeHelper::setTagTZTimeOnly(), Engine::TZTimeHelper::setTagTZTimestamp(), Engine::TZTimeHelper::setTagUTCTimeOnly(), and Engine::TZTimeHelper::setTagUTCTimestamp().

◆ set() [2/20]

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.

◆ set() [3/20]

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.

◆ set() [4/20]

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.

◆ set() [5/20]

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.

◆ set() [6/20]

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.

◆ set() [7/20]

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.

◆ set() [8/20]

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.

◆ set() [9/20]

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.

◆ set() [10/20]

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.

◆ set() [11/20]

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.

◆ set() [12/20]

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.

◆ set() [13/20]

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.

◆ set() [14/20]

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.

◆ set() [15/20]

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.

◆ set() [16/20]

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.

◆ set() [17/20]

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.

◆ set() [18/20]

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.

◆ set() [19/20]

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.

◆ set() [20/20]

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.

◆ write()

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.

Friends And Related Function Documentation

◆ FieldValueT

template<typename >
friend class FieldValueT
friend