8 #ifndef _ots_RegisterView_h_
9 #define _ots_RegisterView_h_
10 #include "otsdaq-core/ConfigurationDataFormats/ViewRegisterInfo.h"
11 #include "otsdaq-core/ConfigurationDataFormats/ViewRegisterSequencerInfo.h"
12 #include "otsdaq-core/Macros/CoutMacros.h"
13 #include "otsdaq-core/MessageFacility/MessageFacility.h"
27 typedef std::vector<std::vector<std::string> > DataView;
28 typedef DataView::iterator iterator;
29 typedef DataView::const_iterator const_iterator;
34 unsigned int findRow(
unsigned int col,
const std::string value)
const;
35 unsigned int findRow(
unsigned int col,
const unsigned int value)
const;
38 std::string getName()
const;
39 int getVersion()
const;
40 std::string getComment()
const;
41 std::string getAuthor()
const;
42 time_t getCreationTime()
const;
43 unsigned int getNumberOfRows()
const;
44 unsigned int getNumberOfColumns()
const;
45 const std::vector<ViewRegisterInfo>& getRegistersInfo()
const;
46 std::vector<ViewRegisterInfo>* getRegistersInfoPointer();
47 const std::vector<ViewRegisterSequencerInfo>& getRegistersSequencerInfo()
const;
48 std::vector<ViewRegisterSequencerInfo>* getRegistersSequencerInfoPointer();
82 void setName(std::string name);
83 void setVersion(
int version);
84 void setVersion(
char* version);
85 void setComment(std::string name);
86 void setAuthor(std::string name);
87 void setCreationTime(time_t t);
122 bool deleteRow(
int r);
127 std::string comment_;
129 time_t creationTime_;
130 std::vector<ViewRegisterInfo> registersInfo_;
131 std::vector<ViewRegisterSequencerInfo> registersSequencerInfo_;
132 DataView theDataView_;