|
| Encoder (const std::string &xmlTemplates, ProtocolVersion::Enum fixVersion, bool encodeEachMessageIndependently) |
| Encoder (const std::string &xmlTemplates, const std::string &fixDictionaryId, bool encodeEachMessageIndependently) |
| Encoder (const std::string &xmlTemplates, bool encodeEachMessageIndependently) |
| Encoder (ProtocolVersion::Enum baseVersion, const std::string &xmlTemplates, bool encodeEachMessageIndependently) |
| Encoder (ProtocolVersion::Enum baseVersion, const std::string &xmlTemplates, const std::string &genericFixDictionaryId, bool encodeEachMessageIndependently) |
| ~Encoder (void) |
size_t | encode (const OnixS::FIX::Message &fixMessage, int templateID, char *buffer, size_t bufferSize) |
size_t | encode (const OnixS::FIX::Message &fixMessage, int templateID, unsigned char *buffer, size_t bufferSize) |
size_t | encode (const OnixS::FIX::Message &fixMessage, char *buffer, size_t bufferSize) |
size_t | encode (const OnixS::FIX::Message &fixMessage, unsigned char *buffer, size_t bufferSize) |
void | reset () |
OnixS::FIX::Dictionary | fixDictionary () const |
Definition at line 38 of file FAST.h.
◆ Encoder() [1/5]
Creates a FIX to FAST Encoder.
- Parameters
-
xmlTemplates | XML-based FAST templates. |
fixVersion | The FIX Protocol version. |
encodeEachMessageIndependently | The option to reset the previous values dictionaries before encoding a new FIX message. |
◆ Encoder() [2/5]
Encoder |
( |
const std::string & | xmlTemplates, |
|
|
const std::string & | fixDictionaryId, |
|
|
bool | encodeEachMessageIndependently ) |
Creates a FIX to FAST Encoder.
- Parameters
-
xmlTemplates | XML-based FAST templates. |
fixDictionaryId | The FIX dictionary ID. |
encodeEachMessageIndependently | The option to reset the previous values dictionaries before encoding a new FIX message. |
◆ Encoder() [3/5]
Encoder |
( |
const std::string & | xmlTemplates, |
|
|
bool | encodeEachMessageIndependently ) |
Creates a FIX to FAST Encoder for the FIX dictionary-independent mode.
The generic FIX dictionary is created by the provided FAST-template content, it uses the FIX 4.0 as a base and has a generic name.
- Parameters
-
xmlTemplates | XML-based FAST templates. |
encodeEachMessageIndependently | The option to reset the previous values dictionaries before encoding the next FIX message. |
◆ Encoder() [4/5]
Creates a FIX to FAST Encoder for the FIX dictionary-independent mode.
The generic FIX dictionary is created by the provided FAST-template content, it uses the specified FIX dictionary as a base and has a generic name.
- Parameters
-
baseVersion | This version of the FIX protocol becomes the base for the newly generated FIX dictionary. |
xmlTemplates | XML-based FAST templates used to generate FIX dictionary. This FIX dictionary takes the generic identifier generated on a base of the XML content and baseVersion |
encodeEachMessageIndependently | The option to reset the previous values dictionaries before encoding next FIX message. |
◆ Encoder() [5/5]
Encoder |
( |
ProtocolVersion::Enum | baseVersion, |
|
|
const std::string & | xmlTemplates, |
|
|
const std::string & | genericFixDictionaryId, |
|
|
bool | encodeEachMessageIndependently ) |
Creates a FIX to FAST Encoder for the FIX dictionary-independent mode.
The generic FIX dictionary is created by the provided FAST-template content, it uses the specified FIX dictionary as a base and has the specified name.
- Note
- The new FIX dictionary instance will be generated if and only if there is no a FIX dictionary with the same name.
- Parameters
-
baseVersion | This version of the FIX protocol becomes the base for the newly generated FIX dictionary. |
xmlTemplates | XML-based FAST templates. |
genericFixDictionaryId | The identifier which is applied to the generic FIX dictionary. This FIX dictionary is generated using xmlTemplates and baseVersion . |
encodeEachMessageIndependently | The option to reset the previous values dictionaries before encoding the next FIX message. |
◆ ~Encoder()
◆ encode() [1/4]
Encodes the given FIX message into a FAST stream using the default template ID.
- Parameters
-
fixMessage | The source FIX message to be encoded. |
buffer | The supplied buffer that will contain the FAST stream chunk. |
bufferSize | The size of the supplied buffer. |
- Returns
- the size of the encoded FAST stream chunk.
◆ encode() [2/4]
size_t encode |
( |
const OnixS::FIX::Message & | fixMessage, |
|
|
int | templateID, |
|
|
char * | buffer, |
|
|
size_t | bufferSize ) |
Encodes the given FIX message into a FAST stream.
- Parameters
-
fixMessage | The source FIX message to be encoded. |
templateID | The FAST Template Identifier which uniquely describes the encoding/decoding rules. |
buffer | The supplied buffer that will contain the FAST stream chunk. |
bufferSize | The size of the supplied buffer. |
- Returns
- the size of the encoded FAST stream chunk.
◆ encode() [3/4]
size_t encode |
( |
const OnixS::FIX::Message & | fixMessage, |
|
|
int | templateID, |
|
|
unsigned char * | buffer, |
|
|
size_t | bufferSize ) |
◆ encode() [4/4]
size_t encode |
( |
const OnixS::FIX::Message & | fixMessage, |
|
|
unsigned char * | buffer, |
|
|
size_t | bufferSize ) |
◆ fixDictionary()
The FIX dictionary used by the encoder instance.
- Returns
- The FIX dictionary currently used by the encoder instance. If the encoder was initialized for the FIX dictionary-independent mode, the method returns a reference to the internally generated FIX dictionary.
◆ reset()
Resets the state of the previous values dictionaries (sets the state of the previous values to undefined).
- See also
- encodeEachMessageIndependently.