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

SctData::IO::FitScanResultStreamer Class Reference

This class is an Streamer for reading/writing FitScanResults. More...

#include <FitScanResultStreamer.h>

Inheritance diagram for SctData::IO::FitScanResultStreamer:

SctData::IO::ScanResultStreamer Sct::Streamer

Public Member Functions

virtual void write (OStream &out, const Streamable &ob, const IOManager &manager) const throw (LogicError, IoError)
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

 FitScanResultStreamer () throw ()
 Private constructor.


Private Attributes

FitScanResultIOHelper helper
 The IOHelper.


Static Private Attributes

bool inMap
 The static dummy variable for the IOManager map.


Detailed Description

This class is an Streamer for reading/writing FitScanResults.

Definition at line 15 of file FitScanResultStreamer.h.


Constructor & Destructor Documentation

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

Private constructor.

Definition at line 12 of file FitScanResultStreamer.cpp.


Member Function Documentation

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

Reimplemented from SctData::IO::ScanResultStreamer.

Definition at line 63 of file FitScanResultStreamer.cpp.

References SctData::FitScanResult::getDefects(), Sct::IoError, SctData::FitScanResult::setChannelFit(), SctData::FitScanResult::setChipFit(), SctData::FitScanResult::setLinkFit(), SctData::FitScanResult::setNChannelFits(), SctData::FitScanResult::setNChipFits(), and SctData::FitScanResult::setNLinkFits().

shared_ptr< Streamable > SctData::IO::FitScanResultStreamer::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 17 of file FitScanResultStreamer.cpp.

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

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

Todo:
modify when bug is fixed in IS

Reimplemented from SctData::IO::ScanResultStreamer.

Definition at line 23 of file FitScanResultStreamer.cpp.

References SctData::FitScanResult::getChannelFit(), SctData::FitScanResult::getChipFit(), Sct::Streamable::getClassName(), SctData::FitScanResult::getDefects(), SctData::FitScanResult::getLinkFit(), SctData::FitScanResult::getNChannelFits(), SctData::FitScanResult::getNChipFits(), SctData::FitScanResult::getNLinkFits(), and Sct::IoError.


Field Documentation

FitScanResultIOHelper SctData::IO::FitScanResultStreamer::helper [private]
 

The IOHelper.

Reimplemented from SctData::IO::ScanResultStreamer.

Definition at line 23 of file FitScanResultStreamer.h.

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

The static dummy variable for the IOManager map.

Definition at line 14 of file FitScanResultStreamer.cpp.


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