tobicore
7.0.0
|
Serializer interface for TCBlock. More...
#include <tobicore/TCSerializer.hpp>
Public Member Functions | |
TCSerializer (void) | |
Constructor. | |
TCSerializer (TCBlock *const block) | |
Constructor. | |
virtual | ~TCSerializer (void) |
Destructor. | |
TCSerializer * | SetMessage (TCBlock *const block) |
Sets the associated ICMessage. | |
virtual std::string * | Serialize (std::string *buffer)=0 |
Serializes to std::string. | |
virtual std::string * | Deserialize (std::string *const buffer)=0 |
Deserializes from std::string. | |
virtual std::string | SerializeCp (void) |
Serializes to std::string. | |
virtual void | DeserializeCp (const std::string &buffer) |
Deserializes from std::string. | |
virtual char * | SerializeCh (char *buffer, const unsigned int bsize) |
Serializes to a char array. | |
virtual const char * | DeserializeCh (const char *buffer, const unsigned int bsize) |
Deserializes from a char array. |
Protected Attributes | |
TCBlock * | _message |
Pointer to the associated TCBlock. |
Serializer interface for TCBlock.
Exactly like ICSerializer or IDSerializer
Definition at line 32 of file TCSerializer.hpp.
TCSerializer::TCSerializer | ( | TCBlock *const | block | ) |
|
pure virtual |
Deserializes from std::string.
|
virtual |
Deserializes from a char array.
Definition at line 68 of file TCSerializer.cpp.
|
virtual |
Deserializes from std::string.
Definition at line 49 of file TCSerializer.cpp.
|
pure virtual |
Serializes to std::string.
|
virtual |
Serializes to a char array.
Definition at line 54 of file TCSerializer.cpp.
|
virtual |
Serializes to std::string.
Definition at line 43 of file TCSerializer.cpp.
TCSerializer * TCSerializer::SetMessage | ( | TCBlock *const | block | ) |
Sets the associated ICMessage.
Definition at line 38 of file TCSerializer.cpp.
|
protected |
Pointer to the associated TCBlock.
Each TCSerializer has an associated TCBlock.
Definition at line 103 of file TCSerializer.hpp.