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

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 (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.
Exceptions:
LogicError if not available.


float getParameter (const std::string &name) const
 get parameter by name.
Exceptions:
LogicError if not available.


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

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.

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 SctData::DcsData::DataPoint::value.

Referenced by SctData::TestSummary::SummaryWriter::print().

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 SctData::DcsData::DataPoint::time.

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

check if parameter has a value

Definition at line 26 of file DcsData.cpp.

Referenced by 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.


The documentation for this class was generated from the following files:
Generated on Thu Dec 22 20:21:19 2005 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5