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

SctData::IO::RawScanResultStreamer_v1 Class Reference

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

#include <RawScanResultStreamer_v1.h>

Inheritance diagram for SctData::IO::RawScanResultStreamer_v1:

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

Collaboration graph
[legend]

Public Member Functions

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

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

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

virtual unsigned getVersion () const throw ()

Private Member Functions

void readData (IStream &in, RawScanResult &raw) const
 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
 Reads in data in Slice format from IS.

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

void readRawData (unsigned int size, unsigned short width, IStream &in, RawScanResult &raw) const
 Reads in data in Raw format from IS.

void setHistSize (RawScanResult &raw, unsigned nbinsx, short unsigned ilink) const
 RawScanResultStreamer_v1 () throw ()
 Constructor is private.


Private Attributes

RawScanResultIOHelper helper
 The IOHelper.


Static Private Attributes

unsigned s_version
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_v1.h.


Constructor & Destructor Documentation

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

Constructor is private.

Definition at line 26 of file RawScanResultStreamer_v1.cpp.


Member Function Documentation

void SctData::IO::RawScanResultStreamer_v1::read IStream in,
Streamable ob,
const IOManager manager
const [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 53 of file RawScanResultStreamer_v1.cpp.

References helper, readData(), and Sct::IOManager::readImpl().

Here is the call graph for this function:

shared_ptr< Streamable > SctData::IO::RawScanResultStreamer_v1::read IStream in,
const IOManager manager
const [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 30 of file RawScanResultStreamer_v1.cpp.

References helper.

void SctData::IO::RawScanResultStreamer_v1::readData IStream in,
RawScanResult raw
const [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_v1.cpp.

References helper, readRawData(), readRootData(), and readSliceData().

Referenced by read().

Here is the call graph for this function:

void SctData::IO::RawScanResultStreamer_v1::readRawData unsigned int  size,
unsigned short  width,
IStream in,
RawScanResult raw
const [private]
 

Reads in data in Raw format from IS.

Definition at line 141 of file RawScanResultStreamer_v1.cpp.

References SctData::ScanPoints::ascending(), Sct::IStream::get(), SctData::ScanPoints::getNPoints(), SctData::ScanResult::getPoints(), and helper.

Referenced by readData().

Here is the call graph for this function:

void SctData::IO::RawScanResultStreamer_v1::readRootData unsigned int  size,
unsigned short  width,
IStream in,
RawScanResult raw
const [private]
 

Reads in data in ROOT format from IS.

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

Definition at line 113 of file RawScanResultStreamer_v1.cpp.

References Sct::IStream::get(), SctData::ScanPoints::getNPoints(), SctData::ScanResult::getPoints(), and helper.

Referenced by readData().

Here is the call graph for this function:

void SctData::IO::RawScanResultStreamer_v1::readSliceData unsigned int  size,
unsigned short  width,
IStream in,
RawScanResult raw
const [private]
 

Reads in data in Slice format from IS.

Definition at line 202 of file RawScanResultStreamer_v1.cpp.

References SctData::ScanPoints::ascending(), Sct::IStream::get(), SctData::ScanPoints::getNPoints(), SctData::ScanResult::getPoints(), and helper.

Referenced by readData().

Here is the call graph for this function:

void SctData::IO::RawScanResultStreamer_v1::write OStream out,
const Streamable ob,
const IOManager manager
const [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 36 of file RawScanResultStreamer_v1.cpp.

References helper, Sct::OStream::put(), and Sct::IOManager::writeImpl().

Here is the call graph for this function:


Field Documentation

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

The IOHelper.

Definition at line 51 of file RawScanResultStreamer_v1.h.

Referenced by read(), readData(), readRawData(), readRootData(), readSliceData(), and write().

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

The static dummy variable for the IOManager map.

Definition at line 28 of file RawScanResultStreamer_v1.cpp.


The documentation for this class was generated from the following files:
Generated on Thu Jul 15 09:53:22 2004 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5