FIX Repeating Group.
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 |
Group * | getGroup (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) |
Group * | setGroup (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 |
bool contain | ( | int | tag, |
int | index | ||
) | const |
Returns 'true' if the message contains the field with the given tag, otherwise - 'false'.
tag | Tag number. |
index | Index of the repeating group instance. |
const std::string& get | ( | int | tag, |
int | index | ||
) |
Returns the field value as string.
tag | Tag number. |
index | Index of the repeating group instance. |
double getDouble | ( | int | tag, |
int | index | ||
) | const |
Returns the field value as a floating-point number.
tag | Tag number. |
index | Index of the repeating group instance. |
std::exception | if conversion can't be done or field is absent. |
Group* getGroup | ( | int | numberOfInstancesTag, |
int | index | ||
) |
Returns the nested repeating group.
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 getInt32 | ( | int | tag, |
int | index | ||
) | const |
Returns field value as an int value.
tag | Tag number. |
index | Index of the repeating group instance. |
std::exception | if 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.
tag | Tag number. |
index | Index of the repeating group instance. |
std::exception | if conversion can't be done or field is absent. |
int getInteger | ( | int | tag, |
int | index | ||
) | const |
Returns the field value as integer.
tag | Tag number. |
index | Index of the repeating group instance. |
std::exception | if conversion can't be done or field is absent. |
unsigned int getUInt32 | ( | int | tag, |
int | index | ||
) | const |
Returns field value as an 'unsigned int' value.
tag | Tag number. |
index | Index of the repeating group instance. |
std::exception | if 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.
tag | Tag number. |
index | Index of the repeating group instance. |
std::exception | if 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'.
tag | Tag number. |
index | Index of the repeating group instance. |
bool remove | ( | int | tag, |
int | index | ||
) |
Removes the field.
tag | Tag number. |
index | Index of the repeating group instance. |
bool set | ( | int | tag, |
int | index, | ||
const std::string & | value | ||
) |
Sets the field value as string.
tag | Tag number. |
index | Index of the repeating group instance. |
value | Field value. |
bool set | ( | int | tag, |
int | index, | ||
unsigned int | value | ||
) |
Sets the field value as 32-bit unsigned integer.
tag | Tag number. |
index | Index of the repeating group instance. |
value | Field value. |
bool set | ( | int | tag, |
int | index, | ||
long long | value | ||
) |
Sets the field value as 64-bit signed integer.
tag | Tag number. |
index | Index of the repeating group instance. |
value | Field value. |
bool set | ( | int | tag, |
int | index, | ||
double | value | ||
) |
Sets the field value as floating-point number.
tag | Tag number. |
index | Index of the repeating group instance. |
value | Field value. |
bool set | ( | int | tag, |
int | index, | ||
unsigned long long | value | ||
) |
Sets the field value as 64-bit unsigned integer.
tag | Tag number. |
index | Index of the repeating group instance. |
value | Field value. |
bool set | ( | int | tag, |
int | index, | ||
char | value | ||
) |
Sets the field value as character.
tag | Tag number. |
index | Index of the repeating group instance. |
value | Field value. |
bool set | ( | int | tag, |
int | index, | ||
double | value, | ||
size_t | precision | ||
) |
Sets the field value as floating-point number.
tag | Tag number. |
index | Index of the repeating group instance. |
value | Field value. |
precision | precision of a floating value. |
bool set | ( | int | tag, |
int | index, | ||
int | value | ||
) |
Sets the field value as 32-bit signed integer.
tag | Tag number. |
index | Index of the repeating group instance. |
value | Field value. |
bool set | ( | int | tag, |
int | index, | ||
const char * | value | ||
) |
Sets the field value as string.
tag | Tag number. |
index | Index of the repeating group instance. |
value | Field value. |
bool setFlag | ( | int | tag, |
int | index, | ||
bool | value | ||
) |
Sets the given flag to "Y" or "N".
tag | Tag number. |
index | Index of the repeating group instance. |
value | Flag value. |
Group* setGroup | ( | int | numberOfInstancesTag, |
int | index, | ||
int | numberOfIntances | ||
) |
Creates a new repeating group or changes the number of instances in the existing repeating group.
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. |