B2BITS FIX Antenna C++ 2.32.0
Loading...
Searching...
No Matches
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::unique_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.
 
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.
 
 FastDecoder (Impl *impl)
 Constructor.
 
TID getLastUsedTID () const
 Returns the last used template id.
 
void operator delete (void *obj)
 Overloaded delete operator.
 
void resetDictionary ()
 Resets the fast decoder dictionary.
 
 ~FastDecoder ()
 Destructor.
 

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::unique_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.