Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DEPICSvalue Class Reference

A DEPICSvalue object holds information for a single EPICS value read from the data stream. Values are stored in the data stream as strings of the form: key=value. This string is available in the "nameval" field. It is parsed however so that one may access the name via "name" and the value as a sting via "sval". The "ival", "uval", and "fval" hold the value converted into a an "int", "uint32_t", and "double" respectively. This is done using the stringstream class an is done for convience. The EPICS values are inserted into the EVIO file during data taking by the epics2et program which should be started automatically by the DAQ system. Source for that can be found here: More...

#include <DEPICSvalue.h>

+ Inheritance diagram for DEPICSvalue:

Public Member Functions

 JOBJECT_PUBLIC (DEPICSvalue)
 
 DEPICSvalue (time_t timestamp, string &nameval)
 
virtual ~DEPICSvalue ()
 
void toStrings (vector< pair< string, string > > &items) const
 

Public Attributes

time_t timestamp
 
string nameval
 
string name
 
string sval
 
int ival
 
uint32_t uval
 
double fval
 

Detailed Description

A DEPICSvalue object holds information for a single EPICS value read from the data stream. Values are stored in the data stream as strings of the form: key=value. This string is available in the "nameval" field. It is parsed however so that one may access the name via "name" and the value as a sting via "sval". The "ival", "uval", and "fval" hold the value converted into a an "int", "uint32_t", and "double" respectively. This is done using the stringstream class an is done for convience. The EPICS values are inserted into the EVIO file during data taking by the epics2et program which should be started automatically by the DAQ system. Source for that can be found here:

https://halldsvn.jlab.org/repos/trunk/online/packages/etUtils/src/epics2et

Definition at line 37 of file DEPICSvalue.h.

Constructor & Destructor Documentation

DEPICSvalue::DEPICSvalue ( time_t  timestamp,
string nameval 
)
inline

Definition at line 40 of file DEPICSvalue.h.

References fval, ival, name, nameval, sval, timestamp, and uval.

virtual DEPICSvalue::~DEPICSvalue ( )
inlinevirtual

Definition at line 60 of file DEPICSvalue.h.

Member Function Documentation

DEPICSvalue::JOBJECT_PUBLIC ( DEPICSvalue  )
void DEPICSvalue::toStrings ( vector< pair< string, string > > &  items) const
inline

Definition at line 72 of file DEPICSvalue.h.

References fval, ival, name, sval, and timestamp.

Member Data Documentation

double DEPICSvalue::fval

Definition at line 68 of file DEPICSvalue.h.

Referenced by DEPICSvalue(), and toStrings().

int DEPICSvalue::ival

Definition at line 66 of file DEPICSvalue.h.

Referenced by DEPICSvalue(), and toStrings().

string DEPICSvalue::nameval

Definition at line 63 of file DEPICSvalue.h.

Referenced by DEPICSvalue(), and DEVIOBufferWriter::WriteEPICSData().

time_t DEPICSvalue::timestamp
uint32_t DEPICSvalue::uval

Definition at line 67 of file DEPICSvalue.h.

Referenced by DEPICSvalue().


The documentation for this class was generated from the following file: