Serializable Struct Reference

#include <Serializable.hxx>

Inheritance diagram for Serializable:

Countable Buffer Change CommitInfo Directory Dirent Entity EntitySet FsDir Group MnSet Mutable ObSet ObVec PendingChange PrivateKey PublicKey Reply Request Revision SerMeta SerNull StrVec SXDelta TnSet TnVec User UserAccess WireException WireString WireTrueName WireUnsigned WsEntity WsEntitySet List of all members.

Public Member Functions

 Serializable (const SerialType *st, uint32_t mv, uint32_t ov)
 Serializable (const Serializable &other)
virtual ~Serializable ()
SerTypeConst getType () const
TrueName getTrueName () const
TrueName getTrueName ()
GCPtr< SerializabledeepCopy () const
void SetAffinity (uint32_t aff)
uint32_t GetAffinity ()
void toBuffer (Buffer &buf, bool forSignature=false)
void serialize_meta (sdr::OStream &strm) const
void deserialize_meta (sdr::IStream &strm)

Public Attributes

const SerialTypeserType
uint32_t metaVer
uint32_t obVer
uint32_t affinity
bool canFreeze

Friends

class SerMeta

Detailed Description

Serializable objects all start with a record containing the SerialType pointer and the object's true name.

Definition at line 82 of file Serializable.hxx.


Constructor & Destructor Documentation

Serializable::Serializable const SerialType st,
uint32_t  mv,
uint32_t  ov
[inline]
 

Definition at line 101 of file Serializable.hxx.

References affinity, canFreeze, metaVer, TrueName::Null, and obVer.

Serializable::Serializable const Serializable other  )  [inline]
 

Definition at line 112 of file Serializable.hxx.

References affinity, canFreeze, metaVer, TrueName::Null, obVer, and serType.

virtual Serializable::~Serializable  )  [inline, virtual]
 

Definition at line 122 of file Serializable.hxx.


Member Function Documentation

GCPtr< Serializable > Serializable::deepCopy  )  const
 

Definition at line 120 of file Serializable.cxx.

References sdr::AUTO, sdr::BINARY, sdr::BufOStream::close(), getType(), sdr::IStream::sdr_read(), and sdr::OStream::sdr_write().

void Serializable::deserialize_meta sdr::IStream strm  ) 
 

Definition at line 161 of file Serializable.cxx.

References affinity, SerialType::find(), metaVer, obVer, sdr::IStream::r_u32(), SERIALIZABLE_FIRST_METAVERSION, and serType.

Referenced by sdr::bin_read().

uint32_t Serializable::GetAffinity  )  [inline]
 

Definition at line 138 of file Serializable.hxx.

References affinity.

TrueName Serializable::getTrueName  ) 
 

Definition at line 105 of file Serializable.cxx.

References canFreeze.

TrueName Serializable::getTrueName  )  const
 

Definition at line 82 of file Serializable.cxx.

References canFreeze, sdr::ShaStream::close(), TrueName::kind, sdr::OStream::sdr_write(), and TNK_NULL.

Referenced by Buffer::computeAffinity().

SerTypeConst Serializable::getType  )  const [inline]
 

Definition at line 181 of file Serializable.hxx.

References serType, and SerialType::tyConst.

Referenced by deepCopy(), and toBuffer().

void Serializable::serialize_meta sdr::OStream strm  )  const
 

Definition at line 147 of file Serializable.cxx.

References affinity, metaVer, obVer, SERIALIZABLE_FIRST_METAVERSION, serType, SerialType::tyConst, and sdr::OStream::w_u32().

void Serializable::SetAffinity uint32_t  aff  )  [inline]
 

Definition at line 133 of file Serializable.hxx.

References affinity.

void Serializable::toBuffer Buffer buf,
bool  forSignature = false
 

Definition at line 237 of file Serializable.cxx.

References sdr::BufOStream::close(), getType(), sdr::RAW, sdr::OStream::sdr_write(), Revision::signature, and Mutable::signature.


Friends And Related Function Documentation

friend class SerMeta [friend]
 

Definition at line 83 of file Serializable.hxx.

Referenced by SerMeta::fromSerializable().


Member Data Documentation

uint32_t Serializable::affinity
 

Definition at line 91 of file Serializable.hxx.

Referenced by deserialize_meta(), GetAffinity(), Serializable(), serialize_meta(), and SetAffinity().

bool Serializable::canFreeze
 

Definition at line 94 of file Serializable.hxx.

Referenced by getTrueName(), and Serializable().

uint32_t Serializable::metaVer
 

Definition at line 87 of file Serializable.hxx.

Referenced by deserialize_meta(), Serializable(), and serialize_meta().

uint32_t Serializable::obVer
 

Definition at line 88 of file Serializable.hxx.

Referenced by sdr::bin_read(), deserialize_meta(), Serializable(), and serialize_meta().

const SerialType* Serializable::serType
 

Definition at line 86 of file Serializable.hxx.

Referenced by sdr::bin_read(), deserialize_meta(), getType(), Serializable(), and serialize_meta().


The documentation for this struct was generated from the following files:
Generated on Sun Apr 23 22:42:41 2006 for OpenCM by  doxygen 1.4.6