![]() |
B2BITS FIX Antenna C++ 2.34.0
|
Encodes FIX messages to FAST messages. More...
#include <B2BITS_FastCoder.h>
Classes | |
| class | Buffer |
| Buffer. More... | |
Public Types | |
| typedef System::u32 | TID |
Public Member Functions | |
| void | encode (Engine::FIXMessage const *msg, Buffer *buffer) |
| Encodes the specified fix message to the fast message. | |
| void | encode (Engine::FIXMessage const *msg, System::u32 tid, Buffer *buffer) |
| Encodes the specified fix message to the fast message using the specified template id. | |
| FastCoder (Impl *impl) | |
| Constructor. | |
| std::unique_ptr< FIXMessage > | newSkel (const std::string &msgType) |
| Creates a skeleton of a fix message and returns it. | |
| void | operator delete (void *obj) |
| Overloaded delete operator. | |
| std::unique_ptr< FIXMessage > | parse (const std::string &rawMessage) |
| Parses the specified std::string and creates a corresponding FIXMessage instance;. | |
| void | resetDictionary () |
| Resets the fast coder dictionary. | |
| void | tryEncode (Engine::FIXMessage const *msg, System::u32 tid) |
| Checks if the message can be encoded without errors, using the specified template. | |
| ~FastCoder () | |
| Destructor. | |
Protected Member Functions | |
| FastCoder (const FastCoder &) | |
| FastCoder & | operator= (const FastCoder &) |
Encodes FIX messages to FAST messages.
| typedef System::u32 Engine::FastCoder::TID |
| Engine::FastCoder::FastCoder | ( | Impl * | impl | ) |
Constructor.
| Engine::FastCoder::~FastCoder | ( | ) |
Destructor.
|
protected |
| void Engine::FastCoder::encode | ( | Engine::FIXMessage const * | msg, |
| Buffer * | buffer ) |
Encodes the specified fix message to the fast message.
| [in] | msg | - pointer to fix message to be encoded. |
| [out] | buffer | - pointer to buffer that will contain fast message after encoding |
| - | an std::exception with detailed information if an error occurs. |
| void Engine::FastCoder::encode | ( | Engine::FIXMessage const * | msg, |
| System::u32 | tid, | ||
| Buffer * | buffer ) |
Encodes the specified fix message to the fast message using the specified template id.
| [in] | msg | - pointer to fix message to be encoded. |
| [in] | tid | - template id |
| [out] | buffer | - pointer to buffer that will contain fast message after encoding |
| - | an std::exception with detailed information if an error occurs. |
| std::unique_ptr< FIXMessage > Engine::FastCoder::newSkel | ( | const std::string & | msgType | ) |
Creates a skeleton of a fix message and returns it.
| [in] | msgType | - null-terminated std::string. Specifies type of new message. |
| void Engine::FastCoder::operator delete | ( | void * | obj | ) |
Overloaded delete operator.
| std::unique_ptr< FIXMessage > Engine::FastCoder::parse | ( | const std::string & | rawMessage | ) |
Parses the specified std::string and creates a corresponding FIXMessage instance;.
| [in] | rawMessage | - null-terminated std::string. Should contain a raw fix message. |
| void Engine::FastCoder::resetDictionary | ( | ) |
Resets the fast coder dictionary.
| void Engine::FastCoder::tryEncode | ( | Engine::FIXMessage const * | msg, |
| System::u32 | tid ) |
Checks if the message can be encoded without errors, using the specified template.
Silently returns a control if no errors are detected; otherwise throws an std::exception with detailed information. Usssualy used for debugging purpose only.
| [in] | msg | - pointer to a fix message to be checked. |
| [in] | tid | - template id. |
| an | std::exception with detailed information if any errors detected. |