#include <Encoding.h>
Public Member Functions | |
virtual void | commit ()=0 |
virtual DecoderPtr | createDecoder (const BytesPtr x, size_t offset=0)=0 |
virtual DecoderPtr | createDecoder (const char *x, size_t length)=0 |
virtual DecoderPtr | createDecoder (const char *x, size_t offset, size_t length)=0 |
virtual EncoderPtr | createEncoder ()=0 |
virtual void | encAddress (const castor::net::NetAddress &x)=0 |
virtual void | encBool (bool x)=0 |
virtual void | encBytes (const Bytes &x)=0 |
virtual void | encBytes (const Bytes &x, size_t offset, size_t length)=0 |
virtual void | encBytes (const char *x, size_t length)=0 |
virtual void | encBytes (const char *x, size_t offset, size_t length)=0 |
virtual void | encDouble (double x)=0 |
virtual void | encFloat (float x)=0 |
virtual void | encInt16 (short x)=0 |
virtual void | encInt32 (long x)=0 |
virtual void | encInt64 (long long x)=0 |
virtual void | encInt8 (char x)=0 |
virtual void | encLength (size_t x)=0 |
Encoder () | |
virtual void | encString (const std::string x)=0 |
virtual void | encUInt16 (unsigned short x)=0 |
virtual void | encUInt32 (unsigned long x)=0 |
virtual void | encUInt64 (unsigned long long x)=0 |
virtual void | encUInt8 (unsigned char x)=0 |
virtual const char * | getBuffer ()=0 |
virtual BytesPtr | getBytes ()=0 |
virtual size_t | getLength ()=0 |
EncoderPtr | getNext () |
virtual size_t | getPosition ()=0 |
virtual void | mark ()=0 |
virtual void | reset ()=0 |
virtual void | rollback ()=0 |
virtual void | seek (long offset)=0 |
void | setNext (EncoderPtr value) |
virtual void | switchEndianness (bool yes)=0 |
virtual | ~Encoder () |
Protected Attributes | |
EncoderPtr | next |
Definition at line 53 of file Encoding.h.
castor::Encoder::Encoder | ( | ) | [inline] |
Definition at line 61 of file Encoding.h.
virtual castor::Encoder::~Encoder | ( | ) | [inline, virtual] |
Definition at line 64 of file Encoding.h.
virtual void castor::Encoder::commit | ( | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual DecoderPtr castor::Encoder::createDecoder | ( | const BytesPtr | x, |
size_t | offset = 0 |
||
) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual DecoderPtr castor::Encoder::createDecoder | ( | const char * | x, |
size_t | length | ||
) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual DecoderPtr castor::Encoder::createDecoder | ( | const char * | x, |
size_t | offset, | ||
size_t | length | ||
) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual EncoderPtr castor::Encoder::createEncoder | ( | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::encAddress | ( | const castor::net::NetAddress & | x | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::encBool | ( | bool | x | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::encBytes | ( | const Bytes & | x | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::encBytes | ( | const Bytes & | x, |
size_t | offset, | ||
size_t | length | ||
) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::encBytes | ( | const char * | x, |
size_t | length | ||
) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::encBytes | ( | const char * | x, |
size_t | offset, | ||
size_t | length | ||
) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::encDouble | ( | double | x | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::encFloat | ( | float | x | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::encInt16 | ( | short | x | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::encInt32 | ( | long | x | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::encInt64 | ( | long long | x | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::encInt8 | ( | char | x | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::encLength | ( | size_t | x | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::encString | ( | const std::string | x | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::encUInt16 | ( | unsigned short | x | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::encUInt32 | ( | unsigned long | x | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::encUInt64 | ( | unsigned long long | x | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::encUInt8 | ( | unsigned char | x | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual const char* castor::Encoder::getBuffer | ( | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual BytesPtr castor::Encoder::getBytes | ( | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual size_t castor::Encoder::getLength | ( | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
EncoderPtr castor::Encoder::getNext | ( | ) | [inline] |
Definition at line 77 of file Encoding.h.
virtual size_t castor::Encoder::getPosition | ( | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::mark | ( | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::reset | ( | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::rollback | ( | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
virtual void castor::Encoder::seek | ( | long | offset | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
void castor::Encoder::setNext | ( | EncoderPtr | value | ) | [inline] |
Definition at line 73 of file Encoding.h.
virtual void castor::Encoder::switchEndianness | ( | bool | yes | ) | [pure virtual] |
Implemented in castor::encoding::CNER.
EncoderPtr castor::Encoder::next [protected] |
Definition at line 57 of file Encoding.h.