OnixS C++ FIX Engine 4.13.0
API Documentation
Loading...
Searching...
No Matches
Dictionary Class Reference

Public Types

typedef std::vector< ValidFieldValueValidFieldValues
typedef std::vector< std::string > MessageTypes
typedef std::vector< FieldInfoFieldInfos
typedef std::vector< TagTags

Public Member Functions

 Dictionary (const char *id)
 Dictionary (ProtocolVersion::Enum version)
const std::string & id () const
ProtocolVersion::Enum version () const
const std::string & fieldName (Tag tag) const
Tag fieldNumber (const std::string &name) const
std::string fieldValueDescription (Tag tag, const std::string &value) const
ValidFieldValues validFieldValues (Tag tag) const
MessageTypes messageTypes () const
std::string messageName (const std::string &type) const
FieldInfos messageFields (const std::string &type) const
Tags tags () const
bool operator== (const Dictionary &other) const
bool operator!= (const Dictionary &other) const
void swap (Dictionary &other)

Friends

class MessageOperator

Detailed Description

Definition at line 73 of file Dictionary.h.

Member Typedef Documentation

◆ FieldInfos

typedef std::vector<FieldInfo> FieldInfos

The collection of the FIX field information.

Definition at line 136 of file Dictionary.h.

◆ MessageTypes

typedef std::vector<std::string> MessageTypes

The collection of message types.

Definition at line 124 of file Dictionary.h.

◆ Tags

typedef std::vector<Tag> Tags

The collection of tag numbers.

Definition at line 142 of file Dictionary.h.

◆ ValidFieldValues

typedef std::vector<ValidFieldValue> ValidFieldValues

The collection of valid field values.

Definition at line 114 of file Dictionary.h.

Constructor & Destructor Documentation

◆ Dictionary() [1/2]

Dictionary ( const char * id)

Initializes the dictionary according to the definition from the Engine configuration file.

Parameters
idThe identifier of the FIX dictionary as specified in the dictionary XML description by the 'id' attribute of the 'FIX' node.

◆ Dictionary() [2/2]

Creates the dictionary that corresponds to the given FIX Protocol version.

Member Function Documentation

◆ fieldName()

const std::string & fieldName ( Tag tag) const

Returns the name of the corresponding FIX field.

Returns
The name of corresponding FIX field or an empty string if the field is unknown.

◆ fieldNumber()

Tag fieldNumber ( const std::string & name) const

Returns the tag number of the corresponding FIX field.

Returns
The tag number of the corresponding FIX field or 0 if the field is unknown.

◆ fieldValueDescription()

std::string fieldValueDescription ( Tag tag,
const std::string & value ) const

Returns the value description (if it exists) of the corresponding FIX field value.

Returns
The value description of the corresponding FIX field value or an empty string if there is no a description for this field value or the field is unknown.

◆ id()

const std::string & id ( ) const

The dictionary unique identifier.

◆ messageFields()

FieldInfos messageFields ( const std::string & type) const

Returns a collection of field descriptions that belong to the given message.

◆ messageName()

std::string messageName ( const std::string & type) const

Returns the message name by the given message type.

Returns
The message name by the given message type or an empty string if the message type is unknown.

◆ messageTypes()

MessageTypes messageTypes ( ) const

Returns a collection of types of all messages available in this particular FIX dictionary.

◆ operator!=()

bool operator!= ( const Dictionary & other) const

Compares two dictionaries by their identifiers.

◆ operator==()

bool operator== ( const Dictionary & other) const

Compares two dictionaries by their identifiers.

◆ swap()

void swap ( Dictionary & other)

Swaps two instances.

◆ tags()

Tags tags ( ) const

Returns a collection of all tags which belong to the dialect.

◆ validFieldValues()

ValidFieldValues validFieldValues ( Tag tag) const

Returns valid field values (if they exist) of the corresponding FIX field.

Returns
A set of valid field values of the corresponding FIX field value or an empty set if there is no known valid field values for this field or the field is unknown.

◆ version()

ProtocolVersion::Enum version ( ) const

The version of the FIX messaging specification (protocol) on which the dictionary is based.

◆ MessageOperator

friend class MessageOperator
friend

Definition at line 157 of file Dictionary.h.