Encoder Class Reference

Encodes FIX messages into FAST 1.1 representation. More...

List of all members.

Public Member Functions

 Encoder (const std::string &xmlTemplates, FIXForge::FIX::Version fixVersion, bool encodeEachMessageIndependently)
 Constructor.
 ~Encoder (void)
 Destructor.
size_t encode (const FIXForge::FIX::Message &fixMessage, int templateID, char *buffer, size_t bufferSize)
 Encodes the given FIX message into a FAST 1.1 stream.
size_t encode (const FIXForge::FIX::Message &fixMessage, char *buffer, size_t bufferSize)
 Encodes the given FIX message into a FAST 1.1 stream using the default template ID.
void reset ()
 Resets the state of the previous values dictionaries (sets the state of the previous values to undefined).


Detailed Description

Encodes FIX messages into FAST 1.1 representation.

Definition at line 21 of file FAST_1-1.h.


Constructor & Destructor Documentation

Encoder ( const std::string &  xmlTemplates,
FIXForge::FIX::Version  fixVersion,
bool  encodeEachMessageIndependently 
)

Constructor.

Creates a FIX to FAST Encoder.

Parameters:
xmlTemplates XML-based FAST 1.1 templates.
fixVersion FIX Protocol version.
encodeEachMessageIndependently Option to reset the previous values dictionaries before encoding a new FIX message.

~Encoder ( void   ) 

Destructor.


Member Function Documentation

size_t encode ( const FIXForge::FIX::Message fixMessage,
int  templateID,
char *  buffer,
size_t  bufferSize 
)

Encodes the given FIX message into a FAST 1.1 stream.

Parameters:
fixMessage Source FIX message to be encoded.
templateID FAST Template Identifier which uniquely describes the encoding/decoding rules.
buffer Supplied buffer that will contain the FAST stream chunk.
bufferSize Size of the supplied buffer.
Returns:
the size of the encoded FAST stream chunk.

size_t encode ( const FIXForge::FIX::Message fixMessage,
char *  buffer,
size_t  bufferSize 
)

Encodes the given FIX message into a FAST 1.1 stream using the default template ID.

Parameters:
fixMessage Source FIX message to be encoded.
buffer Supplied buffer that will contain the FAST stream chunk.
bufferSize Size of the supplied buffer.
Returns:
the size of the encoded FAST stream chunk.

void reset (  ) 

Resets the state of the previous values dictionaries (sets the state of the previous values to undefined).

See also:
encodeEachMessageIndependently.


The documentation for this class was generated from the following file:
Generated on Thu Sep 25 18:51:45 2008 for FIXForge C++ FIX Engine by  doxygen 1.5.2