SctData::IO::ScanResultStreamer_v1 Class Reference

This abstract class is an ISSerializer for reading/writing ScanResults to/from IS. More...

#include <ScanResultStreamer_v1.h>

Inheritance diagram for SctData::IO::ScanResultStreamer_v1:

Inheritance graph
[legend]
Collaboration diagram for SctData::IO::ScanResultStreamer_v1:

Collaboration graph
[legend]

Public Member Functions

virtual unsigned getVersion () const throw ()

Protected Member Functions

 ScanResultStreamer_v1 () throw ()
 Constructor must be protected for sub-classes.
virtual void write (OStream &out, const Streamable &ob, const IOManager &manager) const throw (LogicError, IoError)
 Publishes ob to out.
virtual void read (IStream &in, Streamable &ob, const IOManager &manager) const throw (LogicError, IoError)
 Refreshes ob from in.
virtual shared_ptr< Streamableread (IStream &, const IOManager &) const throw (LogicError, IoError)
 Create a new Streamable object of the appropriate type from IS.

Static Private Attributes

static unsigned s_version
static bool inMap

Detailed Description

This abstract class is an ISSerializer for reading/writing ScanResults to/from IS.

Doesn't implement createObject.

Definition at line 22 of file ScanResultStreamer_v1.h.


Constructor & Destructor Documentation

SctData::IO::ScanResultStreamer_v1::ScanResultStreamer_v1  )  throw () [protected]
 

Constructor must be protected for sub-classes.

Definition at line 19 of file ScanResultStreamer_v1.cpp.


Member Function Documentation

shared_ptr< Streamable > SctData::IO::ScanResultStreamer_v1::read IStream ,
const IOManager
const throw (LogicError, IoError) [protected, virtual]
 

Create a new Streamable object of the appropriate type from IS.

Parameters:
in The IStream.
manager the IOManager to use
Returns:
a new Streamable object
Exceptions:
IoException if something bad happens

Implements Sct::Streamer.

Definition at line 21 of file ScanResultStreamer_v1.cpp.

void SctData::IO::ScanResultStreamer_v1::read IStream in,
Streamable ob,
const IOManager manager
const throw (LogicError, IoError) [protected, virtual]
 

Refreshes ob from in.

Parameters:
in The IStream
ob The Streamable object to be refreshed.
manager the IOManager to use
Exceptions:
IoException if something bad happens

Implements Sct::Streamer.

Definition at line 33 of file ScanResultStreamer_v1.cpp.

References SctData::ScanResult::getConfiguration(), SctData::ScanResult::getHeader(), SctData::ScanResult::getPoints(), and SctData::ob.

Here is the call graph for this function:

void SctData::IO::ScanResultStreamer_v1::write OStream out,
const Streamable ob,
const IOManager manager
const throw (LogicError, IoError) [protected, virtual]
 

Publishes ob to out.

Parameters:
out The OStream.
ob The Streamable object to stream.
manager the IOManager to use
Exceptions:
IoException if something bad happens

Implements Sct::Streamer.

Definition at line 25 of file ScanResultStreamer_v1.cpp.

References SctData::ScanResult::getConfiguration(), SctData::ScanResult::getHeader(), SctData::ScanResult::getPoints(), and SctData::ob.

Here is the call graph for this function:


The documentation for this class was generated from the following files:
Generated on Mon Feb 6 14:08:49 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6