OnixS C++ FIX Engine 2.79.1.0
Group Class Reference

FIX Repeating Group.

List of all members.

Public Member Functions

size_t numberOfInstances ()
bool contain (int tag, int index) const
const std::string & get (int tag, int index)
int getInteger (int tag, int index) const
int getInt32 (int tag, int index) const
unsigned int getUInt32 (int tag, int index) const
long long getInt64 (int tag, int index) const
unsigned long long getUInt64 (int tag, int index) const
double getDouble (int tag, int index) const
GroupgetGroup (int numberOfInstancesTag, int index)
bool hasFlag (int tag, int index) const
bool set (int tag, int index, char value)
bool set (int tag, int index, const std::string &value)
bool set (int tag, int index, const char *value)
bool set (int tag, int index, int value)
bool set (int tag, int index, unsigned int value)
bool set (int tag, int index, long long value)
bool set (int tag, int index, unsigned long long value)
bool set (int tag, int index, double value)
bool set (int tag, int index, double value, size_t precision)
GroupsetGroup (int numberOfInstancesTag, int index, int numberOfIntances)
bool setFlag (int tag, int index, bool value)
bool remove (int tag, int index)
void release ()

Friends

class Message

Member Function Documentation

bool contain ( int  tag,
int  index 
) const

Returns 'true' if the message contains the field with the given tag, otherwise - 'false'.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
Returns:
'true' if the message contains the field with the given tag, otherwise - 'false'.
const std::string& get ( int  tag,
int  index 
)

Returns the field value as string.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
double getDouble ( int  tag,
int  index 
) const

Returns the field value as a floating-point number.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
Exceptions:
std::exceptionif conversion can't be done or field is absent.
Group* getGroup ( int  numberOfInstancesTag,
int  index 
)

Returns the nested repeating group.

Parameters:
numberOfInstancesTagTag number of the field that defines the number of instances in this repeating group (the NoXXX field).
indexIndex of the repeating group instance.
int getInt32 ( int  tag,
int  index 
) const

Returns field value as an int value.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
Exceptions:
std::exceptionif conversion can't be done or field is absent.
long long getInt64 ( int  tag,
int  index 
) const

Returns field value as an 'long long' value.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
Exceptions:
std::exceptionif conversion can't be done or field is absent.
int getInteger ( int  tag,
int  index 
) const

Returns the field value as integer.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
Exceptions:
std::exceptionif conversion can't be done or field is absent.
Warning:
Deprecated, use getInt32 or other appropriate member.
unsigned int getUInt32 ( int  tag,
int  index 
) const

Returns field value as an 'unsigned int' value.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
Exceptions:
std::exceptionif conversion can't be done or field is absent.
unsigned long long getUInt64 ( int  tag,
int  index 
) const

Returns field value as an 'unsigned long long' value.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
Exceptions:
std::exceptionif conversion can't be done or field is absent.
bool hasFlag ( int  tag,
int  index 
) const

Returns 'true' if the given flag is present and it equals to "Y", otherwise 'false'.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
Returns:
'true' if the given flag is present and it equals to "Y", otherwise 'false'.
bool remove ( int  tag,
int  index 
)

Removes the field.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
bool set ( int  tag,
int  index,
const std::string &  value 
)

Sets the field value as string.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
valueField value.
Returns:
"true" if the value had value before, otherwise "false" (the field was inserted into the message).
bool set ( int  tag,
int  index,
unsigned int  value 
)

Sets the field value as 32-bit unsigned integer.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
valueField value.
Returns:
"true" if the value had value before, otherwise "false" (the field was inserted into the message).
bool set ( int  tag,
int  index,
long long  value 
)

Sets the field value as 64-bit signed integer.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
valueField value.
Returns:
"true" if the value had value before, otherwise "false" (the field was inserted into the message).
bool set ( int  tag,
int  index,
double  value 
)

Sets the field value as floating-point number.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
valueField value.
Returns:
"true" if the value had value before, otherwise "false" (the field was inserted into the message).
bool set ( int  tag,
int  index,
unsigned long long  value 
)

Sets the field value as 64-bit unsigned integer.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
valueField value.
Returns:
"true" if the value had value before, otherwise "false" (the field was inserted into the message).
bool set ( int  tag,
int  index,
char  value 
)

Sets the field value as character.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
valueField value.
Returns:
"true" if the value had value before, otherwise "false" (the field was inserted into the message).
bool set ( int  tag,
int  index,
double  value,
size_t  precision 
)

Sets the field value as floating-point number.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
valueField value.
precisionprecision of a floating value.
Returns:
"true" if the value had value before, otherwise "false" (the field was inserted into the message).
bool set ( int  tag,
int  index,
int  value 
)

Sets the field value as 32-bit signed integer.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
valueField value.
Returns:
"true" if the value had value before, otherwise "false" (the field was inserted into the message).
bool set ( int  tag,
int  index,
const char *  value 
)

Sets the field value as string.

Parameters:
tagTag number.
indexIndex of the repeating group instance.
valueField value.
Returns:
"true" if the value had value before, otherwise "false" (the field was inserted into the message).
bool setFlag ( int  tag,
int  index,
bool  value 
)

Sets the given flag to "Y" or "N".

Parameters:
tagTag number.
indexIndex of the repeating group instance.
valueFlag value.
Returns:
"true" if the flag had value before, otherwise "false" (the flag was inserted into the message).
Group* setGroup ( int  numberOfInstancesTag,
int  index,
int  numberOfIntances 
)

Creates a new repeating group or changes the number of instances in the existing repeating group.

Parameters:
numberOfInstancesTagTag number of the field that defines the number of instances in this repeating group (the NoXXX field).
indexIndex of the repeating group instance.
numberOfIntancesNumber of instances in the repeating group.
Returns:
"true" if the value had value before, otherwise "false" (the field was inserted into the message).