DABC (Data Acquisition Backbone Core)  2.9.9
Public Member Functions | Protected Member Functions | Protected Attributes
mbs::SlowControlData Class Reference

Record for manipulation with slow control data. More...

#include <mbs/SlowControlData.h>

Public Member Functions

void AddDouble (const std::string &name, double value, bool checkduplicate=false)
 Method add double record. More...
 
void AddLong (const std::string &name, int64_t value, bool checkduplicate=false)
 Method add long record. More...
 
void Clear ()
 
bool Empty () const
 
std::string GetDoubleName (unsigned indx)
 
double GetDoubleValue (unsigned indx)
 
uint32_t GetEventId () const
 
uint32_t GetEventTime () const
 
std::string GetLongName (unsigned indx)
 
int64_t GetLongValue (unsigned indx)
 
unsigned GetRawSize ()
 
unsigned NumDoubles () const
 
unsigned NumLongs () const
 
bool Read (void *buf, unsigned bufsize)
 
void SetEventId (uint32_t id)
 
void SetEventTime (uint32_t tm)
 
 SlowControlData ()
 
unsigned Write (void *buf, unsigned buflen)
 
virtual ~SlowControlData ()
 

Protected Member Functions

void BuildDescriptor ()
 

Protected Attributes

std::string fDescriptor
 descriptor More...
 
std::vector< std::string > fDoubleRecords
 names of double records More...
 
std::vector< double > fDoubleValues
 values of double records More...
 
uint32_t fEventId
 event number More...
 
uint32_t fEventTime
 unix time in seconds More...
 
std::vector< std::string > fLongRecords
 names of long records More...
 
std::vector< int64_t > fLongValues
 values of long records More...
 

Detailed Description

Record for manipulation with slow control data.

Used in EPICS, DIM and FESA plugins to deliver data to analysis

Definition at line 32 of file SlowControlData.h.

Constructor & Destructor Documentation

◆ SlowControlData()

mbs::SlowControlData::SlowControlData ( )
inline

Definition at line 74 of file SlowControlData.h.

◆ ~SlowControlData()

virtual mbs::SlowControlData::~SlowControlData ( )
inlinevirtual

Definition at line 85 of file SlowControlData.h.

Member Function Documentation

◆ BuildDescriptor()

void mbs::SlowControlData::BuildDescriptor ( )
inlineprotected

Definition at line 46 of file SlowControlData.h.

◆ Clear()

void mbs::SlowControlData::Clear ( )
inline

Definition at line 87 of file SlowControlData.h.

◆ Empty()

bool mbs::SlowControlData::Empty ( ) const
inline

Definition at line 98 of file SlowControlData.h.

◆ SetEventId()

void mbs::SlowControlData::SetEventId ( uint32_t  id)
inline

Definition at line 100 of file SlowControlData.h.

◆ GetEventId()

uint32_t mbs::SlowControlData::GetEventId ( ) const
inline

Definition at line 101 of file SlowControlData.h.

◆ SetEventTime()

void mbs::SlowControlData::SetEventTime ( uint32_t  tm)
inline

Definition at line 103 of file SlowControlData.h.

◆ GetEventTime()

uint32_t mbs::SlowControlData::GetEventTime ( ) const
inline

Definition at line 104 of file SlowControlData.h.

◆ AddLong()

void mbs::SlowControlData::AddLong ( const std::string &  name,
int64_t  value,
bool  checkduplicate = false 
)
inline

Method add long record.

If specified, name duplication will be checked

Definition at line 107 of file SlowControlData.h.

◆ AddDouble()

void mbs::SlowControlData::AddDouble ( const std::string &  name,
double  value,
bool  checkduplicate = false 
)
inline

Method add double record.

If specified, name duplication will be checked

Definition at line 121 of file SlowControlData.h.

◆ NumLongs()

unsigned mbs::SlowControlData::NumLongs ( ) const
inline

Definition at line 133 of file SlowControlData.h.

◆ GetLongValue()

int64_t mbs::SlowControlData::GetLongValue ( unsigned  indx)
inline

Definition at line 134 of file SlowControlData.h.

◆ GetLongName()

std::string mbs::SlowControlData::GetLongName ( unsigned  indx)
inline

Definition at line 135 of file SlowControlData.h.

◆ NumDoubles()

unsigned mbs::SlowControlData::NumDoubles ( ) const
inline

Definition at line 137 of file SlowControlData.h.

◆ GetDoubleValue()

double mbs::SlowControlData::GetDoubleValue ( unsigned  indx)
inline

Definition at line 138 of file SlowControlData.h.

◆ GetDoubleName()

std::string mbs::SlowControlData::GetDoubleName ( unsigned  indx)
inline

Definition at line 139 of file SlowControlData.h.

◆ GetRawSize()

unsigned mbs::SlowControlData::GetRawSize ( )
inline

Definition at line 142 of file SlowControlData.h.

◆ Write()

unsigned mbs::SlowControlData::Write ( void *  buf,
unsigned  buflen 
)
inline

Definition at line 155 of file SlowControlData.h.

◆ Read()

bool mbs::SlowControlData::Read ( void *  buf,
unsigned  bufsize 
)
inline

Definition at line 190 of file SlowControlData.h.

Field Documentation

◆ fEventId

uint32_t mbs::SlowControlData::fEventId
protected

event number

Definition at line 35 of file SlowControlData.h.

◆ fEventTime

uint32_t mbs::SlowControlData::fEventTime
protected

unix time in seconds

Definition at line 36 of file SlowControlData.h.

◆ fLongRecords

std::vector<std::string> mbs::SlowControlData::fLongRecords
protected

names of long records

Definition at line 38 of file SlowControlData.h.

◆ fLongValues

std::vector<int64_t> mbs::SlowControlData::fLongValues
protected

values of long records

Definition at line 39 of file SlowControlData.h.

◆ fDoubleRecords

std::vector<std::string> mbs::SlowControlData::fDoubleRecords
protected

names of double records

Definition at line 41 of file SlowControlData.h.

◆ fDoubleValues

std::vector<double> mbs::SlowControlData::fDoubleValues
protected

values of double records

Definition at line 42 of file SlowControlData.h.

◆ fDescriptor

std::string mbs::SlowControlData::fDescriptor
protected

descriptor

Definition at line 44 of file SlowControlData.h.


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