B2BITS FIX Antenna C++  2.31.0
Classes | Public Types | Public Member Functions | List of all members
Engine::FastScp11::Decoder Class Reference

#include <B2BITS_FastScp11Decoder.h>

Classes

class  Listener
 Default callback class used to notify user about scp message decoding. More...
 

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. 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...
 
 Decoder (Impl *impl)
 Constructor. More...
 
TID getLastUsedTID () const
 Returns the last used template id. More...
 
void resetDictionary ()
 Resets the fast decoder dictionary. More...
 
 ~Decoder ()
 Destructor. More...
 

Member Typedef Documentation

◆ TID

typedef System::u32 Engine::FastScp11::Decoder::TID

Constructor & Destructor Documentation

◆ Decoder()

Engine::FastScp11::Decoder::Decoder ( Impl *  impl)
inlineexplicit

Constructor.

◆ ~Decoder()

Engine::FastScp11::Decoder::~Decoder ( )

Destructor.

Member Function Documentation

◆ decode()

std::unique_ptr<FIXMessage> Engine::FastScp11::Decoder::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 or null if fastMessage contains fast scp messages only.
Exceptions
-an std::exception with detailed information if an error occurs.

◆ decode_u32()

System::u32 Engine::FastScp11::Decoder::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::FastScp11::Decoder::getLastUsedTID ( ) const

Returns the last used template id.

◆ resetDictionary()

void Engine::FastScp11::Decoder::resetDictionary ( )

Resets the fast decoder dictionary.