Homepage Demos Overview Downloads Tutorials Reference
Credits
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Search

Serializer Class Reference

#include <Serializer.h>

Inheritance diagram for Serializer:

Inheritance graph
[legend]
List of all members.

Detailed Description

provides a default serializer base class for simple objects

Definition at line 5 of file Serializer.h.

Static Protected Member Functions

template<class T> void encode (char **dst, T value)
 writes value to dst and advances dst

void hostToNetwork (char *dst, char *src, int length)
 converts to network byte order (big endian - aibo is little endian)

void encode (char **dst, char *src, int length)
 writes length bytes from src to dst

void encodeDoublesAsFloats (char **dst, double *src, int length)
 a simple form of compression - calls encode(dst,float(src[i])) for i=0..length


Member Function Documentation

void Serializer::encode char **  dst,
char *  src,
int  length
[inline, static, protected]
 

writes length bytes from src to dst

Definition at line 26 of file Serializer.h.

template<class T>
void Serializer::encode char **  dst,
value
[inline, static, protected]
 

writes value to dst and advances dst

Definition at line 11 of file Serializer.h.

void Serializer::encodeDoublesAsFloats char **  dst,
double *  src,
int  length
[inline, static, protected]
 

a simple form of compression - calls encode(dst,float(src[i])) for i=0..length

Definition at line 32 of file Serializer.h.

References encode().

void Serializer::hostToNetwork char *  dst,
char *  src,
int  length
[inline, static, protected]
 

converts to network byte order (big endian - aibo is little endian)

Definition at line 20 of file Serializer.h.


The documentation for this class was generated from the following file:
Tekkotsu v1.4
Generated Sat Jul 19 00:09:09 2003 by Doxygen 1.3.2