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

SctData::IO::RawScanResultStreamer Class Reference

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

#include <RawScanResultStreamer.h>

Inheritance diagram for SctData::IO::RawScanResultStreamer:

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

void readData (IStream &in, RawScanResult &raw) const throw (LogicError, IoError)
 Based on the data type, passes control onto the appropriate function for reading out the data.

void readSliceData (unsigned int size, unsigned short width, IStream &in, RawScanResult &raw) const throw (LogicError, IoError)
 Reads in data in Slice format from IS.

void readRootData (unsigned int size, unsigned short width, IStream &in, RawScanResult &raw) const throw (LogicError, IoError)
 Reads in data in ROOT format from IS.

 RawScanResultStreamer () throw ()
 Constructor is private.


Private Attributes

RawScanResultIOHelper helper
 The IOHelper.


Static Private Attributes

bool inMap
 The static dummy variable for the IOManager map.


Detailed Description

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

Definition at line 19 of file RawScanResultStreamer.h.


Constructor & Destructor Documentation

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

Constructor is private.

Definition at line 20 of file RawScanResultStreamer.cpp.


Member Function Documentation

void SctData::IO::RawScanResultStreamer::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 48 of file RawScanResultStreamer.cpp.

References SctData::ScanPoints::getEdges(), SctData::ScanPoints::getNPoints(), SctData::ScanResult::getPoints(), SctData::RawScanResult::getUniqueID(), Sct::IoError, and Sct::nChannelLink.

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

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

void SctData::IO::RawScanResultStreamer::readData IStream &    in,
RawScanResult   raw
const throw (LogicError, IoError) [private]
 

Based on the data type, passes control onto the appropriate function for reading out the data.

AJB 02/05/2003

Definition at line 88 of file RawScanResultStreamer.cpp.

References Sct::IoError, SR_DT_ROOTHIST, and SR_DT_SLICE.

void SctData::IO::RawScanResultStreamer::readRootData unsigned int    size,
unsigned short    width,
IStream &    in,
RawScanResult   raw
const throw (LogicError, IoError) [private]
 

Reads in data in ROOT format from IS.

I.e. same data format as is published by this.

Definition at line 108 of file RawScanResultStreamer.cpp.

References Sct::IoError, and Sct::nChannelLink.

void SctData::IO::RawScanResultStreamer::readSliceData unsigned int    size,
unsigned short    width,
IStream &    in,
RawScanResult   raw
const throw (LogicError, IoError) [private]
 

Reads in data in Slice format from IS.

Definition at line 146 of file RawScanResultStreamer.cpp.

References Sct::IoError, Sct::nChannelLink, SR_WD_16, and SR_WD_32.

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

Reimplemented from SctData::IO::ScanResultStreamer.

Definition at line 30 of file RawScanResultStreamer.cpp.

References Sct::IoError, SR_DT_ROOTHIST, and SR_WD_64.


Field Documentation

RawScanResultIOHelper SctData::IO::RawScanResultStreamer::helper [mutable, private]
 

The IOHelper.

Reimplemented from SctData::IO::ScanResultStreamer.

Definition at line 43 of file RawScanResultStreamer.h.

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

The static dummy variable for the IOManager map.

Definition at line 22 of file RawScanResultStreamer.cpp.


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