SctData::DcsData Class Reference

Class intended to hold the DCS data coming from a module, so that it can be archived along with test results etc. More...

#include <DcsData.h>

Inheritance diagram for SctData::DcsData:

Inheritance graph
[legend]
Collaboration diagram for SctData::DcsData:

Collaboration graph
[legend]

Public Member Functions

 DcsData ()
 DcsData (const std::map< std::string, float > inputs)
virtual std::string getClassName () const
 Streamable over-ride.
virtual ~DcsData ()
 detr
void setParameter (const std::string &name, float val, OWLTime time)
 set parameter by name (Names defined by PVSS).
OWLTime getTime (const std::string &name) const
 get time of value by name.
float getParameter (const std::string &name) const
 get parameter by name.
bool hasParameter (const std::string &name) const
 check if parameter has a value
std::list< std::string > getAllParameterNames () const
 get list of parameters available

Private Member Functions

DataPoint getDataPoint (const std::string &name) const

Private Attributes

std::map< std::string, DataPointm_data

Data Structures

class  DataPoint
 internal class associates a time with each value More...

Detailed Description

Class intended to hold the DCS data coming from a module, so that it can be archived along with test results etc.

for easy cross-referencing.

Definition at line 17 of file DcsData.h.


Constructor & Destructor Documentation

SctData::DcsData::~DcsData  )  [virtual]
 

detr

Definition at line 20 of file DcsData.cpp.


Member Function Documentation

std::list< std::string > SctData::DcsData::getAllParameterNames  )  const
 

get list of parameters available

Definition at line 38 of file DcsData.cpp.

References m_data.

Referenced by SctData::IO::DcsDataStreamer_v2::write(), and SctData::IO::DcsDataStreamer_v1::write().

std::string SctData::DcsData::getClassName  )  const [virtual]
 

Streamable over-ride.

Implements Sct::Streamable.

Definition at line 14 of file DcsData.cpp.

float SctData::DcsData::getParameter const std::string &  name  )  const
 

get parameter by name.

Exceptions:
LogicError if not available.

Definition at line 30 of file DcsData.cpp.

References getDataPoint(), and SctData::DcsData::DataPoint::value.

Referenced by SctData::TestSummary::SummaryWriter::print(), SctData::IO::DcsDataStreamer_v2::write(), and SctData::IO::DcsDataStreamer_v1::write().

Here is the call graph for this function:

OWLTime SctData::DcsData::getTime const std::string &  name  )  const
 

get time of value by name.

Exceptions:
LogicError if not available.

Definition at line 34 of file DcsData.cpp.

References getDataPoint(), and SctData::DcsData::DataPoint::time.

Referenced by SctData::IO::DcsDataStreamer_v2::write().

Here is the call graph for this function:

bool SctData::DcsData::hasParameter const std::string &  name  )  const
 

check if parameter has a value

Definition at line 26 of file DcsData.cpp.

References m_data.

Referenced by getDataPoint(), and SctData::TestSummary::SummaryWriter::print().

void SctData::DcsData::setParameter const std::string &  name,
float  val,
OWLTime  time
 

set parameter by name (Names defined by PVSS).

Definition at line 22 of file DcsData.cpp.

References m_data.

Referenced by SctData::IO::DcsDataStreamer_v2::read(), and SctData::IO::DcsDataStreamer_v1::read().


The documentation for this class was generated from the following files:
Generated on Mon Feb 6 14:07:07 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6