castor::encoding::CNER Class Reference
#include <CNER.h>
List of all members.
Public Member Functions |
| CNER (const char *x, size_t offset, size_t length) |
| CNER (const char *x, size_t length) |
| CNER (const BytesPtr x, size_t offset) |
| CNER () |
void | commit () |
DecoderPtr | createDecoder (const char *x, size_t offset, size_t length) |
DecoderPtr | createDecoder (const char *x, size_t length) |
DecoderPtr | createDecoder (const BytesPtr x, size_t offset=0) |
EncoderPtr | createEncoder () |
castor::net::NetAddress | decAddress () |
bool | decBool () |
BytesPtr | decBytes (size_t length) |
double | decDouble () |
float | decFloat () |
short | decInt16 () |
long | decInt32 () |
long long | decInt64 () |
char | decInt8 () |
size_t | decLength () |
std::string | decString () |
unsigned short | decUInt16 () |
unsigned long | decUInt32 () |
unsigned long long | decUInt64 () |
unsigned char | decUInt8 () |
void | encAddress (const castor::net::NetAddress &x) |
void | encBool (bool x) |
void | encBytes (const char *x, size_t offset, size_t length) |
void | encBytes (const char *x, size_t length) |
void | encBytes (const Bytes &x, size_t offset, size_t length) |
void | encBytes (const Bytes &x) |
void | encDouble (double x) |
void | encFloat (float x) |
void | encInt16 (short x) |
void | encInt32 (long x) |
void | encInt64 (long long x) |
void | encInt8 (char x) |
void | encLength (size_t x) |
void | encString (const std::string x) |
void | encUInt16 (unsigned short x) |
void | encUInt32 (unsigned long x) |
void | encUInt64 (unsigned long long x) |
void | encUInt8 (unsigned char x) |
const char * | getBuffer () |
BytesPtr | getBytes () |
size_t | getLength () |
size_t | getPosition () |
void | mark () |
void | reset () |
void | rollback () |
void | seek (long offset) |
void | switchEndianness (bool yes) |
| ~CNER () |
Private Types |
enum | { encode,
decode
} |
Private Member Functions |
void | readInternal (char *data, size_t length, bool ignoreEndian=false) |
void | writeInternal (const char *data, size_t length, bool ignoreEndian=false) |
Private Attributes |
std::stringstream | buffer |
bool | doSwitchEndian |
size_t | length |
bool | marked |
size_t | marker |
enum castor::encoding::CNER:: { ... } | mode |
Detailed Description
Definition at line 11 of file CNER.h.
Member Enumeration Documentation
- Enumerator:
-
Definition at line 72 of file CNER.h.
Constructor & Destructor Documentation
castor::encoding::CNER::CNER |
( |
|
) |
[inline] |
castor::encoding::CNER::CNER |
( |
const BytesPtr |
x, |
|
|
size_t |
offset | |
|
) |
| | [inline] |
castor::encoding::CNER::CNER |
( |
const char * |
x, |
|
|
size_t |
length | |
|
) |
| | [inline] |
castor::encoding::CNER::CNER |
( |
const char * |
x, |
|
|
size_t |
offset, |
|
|
size_t |
length | |
|
) |
| | [inline] |
castor::encoding::CNER::~CNER |
( |
|
) |
[inline] |
Member Function Documentation
void castor::encoding::CNER::commit |
( |
|
) |
[inline, virtual] |
DecoderPtr castor::encoding::CNER::createDecoder |
( |
const char * |
x, |
|
|
size_t |
offset, |
|
|
size_t |
length | |
|
) |
| | [inline, virtual] |
DecoderPtr castor::encoding::CNER::createDecoder |
( |
const char * |
x, |
|
|
size_t |
length | |
|
) |
| | [inline, virtual] |
DecoderPtr castor::encoding::CNER::createDecoder |
( |
const BytesPtr |
x, |
|
|
size_t |
offset = 0 | |
|
) |
| | [inline, virtual] |
EncoderPtr castor::encoding::CNER::createEncoder |
( |
|
) |
[inline, virtual] |
bool castor::encoding::CNER::decBool |
( |
|
) |
[inline, virtual] |
BytesPtr castor::encoding::CNER::decBytes |
( |
size_t |
length |
) |
[inline, virtual] |
double castor::encoding::CNER::decDouble |
( |
|
) |
[inline, virtual] |
float castor::encoding::CNER::decFloat |
( |
|
) |
[inline, virtual] |
short castor::encoding::CNER::decInt16 |
( |
|
) |
[inline, virtual] |
long castor::encoding::CNER::decInt32 |
( |
|
) |
[inline, virtual] |
long long castor::encoding::CNER::decInt64 |
( |
|
) |
[inline, virtual] |
char castor::encoding::CNER::decInt8 |
( |
|
) |
[inline, virtual] |
size_t castor::encoding::CNER::decLength |
( |
|
) |
[inline, virtual] |
std::string castor::encoding::CNER::decString |
( |
|
) |
[inline, virtual] |
unsigned short castor::encoding::CNER::decUInt16 |
( |
|
) |
[inline, virtual] |
unsigned long castor::encoding::CNER::decUInt32 |
( |
|
) |
[inline, virtual] |
unsigned long long castor::encoding::CNER::decUInt64 |
( |
|
) |
[inline, virtual] |
unsigned char castor::encoding::CNER::decUInt8 |
( |
|
) |
[inline, virtual] |
void castor::encoding::CNER::encBool |
( |
bool |
x |
) |
[inline, virtual] |
void castor::encoding::CNER::encBytes |
( |
const char * |
x, |
|
|
size_t |
offset, |
|
|
size_t |
length | |
|
) |
| | [inline, virtual] |
void castor::encoding::CNER::encBytes |
( |
const char * |
x, |
|
|
size_t |
length | |
|
) |
| | [inline, virtual] |
void castor::encoding::CNER::encBytes |
( |
const Bytes & |
x, |
|
|
size_t |
offset, |
|
|
size_t |
length | |
|
) |
| | [inline, virtual] |
void castor::encoding::CNER::encBytes |
( |
const Bytes & |
x |
) |
[inline, virtual] |
void castor::encoding::CNER::encDouble |
( |
double |
x |
) |
[inline, virtual] |
void castor::encoding::CNER::encFloat |
( |
float |
x |
) |
[inline, virtual] |
void castor::encoding::CNER::encInt16 |
( |
short |
x |
) |
[inline, virtual] |
void castor::encoding::CNER::encInt32 |
( |
long |
x |
) |
[inline, virtual] |
void castor::encoding::CNER::encInt64 |
( |
long long |
x |
) |
[inline, virtual] |
void castor::encoding::CNER::encInt8 |
( |
char |
x |
) |
[inline, virtual] |
void castor::encoding::CNER::encLength |
( |
size_t |
x |
) |
[inline, virtual] |
void castor::encoding::CNER::encString |
( |
const std::string |
x |
) |
[inline, virtual] |
void castor::encoding::CNER::encUInt16 |
( |
unsigned short |
x |
) |
[inline, virtual] |
void castor::encoding::CNER::encUInt32 |
( |
unsigned long |
x |
) |
[inline, virtual] |
void castor::encoding::CNER::encUInt64 |
( |
unsigned long long |
x |
) |
[inline, virtual] |
void castor::encoding::CNER::encUInt8 |
( |
unsigned char |
x |
) |
[inline, virtual] |
const char* castor::encoding::CNER::getBuffer |
( |
|
) |
[inline, virtual] |
BytesPtr castor::encoding::CNER::getBytes |
( |
|
) |
[inline, virtual] |
size_t castor::encoding::CNER::getLength |
( |
|
) |
[inline, virtual] |
size_t castor::encoding::CNER::getPosition |
( |
|
) |
[inline, virtual] |
void castor::encoding::CNER::mark |
( |
|
) |
[inline, virtual] |
void castor::encoding::CNER::readInternal |
( |
char * |
data, |
|
|
size_t |
length, |
|
|
bool |
ignoreEndian = false | |
|
) |
| | [inline, private] |
void castor::encoding::CNER::reset |
( |
|
) |
[inline, virtual] |
void castor::encoding::CNER::rollback |
( |
|
) |
[inline, virtual] |
void castor::encoding::CNER::seek |
( |
long |
offset |
) |
[inline, virtual] |
void castor::encoding::CNER::switchEndianness |
( |
bool |
yes |
) |
[inline, virtual] |
void castor::encoding::CNER::writeInternal |
( |
const char * |
data, |
|
|
size_t |
length, |
|
|
bool |
ignoreEndian = false | |
|
) |
| | [inline, private] |
Member Data Documentation
The documentation for this class was generated from the following file: