zenilib
0.5.3.0
|
A base class for objects that can be sent over the network. More...
#include <Serialization.h>
Inherited by Zeni::VLUID.
Public Member Functions | |
Serializable () | |
virtual | ~Serializable () |
virtual std::ostream & | serialize (std::ostream &os) const =0 |
virtual Uint16 | size () const |
virtual std::istream & | unserialize (std::istream &is)=0 |
Protected Attributes | |
Uint16 | m_size |
A base class for objects that can be sent over the network.
Any class deriving from Serializable should know how to send themselves over a network socket, and how to receive themselves from a network socket. This is good for primitives, but for complicated interactions where only part of a class should be sent or received at a time, it is not the way to go. Go higher level in those cases.
Contact: bazal d@ze nipex .com
Definition at line 83 of file Serialization.h.
|
inline |
Definition at line 85 of file Serialization.h.
|
inlinevirtual |
Definition at line 86 of file Serialization.h.
|
pure virtual |
Implemented in Zeni::VLUID.
Definition at line 230 of file Serialization.cpp.
References m_size, and Zeni::serialize().
Referenced by Zeni::VLUID::serialize(), and Zeni::serialize().
|
inlinevirtual |
Reimplemented in Zeni::VLUID.
Definition at line 88 of file Serialization.h.
|
pure virtual |
Implemented in Zeni::VLUID.
Definition at line 234 of file Serialization.cpp.
References m_size, and Zeni::unserialize().
Referenced by Zeni::VLUID::unserialize(), and Zeni::unserialize().
|
protected |
Definition at line 94 of file Serialization.h.
Referenced by Zeni::VLUID::compare(), Zeni::VLUID::operator++(), Zeni::VLUID::serialize(), serialize(), Zeni::VLUID::size(), Zeni::VLUID::unserialize(), and unserialize().