OnixS C++ CME Market Data Handler  2.56.0.0
Public Member Functions | Friends | List of all members
GroupInstance Class Reference

Single instance of FIX Repeating Group. More...

Public Member Functions

 GroupInstance ()
 Initializes instance referencing to nothing.
 
 GroupInstance (const GroupInstance &other)
 Initializes instance as reference to the other one.
 
GroupInstanceoperator= (const GroupInstance &)
 Reinitializes instance as reference of other one.
 
const Messagemessage () const
 Instance of Message holding given repeating group instance. More...
 
- Public Member Functions inherited from FieldSet
 operator bool () const
 Indicates whether instance refers to a valid set of fields. More...
 
FieldValueRef get (Tag tag) const
 Provides access to field value using field tag. More...
 
char getChar (Tag tag) const
 Returns field value as a char value. More...
 
Int32 getInt32 (Tag tag) const
 Returns field value as an Int32 value. More...
 
UInt32 getUInt32 (Tag tag) const
 Returns field value as an UInt32 value. More...
 
Int64 getInt64 (Tag tag) const
 Returns field value as an Int64 value. More...
 
UInt64 getUInt64 (Tag tag) const
 Returns field value as an UInt64 value. More...
 
Decimal getDecimal (Tag tag) const
 Returns the field value as a decimal number. More...
 
StringRef getStringRef (Tag tag) const
 Returns reference to a read-only text chain. More...
 
Timestamp getTimestamp (Tag tag, TimestampFormat format=TimestampFormats::YYYYMMDDHHMMSSmsec) const
 Returns the field value as timestamp of requested format. More...
 
Group getGroup (Tag tag) const
 Returns reference to a repeating group if underlying field defines length of repeating group. More...
 
Group getOptionalGroup (Tag tag) const
 Returns reference to a repeating group if underlying field defines length of repeating group. More...
 
bool hasFlag (Tag tag) const
 Returns true if the given flag is present and it equals to "Y", otherwise false. More...
 
bool contain (Tag tag) const
 Checks the presence of a field This method should be used if the actual field value is NOT of interest - otherwise field lookup operation will be done twice. More...
 

Friends

class MessageOperator
 

Additional Inherited Members

- Protected Member Functions inherited from FieldSet
 FieldSet (const Message *, const void *)
 
 FieldSet (const FieldSet &)
 
FieldSetoperator= (const FieldSet &)
 
- Protected Attributes inherited from FieldSet
const void * impl_
 
const Messagecontainer_
 

Detailed Description

Single instance of FIX Repeating Group.

Provides access to the fields of a particular repeating group instance.

Class behaves like a pointer/reference to a set of FIX fields. Coping and assignment operations just update reference to the field-set being pointed, no deep copying is performed.

Member Function Documentation

const Message & message ( ) const
inline

Instance of Message holding given repeating group instance.

Warning
Due to performance considerations, doesn't check whether instance refers to a valid set of fields. Use operator bool() to check whether instance is in valid state.