Group Class Reference

FIX Repeating Group. More...

List of all members.

Public Member Functions

bool contain (int tag, int index) const
 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.
GroupgetGroup (int numberOfInstancesTag, int index)
 Returns the nested repeating group.
int getInteger (int tag, int index) const
 Returns the field value as integer.
double getDouble (int tag, int index) const
 Returns the field value as a floating-point number.
size_t numberOfInstances ()
 Return the number of instances in this repeating group.
bool remove (int tag, int index)
 Removes the field.
bool hasFlag (int tag, int index) const
 Returns 'true' if the given flag is present and it equals to "Y", otherwise 'false'.
bool set (int tag, int index, const std::string &value)
 Sets the field value as string.
bool set (int tag, int index, int value)
 Sets the field value as integer.
GroupsetGroup (int numberOfInstancesTag, int index, int numberOfIntances)
 Creates a new repeating group or changes the number of instances in the existing repeatign group.
bool setFlag (int tag, int index, bool value)
 Sets the given flag to "Y" or "N".
void release ()
 Releases all Group resources (destroys the object).

Friends

class Message


Detailed Description

FIX Repeating Group.

Definition at line 20 of file Group.h.


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:
tag Tag number.
index Index 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:
tag Tag number.
index Index of the repeating group instance.

Group* getGroup ( int  numberOfInstancesTag,
int  index 
)

Returns the nested repeating group.

Parameters:
numberOfInstancesTag Tag number of the field that defines the number of instances in this repeating group (the NoXXX field).
index Index of the repeating group instance.

int getInteger ( int  tag,
int  index 
) const

Returns the field value as integer.

Parameters:
tag Tag number.
index Index of the repeating group instance.
Warning:
Return 0 if the field value is absent.

double getDouble ( int  tag,
int  index 
) const

Returns the field value as a floating-point number.

Parameters:
tag Tag number.
index Index of the repeating group instance.
Warning:
Return 0 if the field value is absent.

size_t numberOfInstances (  ) 

Return the number of instances in this repeating group.

bool remove ( int  tag,
int  index 
)

Removes the field.

Parameters:
tag Tag number.
index Index of the repeating group instance.

bool hasFlag ( int  tag,
int  index 
) const

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

Parameters:
tag Tag number.
index Index of the repeating group instance.
Returns:
'true' if the given flag is present and it equals to "Y", otherwise 'false'.

bool set ( int  tag,
int  index,
const std::string &  value 
)

Sets the field value as string.

Parameters:
tag Tag number.
index Index of the repeating group instance.
value Field value.

bool set ( int  tag,
int  index,
int  value 
)

Sets the field value as integer.

Parameters:
tag Tag number.
index Index of the repeating group instance.
value Field value.

Group* setGroup ( int  numberOfInstancesTag,
int  index,
int  numberOfIntances 
)

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

Parameters:
numberOfInstancesTag Tag number of the field that defines the number of instances in this repeating group (the NoXXX field).
index Index of the repeating group instance.
numberOfIntances Number of instances in the repeating group.

bool setFlag ( int  tag,
int  index,
bool  value 
)

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

Parameters:
tag Tag number.
index Index of the repeating group instance.
value Flag value.
Returns:
"true" if the flag had value before, otherwise "false" (the flag was inserted into the message).

void release (  ) 

Releases all Group resources (destroys the object).


Friends And Related Function Documentation

friend class Message [friend]

Definition at line 138 of file Group.h.


The documentation for this class was generated from the following file:
Generated on Wed Oct 8 18:58:59 2008 for FIXForge C++ FIX Engine by  doxygen 1.5.2