otsdaq  3.04.02
RunInfoVInterface.h
1 #ifndef _ots_RunInfoVInterface_h_
2 #define _ots_RunInfoVInterface_h_
3 
4 #include <string>
5 #include "otsdaq/Configurable/Configurable.h"
6 #include "otsdaq/Macros/CoutMacros.h"
7 #include "otsdaq/Macros/StringMacros.h"
8 
9 namespace ots
10 {
11 
12 // clang-format off
13 
38 {
39  public:
40  enum class RunTransitionType
41  {
42  HALT,
43  STOP,
44  ERROR,
45  PAUSE,
46  RESUME,
47  START
48  };
49 
50  RunInfoVInterface (const std::string& activeStateMachineName)
51  :
52  mfSubject_(activeStateMachineName),
53  activeStateMachineName_(activeStateMachineName)
54  {;}
55  virtual ~RunInfoVInterface (void) { ; }
56 
57 
58 
60 
61  virtual unsigned int insertConfigureCondition (const std::string& /*blob*/,
62  const std::string& /*comment*/) { __SS__ << "insertConfigureCondition() Not implemented by the Run Info Plugin (" << mfSubject_ << ")!!"; __SS_THROW__; };
63  virtual unsigned int claimNextRunNumber (unsigned int /* configureConditionID */,
64  const std::string& /* comment */) { __SS__ << "claimNextRunNumber() Not implemented by the Run Info Plugin (" << mfSubject_ << ")!!"; __SS_THROW__; };
65  virtual unsigned int insertRunCondition (unsigned int /* runNumber */,
66  const std::map<std::string /* subsystem */,
67  std::map<std::string /*type/name/field */,
68  std::string /* value */>>&
69  /* runConditionMap */,
70  unsigned int /* configureConditionID */,
71  const std::string& /* comment */) { __SS__ << "insertRunCondition() Not implemented by the Run Info Plugin (" << mfSubject_ << ")!!"; __SS_THROW__; };
72 
73  virtual void updateRunInfo (unsigned int /* runConditionID */,
74  RunTransitionType /* runTransitionType */,
75  const std::string& /* comment */) { __SS__ << "updateRunInfo() Not implemented by the Run Info Plugin (" << mfSubject_ << ")!!"; __SS_THROW__; };
76 
77 
78 
80 
81  const std::string& getActiveStateMachineName (void) const { return activeStateMachineName_; }
82 
83  //start queryFilter with 'AND' to fiter more the selection
84  virtual std::vector<std::vector<std::string>>
85  getRunRecords (unsigned int /* startTime */,
86  unsigned int /* endTime */,
87  const std::string& queryFilter = "") { __SS__ << "getRunRecords() Not implemented by the Run Info Plugin (" << mfSubject_ << ")!!" << (queryFilter == ""/* use variable */?"":""); __SS_THROW__;};
88 
89  virtual std::vector<std::vector<std::string>>
90  getRunConditionByID (uint64_t /* conditionID*/) { __SS__ << "getRunConditionByID() Not implemented by the Run Info Plugin (" << mfSubject_ << ")!!"; __SS_THROW__; };
91 
92  virtual std::vector<std::vector<std::string>>
93  getRunConfigSubsystemInfo (uint64_t /* configID */) { __SS__ << "getRunConfigSubsystemInfo() Not implemented by the Run Info Plugin (" << mfSubject_ << ")!!"; __SS_THROW__; };
94 
95  private:
96  const std::string mfSubject_;
97  const std::string activeStateMachineName_;
98 };
99 // clang-format on
100 
101 } // namespace ots
102 
103 #endif
< : public Configurable
const std::string & getActiveStateMachineName(void) const
Get functions -—.
virtual unsigned int insertConfigureCondition(const std::string &, const std::string &)
Set functions -—.
defines used also by OtsConfigurationWizardSupervisor