Serializer Class Reference
[Kernel Module]

#include <serializer.h>

Inheritance diagram for Serializer:

Root Object TreeNode< Root > Referenced Counted Serialized List< Root > ListNode< Root > XercesSerializer

List of all members.


Detailed Description

Serializers are created and managed by SerializeServer. There can be more than one serializer at the same time.

Public Member Functions

 Serializer (const char *id)
virtual ~Serializer ()
virtual bool BeginSerialize (const char *root_name)
virtual long EndSerialize (byte_t *&buffer)
virtual bool AddGroup (const char *group_name)
virtual bool SetAttribute (const char *attr_name, const char *value)
virtual bool SetAttribute (const char *attr_name, const string &value)
virtual bool SetAttribute (const char *attr_name, byte_t value)
virtual bool SetAttribute (const char *attr_name, ushort_t value)
virtual bool SetAttribute (const char *attr_name, uint_t value)
virtual bool SetAttribute (const char *attr_name, short value)
virtual bool SetAttribute (const char *attr_name, int value)
virtual bool SetAttribute (const char *attr_name, long value)
virtual bool SetAttribute (const char *attr_name, float value)
virtual bool SetAttribute (const char *attr_name, double value)
virtual bool SetAttribute (const char *attr_name, bool value)
virtual bool SetAttribute (const char *attr_name, const vector2 &value)
virtual bool SetAttribute (const char *attr_name, const vector3 &value)
virtual bool SetAttribute (const char *attr_name, const vector4 &value)
virtual bool SetAttributePercent (const char *attr_name, float value)
virtual bool SetAttributeColor (const char *attr_name, const vector3 &value)
virtual bool SetAttributeColor (const char *attr_name, const vector4 &value)
virtual bool SetValue (const char *value)
virtual bool SetValue (const string &value)
virtual bool SetValue (byte_t value)
virtual bool SetValue (ushort_t value)
virtual bool SetValue (uint_t value)
virtual bool SetValue (short value)
virtual bool SetValue (int value)
virtual bool SetValue (long value)
virtual bool SetValue (float value)
virtual bool SetValue (double value)
virtual bool SetValue (bool value)
virtual bool SetValue (const vector2 &value)
virtual bool SetValue (const vector3 &value)
virtual bool SetValue (const vector4 &value)
virtual bool BeginDeserialize (const byte_t *buffer, long buff_size)
virtual void EndDeserialize ()
virtual bool GetGroup (const char *group_name=NULL)
virtual bool GetNextGroup (bool mixed=false)
virtual bool GetAttribute (const char *attr_name, string &value, bool empty=true)
virtual bool GetAttribute (const char *attr_name, byte_t &value)
virtual bool GetAttribute (const char *attr_name, ushort_t &value)
virtual bool GetAttribute (const char *attr_name, uint_t &value)
virtual bool GetAttribute (const char *attr_name, short &value)
virtual bool GetAttribute (const char *attr_name, int &value)
virtual bool GetAttribute (const char *attr_name, long &value)
virtual bool GetAttribute (const char *attr_name, float &value)
virtual bool GetAttribute (const char *attr_name, double &value)
virtual bool GetAttribute (const char *attr_name, bool &value)
virtual bool GetAttribute (const char *attr_name, vector2 &value)
virtual bool GetAttribute (const char *attr_name, vector3 &value)
virtual bool GetAttribute (const char *attr_name, vector4 &value)
virtual bool GetAttributePercent (const char *attr_name, float &value)
virtual bool GetAttributeColor (const char *attr_name, vector3 &value)
virtual bool GetAttributeColor (const char *attr_name, vector4 &value)
virtual bool GetValue (string &value, bool empty=true)
virtual bool GetValue (byte_t &value)
virtual bool GetValue (ushort_t &value)
virtual bool GetValue (uint_t &value)
virtual bool GetValue (short &value)
virtual bool GetValue (int &value)
virtual bool GetValue (long &value)
virtual bool GetValue (float &value)
virtual bool GetValue (double &value)
virtual bool GetValue (bool &value)
virtual bool GetValue (vector2 &value)
virtual bool GetValue (vector3 &value)
virtual bool GetValue (vector4 &value)
virtual bool CheckGroupName (const char *name)
virtual ushort_t GetGroupsCount ()
virtual void EndGroup ()

Protected Types

enum  SerializerState { SS_NONE, SS_SERIALIZING, SS_DESERIALIZING }

Protected Attributes

SerializerState state
ushort_t act_goups_count
byte_tserialize_buffer
const byte_tdeserialize_buffer
long serialize_size
long deserialize_size

Member Enumeration Documentation

enum Serializer::SerializerState [protected]

Enumerator:
SS_NONE 
SS_SERIALIZING 
SS_DESERIALIZING 


Constructor & Destructor Documentation

Serializer::Serializer ( const char *  id  ) 

Constructor.

Serializer::~Serializer (  )  [virtual]

Destructor.


Member Function Documentation

bool Serializer::BeginSerialize ( const char *  root_name  )  [virtual]

Reimplemented in XercesSerializer.

long Serializer::EndSerialize ( byte_t *&  buffer  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::AddGroup ( const char *  group_name  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetAttribute ( const char *  attr_name,
const char *  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetAttribute ( const char *  attr_name,
const string &  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetAttribute ( const char *  attr_name,
byte_t  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetAttribute ( const char *  attr_name,
ushort_t  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetAttribute ( const char *  attr_name,
uint_t  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetAttribute ( const char *  attr_name,
short  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetAttribute ( const char *  attr_name,
int  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetAttribute ( const char *  attr_name,
long  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetAttribute ( const char *  attr_name,
float  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetAttribute ( const char *  attr_name,
double  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetAttribute ( const char *  attr_name,
bool  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetAttribute ( const char *  attr_name,
const vector2 value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetAttribute ( const char *  attr_name,
const vector3 value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetAttribute ( const char *  attr_name,
const vector4 value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetAttributePercent ( const char *  attr_name,
float  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetAttributeColor ( const char *  attr_name,
const vector3 value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetAttributeColor ( const char *  attr_name,
const vector4 value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetValue ( const char *  value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetValue ( const string &  value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetValue ( byte_t  value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetValue ( ushort_t  value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetValue ( uint_t  value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetValue ( short  value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetValue ( int  value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetValue ( long  value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetValue ( float  value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetValue ( double  value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetValue ( bool  value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetValue ( const vector2 value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetValue ( const vector3 value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::SetValue ( const vector4 value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::BeginDeserialize ( const byte_t buffer,
long  buff_size 
) [virtual]

Reimplemented in XercesSerializer.

void Serializer::EndDeserialize (  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetGroup ( const char *  group_name = NULL  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetNextGroup ( bool  mixed = false  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetAttribute ( const char *  attr_name,
string &  value,
bool  empty = true 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetAttribute ( const char *  attr_name,
byte_t value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetAttribute ( const char *  attr_name,
ushort_t value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetAttribute ( const char *  attr_name,
uint_t value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetAttribute ( const char *  attr_name,
short &  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetAttribute ( const char *  attr_name,
int &  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetAttribute ( const char *  attr_name,
long &  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetAttribute ( const char *  attr_name,
float &  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetAttribute ( const char *  attr_name,
double &  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetAttribute ( const char *  attr_name,
bool &  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetAttribute ( const char *  attr_name,
vector2 value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetAttribute ( const char *  attr_name,
vector3 value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetAttribute ( const char *  attr_name,
vector4 value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetAttributePercent ( const char *  attr_name,
float &  value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetAttributeColor ( const char *  attr_name,
vector3 value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetAttributeColor ( const char *  attr_name,
vector4 value 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetValue ( string &  value,
bool  empty = true 
) [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetValue ( byte_t value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetValue ( ushort_t value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetValue ( uint_t value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetValue ( short &  value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetValue ( int &  value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetValue ( long &  value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetValue ( float &  value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetValue ( double &  value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetValue ( bool &  value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetValue ( vector2 value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetValue ( vector3 value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::GetValue ( vector4 value  )  [virtual]

Reimplemented in XercesSerializer.

bool Serializer::CheckGroupName ( const char *  name  )  [virtual]

Reimplemented in XercesSerializer.

ushort_t Serializer::GetGroupsCount (  )  [virtual]

Reimplemented in XercesSerializer.

void Serializer::EndGroup (  )  [virtual]

Reimplemented in XercesSerializer.


Member Data Documentation

SerializerState Serializer::state [protected]

ushort_t Serializer::act_goups_count [protected]

byte_t* Serializer::serialize_buffer [protected]

const byte_t* Serializer::deserialize_buffer [protected]

long Serializer::serialize_size [protected]

long Serializer::deserialize_size [protected]


The documentation for this class was generated from the following files:
Generated on Sat Oct 20 14:47:35 2007 for Dark Oberon by  doxygen 1.5.3