B2BITS FIX Antenna C++  2.27.1
Public Types | Public Member Functions | Protected Member Functions | List of all members
Engine::FastDecoder Class Reference

Decodes buffers, that contains FAST messages, to FIX messages. More...

#include <B2BITS_FastDecoder.h>

Public Types

typedef System::u32 TID
 

Public Member Functions

std::auto_ptr< FIXMessagedecode (const char *fastMessage, std::size_t size, std::size_t *decoded=NULL)
 Takes a FAST message from the specified buffer and decodes it to a FIX message. More...
 
System::u32 decode_u32 (const char *fastMessage, std::size_t size, std::size_t *decoded=NULL)
 Decodes unsigned int32 at the beginning of the stream. More...
 
 FastDecoder (Impl *impl)
 Constructor. More...
 
TID getLastUsedTID () const
 Returns the last used template id. More...
 
void operator delete (void *obj)
 Overloaded delete operator. More...
 
void resetDictionary ()
 Resets the fast decoder dictionary. More...
 
 ~FastDecoder ()
 Destructor. More...
 

Protected Member Functions

 FastDecoder (const FastDecoder &)
 
FastDecoderoperator= (const FastDecoder &)
 

Detailed Description

Decodes buffers, that contains FAST messages, to FIX messages.

Member Typedef Documentation

◆ TID

typedef System::u32 Engine::FastDecoder::TID

Constructor & Destructor Documentation

◆ FastDecoder() [1/2]

Engine::FastDecoder::FastDecoder ( Impl *  impl)

Constructor.

◆ ~FastDecoder()

Engine::FastDecoder::~FastDecoder ( )

Destructor.

◆ FastDecoder() [2/2]

Engine::FastDecoder::FastDecoder ( const FastDecoder )
protected

Member Function Documentation

◆ decode()

std::auto_ptr<FIXMessage> Engine::FastDecoder::decode ( const char *  fastMessage,
std::size_t  size,
std::size_t *  decoded = NULL 
)

Takes a FAST message from the specified buffer and decodes it to a FIX message.

Parameters
[in]fastMessage- pointer to array of char that contains FAST message to be decoded.
[in]size- the array size.
[out]decoded- amount bytes were decoded.
Returns
instance of FIXMessage class.
Exceptions
-an std::exception with detailed information if an error occurs.

◆ decode_u32()

System::u32 Engine::FastDecoder::decode_u32 ( const char *  fastMessage,
std::size_t  size,
std::size_t *  decoded = NULL 
)

Decodes unsigned int32 at the beginning of the stream.

Parameters
[in]fastMessage- pointer to array of char that contains FAST stream.
[in]size- the array size.
[out]decoded- amount bytes were decoded.
Returns
decoded unsigned int32.
Exceptions
-an std::exception with detailed information if an error occurs.

◆ getLastUsedTID()

TID Engine::FastDecoder::getLastUsedTID ( ) const

Returns the last used template id.

◆ operator delete()

void Engine::FastDecoder::operator delete ( void *  obj)

Overloaded delete operator.

◆ operator=()

FastDecoder& Engine::FastDecoder::operator= ( const FastDecoder )
protected

◆ resetDictionary()

void Engine::FastDecoder::resetDictionary ( )

Resets the fast decoder dictionary.