otsdaq  v2_05_02_indev
FileConfigurationInterface.h
1 #ifndef _ots_FileConfigurationInterface_h_
2 #define _ots_FileConfigurationInterface_h_
3 
4 #include "otsdaq/ConfigurationInterface/ConfigurationInterface.h"
5 
6 #include <set>
7 
8 namespace ots
9 {
10 class TableBase;
11 
13 {
14  public:
16  virtual ~FileConfigurationInterface() { ; }
17 
18  // read configuration from database
19  void fill(TableBase* /*configuration*/, TableVersion /*version*/) const;
20 
21  // write configuration to database
22  void saveActiveVersion(const TableBase* /*configuration*/, bool overwrite = false) const;
23 
24  // find the latest configuration version by configuration type
25  TableVersion findLatestVersion(const TableBase* /*configuration*/) const;
26 
27  // find all configuration versions by configuration type
28  std::set<TableVersion> getVersions(const TableBase* /*configuration*/) const;
29 
30  private:
31 };
32 } // namespace ots
33 
34 #endif