|
| LargeBinaryCodec (const Type type, const bool scramble=true) |
|
virtual | ~LargeBinaryCodec () |
|
void | clear () noexcept(false) |
|
LargeBinaryCodec & | operator+= (const DataBlock &dataBlock) noexcept(false) |
|
virtual void | decode (const DataBlock &dataBlock) noexcept(false) |
|
const_iterator | begin () const |
|
const_iterator | end () const |
|
int | size () const |
|
| Codec (const Type type, const bool scramble=true) |
|
const Variable * | attach (const char *name, std::string &value) noexcept(false) |
|
const Variable * | attach (const char *name, const char *&value) noexcept(false) |
|
const Variable * | attach (const char *name, int &value) noexcept(false) |
|
const Variable * | attach (const char *name, S64 &value) noexcept(false) |
|
const Variable * | attach (const char *name, bool &value) noexcept(false) |
|
const Variable * | attach (const char *name, DataBlock &value) noexcept(false) |
|
const Variable * | attach (const char *name, float &value) noexcept(false) |
|
const Variable * | attach (const char *name, double &value) noexcept(false) |
|
const Variable * | attach (const char *name, Second &value) noexcept(false) |
|
const Variable * | attach (const char *name, Millisecond &value) noexcept(false) |
|
const Variable * | attach (const char *name, Microsecond &value) noexcept(false) |
|
| CompatCodec (const Type type, const bool scramble=true) |
|
virtual | ~CompatCodec () |
|
Type | getType () const |
|
const Variable * | attach (const char *name, const short int id, std::string &value) noexcept(false) |
|
const Variable * | attach (const char *name, const short int id, const char *&value) noexcept(false) |
|
const Variable * | attach (const char *name, const short int id, int &value) noexcept(false) |
|
const Variable * | attach (const char *name, const short int id, S64 &value) noexcept(false) |
|
const Variable * | attach (const char *name, const short int id, bool &value) noexcept(false) |
|
const Variable * | attach (const char *name, const short int id, DataBlock &value) noexcept(false) |
|
const Variable * | attach (const char *name, const short int id, float &value) noexcept(false) |
|
const Variable * | attach (const char *name, const short int id, double &value) noexcept(false) |
|
const Variable * | attach (const char *name, const short int id, Second &value) noexcept(false) |
|
const Variable * | attach (const char *name, const short int id, Millisecond &value) noexcept(false) |
|
const Variable * | attach (const char *name, const short int id, Microsecond &value) noexcept(false) |
|
const Variable * | attach (const char *name, const short int id, comm::CompatCodec &value) noexcept(false) |
|
const Variable & | find (const short int id) const noexcept(false) |
|
void | setNull (const short int id, const bool isNull=true) noexcept(false) |
|
void | setNull (const Variable *variable, const bool isNull=true) |
|
bool | isNull (const short int id) const noexcept(false) |
|
iterator | begin () |
|
const_iterator | begin () const |
|
iterator | end () |
|
const_iterator | end () const |
|
int | size () const |
|
virtual const DataBlock & | code () noexcept(false) |
|
| Message () |
|
virtual | ~Message () |
|
const DataBlock & | getBody () const |
|
Message * | setBody (const DataBlock &body) noexcept(false) |
|
Message * | setBody (const char *buffer, const int size) noexcept(false) |
|
virtual Message * | setBody (const xml::Node *node) noexcept(false) |
|
void | clearBody () |
|
| DataBlock (const bool deepCopy=false) |
|
| DataBlock (const char *buffer, const int size, const bool deepCopy=false) noexcept(false) |
|
| DataBlock (const DataBlock &other) noexcept(false) |
|
virtual | ~DataBlock () |
|
int | getMaxSize () const |
|
int | getSize () const |
|
const char * | getData () const |
|
bool | isEmpty () const |
|
bool | deepCopy () const |
|
void | setSize (const int size) noexcept(false) |
|
DataBlock & | operator+= (const char c) noexcept(false) |
|
DataBlock & | operator+= (const DataBlock &right) noexcept(false) |
|
DataBlock & | operator+= (const std::string &str) noexcept(false) |
|
const char | operator[] (const int pos) const noexcept(false) |
|
char & | operator[] (const int pos) noexcept(false) |
|
void | append (const char *data, const int len) noexcept(false) |
|
void | append (const DataBlock &other) noexcept(false) |
|
void | assign (const DataBlock &right) noexcept(false) |
|
void | assign (const char *buffer, const int size) noexcept(false) |
|
DataBlock & | operator= (const DataBlock &right) noexcept(false) |
|
DataBlock & | operator= (const char c) noexcept(false) |
|
DataBlock & | operator= (const std::string &str) noexcept(false) |
|
void | allocate (const int nbytes) noexcept(false) |
|
void | clear () noexcept(false) |
|
void | remove (const int pos, const int nbytes) noexcept(false) |
|
void | remove (const int nbytes) noexcept(false) |
|
std::string | asString (const int characterByLine=24) const |
|
Codificador/Decodificador de objetos complejos.
A diferencia de EnhancedCodec que esta pensado para seriealizar objetos con estructuras tipos de datos basicos, este codec esta pensado especialmente para serializar objetos o listas de objetos tan complejas como sea preciso.
El mensaje estara formado por una serie indeterminada de bloques de datos binarios, lo que nos permite serializar facilmente cualquier tipo de estructura de datos.
- Warning
- Esta clase no establece proteccion ante accesos concurrentes