$treeview $search $mathjax $extrastylesheet
otsdaq
v2_03_00
$projectbrief
|
$projectbrief
|
$searchbox |
00001 #ifndef _ots_Configurations_h_ 00002 #define _ots_Configurations_h_ 00003 00004 #include <set> 00005 #include <string> 00006 00007 #include "otsdaq-coreTableCore/TableBase.h" 00008 #include "otsdaq-coreTableCore/TableGroupKey.h" 00009 #include "otsdaq-coreTableCore/TableVersion.h" 00010 00011 namespace ots 00012 { 00013 class Configurations : public TableBase 00014 { 00015 public: 00016 Configurations(void); 00017 virtual ~Configurations(void); 00018 00019 // Methods 00020 void init(ConfigurationManager* configManager); 00021 bool findKOC(TableGroupKey TableGroupKey, std::string koc) const; 00022 00023 // Getters 00024 TableVersion getConditionVersion(const TableGroupKey& TableGroupKey, 00025 std::string koc) const; 00026 00027 std::set<std::string> getListOfKocs( 00028 TableGroupKey TableGroupKey = TableGroupKey()) const; // INVALID to get all Kocs 00029 void getListOfKocsForView( 00030 TableView* cfgView, 00031 std::set<std::string>& kocList, 00032 TableGroupKey TableGroupKey = TableGroupKey()) const; // INVALID to get all Kocs 00033 00034 // Setters 00035 int setConditionVersionForView(TableView* cfgView, 00036 TableGroupKey TableGroupKey, 00037 std::string koc, 00038 TableVersion newKOCVersion); 00039 00040 private: 00041 enum 00042 { 00043 TableGroupKeyAlias, 00044 KOC, 00045 ConditionVersion 00046 }; 00047 }; 00048 } // namespace ots 00049 #endif