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

SctData::IO::ModuleDefectListStreamer Class Reference

This class is a Streamer for reading/writing ModuleDefectList. More...

#include <ModuleDefectListStreamer.h>

Inheritance diagram for SctData::IO::ModuleDefectListStreamer:

Sct::Streamer

Public Member Functions

virtual void write (OStream &out, const Streamable &ob, const IOManager &manager) const throw (LogicError, IoError)
 Publishes ob to out.

virtual shared_ptr< Streamable > read (IStream &in, const IOManager &manager) const throw (LogicError, IoError)
 Create a new Streamable object of the appropriate type from IS.

virtual void read (IStream &in, Streamable &ob, const IOManager &manager) const throw (LogicError, IoError)
 Refreshes ob from in.


Private Member Functions

 ModuleDefectListStreamer () throw ()
 Constructor is private.


Private Attributes

ModuleDefectIOHelper helper
 The IOHelper.


Static Private Attributes

bool inMap
 The static dummy variable for the ISManager map.


Detailed Description

This class is a Streamer for reading/writing ModuleDefectList.

Definition at line 17 of file ModuleDefectListStreamer.h.


Constructor & Destructor Documentation

SctData::IO::ModuleDefectListStreamer::ModuleDefectListStreamer   throw () [private]
 

Constructor is private.

Definition at line 12 of file ModuleDefectListStreamer.cpp.


Member Function Documentation

void SctData::IO::ModuleDefectListStreamer::read IStream &    in,
Streamable &    ob,
const IOManager &    manager
const throw (LogicError, IoError) [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 34 of file ModuleDefectListStreamer.cpp.

References SctData::ModuleDefectList::addDefect(), and Sct::IoError.

shared_ptr< Streamable > SctData::IO::ModuleDefectListStreamer::read IStream &    in,
const IOManager &    manager
const throw (LogicError, IoError) [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 28 of file ModuleDefectListStreamer.cpp.

References Sct::IoError, and Sct::File::read().

void SctData::IO::ModuleDefectListStreamer::write OStream &    out,
const Streamable &    ob,
const IOManager &    manager
const throw (LogicError, IoError) [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 16 of file ModuleDefectListStreamer.cpp.

References SctData::ModuleDefectList::getAllDefects(), SctData::ModuleElement::getFirst(), SctData::ModuleElement::getNChannels(), and Sct::IoError.


Field Documentation

ModuleDefectIOHelper SctData::IO::ModuleDefectListStreamer::helper [private]
 

The IOHelper.

Definition at line 25 of file ModuleDefectListStreamer.h.

bool SctData::IO::ModuleDefectListStreamer::inMap [static, private]
 

The static dummy variable for the ISManager map.

Definition at line 14 of file ModuleDefectListStreamer.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Dec 16 11:31:22 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3