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

SctData::IO::ScanResultStreamer Class Reference

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

#include <ScanResultStreamer.h>

Inheritance diagram for SctData::IO::ScanResultStreamer:

Sct::Streamer SctData::IO::FitScanResultStreamer SctData::IO::RawScanResultStreamer

Protected Member Functions

 ScanResultStreamer () 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.


Private Attributes

ScanResultIOHelper helper
 The IOHelper.


Detailed Description

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

Doesn't implement createObject.

Definition at line 24 of file ScanResultStreamer.h.


Constructor & Destructor Documentation

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

Constructor must be protected for sub-classes.

Definition at line 15 of file ScanResultStreamer.cpp.


Member Function Documentation

void SctData::IO::ScanResultStreamer::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.

Reimplemented in SctData::IO::FitScanResultStreamer, and SctData::IO::RawScanResultStreamer.

Definition at line 29 of file ScanResultStreamer.cpp.

References Sct::IoError.

void SctData::IO::ScanResultStreamer::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.

Reimplemented in SctData::IO::FitScanResultStreamer, and SctData::IO::RawScanResultStreamer.

Definition at line 17 of file ScanResultStreamer.cpp.

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


Field Documentation

ScanResultIOHelper SctData::IO::ScanResultStreamer::helper [private]
 

The IOHelper.

Reimplemented in SctData::IO::FitScanResultStreamer, and SctData::IO::RawScanResultStreamer.

Definition at line 33 of file ScanResultStreamer.h.


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