Decoder Class Reference

Performs FAST 1.1 to FIX decoding. More...

List of all members.

Public Member Functions

 Decoder (const std::string &xmlTemplates, FIXForge::FIX::Version fixVersion, bool decodeEachMessageIndependently)
 Constructor.
 ~Decoder (void)
 Destructor.
const FIXForge::FIX::Messagedecode (const char *buffer, size_t bufferSize)
 Decodes the given FAST 1.1 stream chunk into the corresponding FIX Message.
const FIXForge::FIX::Messagedecode (const std::vector< char > &chunk)
 Decodes the given FAST 1.1 stream chunk into the corresponding FIX Message.
bool decode (const char *buffer, size_t offset, size_t count, const FIXForge::FIX::Message **message, size_t *chunkLengh)
void reset ()
 Resets the state of the previous values dictionaries (sets the state of the previous values to undefined).

Static Public Member Functions

static bool decodeUnsignedInteger (const char *buffer, size_t bufferSize, unsigned int *value, size_t *fieldLength)
 Decoded the FAST-encoded unsigned integer.


Detailed Description

Performs FAST 1.1 to FIX decoding.

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


Constructor & Destructor Documentation

Decoder ( const std::string &  xmlTemplates,
FIXForge::FIX::Version  fixVersion,
bool  decodeEachMessageIndependently 
)

Constructor.

Creates a FAST 1.1 to FIX Decoder.

Parameters:
xmlTemplates XML-based FAST 1.1 templates.
fixVersion FIX Protocol version.
decodeEachMessageIndependently Option to reset the previous values dictionaries before decoding a new FAST stream chunk.

~Decoder ( void   ) 

Destructor.


Member Function Documentation

const FIXForge::FIX::Message& decode ( const char *  buffer,
size_t  bufferSize 
)

Decodes the given FAST 1.1 stream chunk into the corresponding FIX Message.

Parameters:
buffer Buffer that contains the FAST stream chunk to be decoded.
bufferSize Size of the buffer.
Exceptions:
EngineException if the message cannot be decoded.
Returns:
the decoded FIX message.

const FIXForge::FIX::Message& decode ( const std::vector< char > &  chunk  ) 

Decodes the given FAST 1.1 stream chunk into the corresponding FIX Message.

Parameters:
chunk The FAST stream chunk to be decoded.
Exceptions:
EngineException if the message cannot be decoded.
Returns:
the decoded FIX message.

bool decode ( const char *  buffer,
size_t  offset,
size_t  count,
const FIXForge::FIX::Message **  message,
size_t *  chunkLengh 
)

static bool decodeUnsignedInteger ( const char *  buffer,
size_t  bufferSize,
unsigned int *  value,
size_t *  fieldLength 
) [static]

Decoded the FAST-encoded unsigned integer.

Parameters:
buffer Buffer that contains the FAST stream chunk to be decoded.
bufferSize Size of the buffer.
value Decoded value.
fieldLength Number of bytes that contained the encoded value.
Returns:
'true' if the stop bit was found and the value was decoded, otherwise - 'false'.

void reset (  ) 

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

See also:
decodeEachMessageIndependently.


The documentation for this class was generated from the following file:
Generated on Thu Jul 31 12:55:04 2008 for FIXForge C++ FIX Engine by  doxygen 1.5.2