Main Page   Modules   Namespace List   Class Hierarchy   Data Structures   File List   Namespace Members   Data Fields   Globals   Related Pages  

SctData::SerializableWrapper Class Reference

Inheritance diagram for SctData::SerializableWrapper:

Sct::Serializable Sct::Streamable

Public Member Functions

 SerializableWrapper (const string &className, const scan_result_ptrs &data)
 ~SerializableWrapper () throw ()
virtual string getClassName () const throw ()
 Get the class name for this object.

virtual string getUniqueID () const throw ()
 For objects to be stored, there must be some way of identifying them.


Private Attributes

string className
string uniqueID

Constructor & Destructor Documentation

SctData::SerializableWrapper::SerializableWrapper const string &    className,
const scan_result_ptrs   data
[inline]
 

Definition at line 21 of file ScanResultWriter.cpp.

SctData::SerializableWrapper::~SerializableWrapper   throw () [inline]
 

Definition at line 28 of file ScanResultWriter.cpp.


Member Function Documentation

virtual string SctData::SerializableWrapper::getClassName   const throw () [inline, virtual]
 

Get the class name for this object.

This is used to identify the precise type.

Todo:
We could use typeid instead here, but that would probably mean removing the namespace stuff.
Returns:
the class name

Implements Sct::Streamable.

Definition at line 30 of file ScanResultWriter.cpp.

virtual string SctData::SerializableWrapper::getUniqueID   const throw () [inline, virtual]
 

For objects to be stored, there must be some way of identifying them.

This function must be implemented to return some unique identifier for objects of this precise className

Returns:
a unique string for this class
Exceptions:
LogicError if the class is unable to generate a uniqueID for some reason

Implements Sct::Serializable.

Definition at line 34 of file ScanResultWriter.cpp.


Field Documentation

string SctData::SerializableWrapper::className [private]
 

Definition at line 39 of file ScanResultWriter.cpp.

string SctData::SerializableWrapper::uniqueID [private]
 

Definition at line 40 of file ScanResultWriter.cpp.


The documentation for this class was generated from the following file:
Generated on Mon Dec 15 19:37:52 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3