otsdaq
v2_05_02_indev
Return to top level
Main Page
Classes
Files
File List
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
12
class
FileConfigurationInterface
:
public
ConfigurationInterface
13
{
14
public
:
15
FileConfigurationInterface
() { ; }
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
ots::TableBase
Definition:
TableBase.h:19
ots::FileConfigurationInterface
Definition:
FileConfigurationInterface.h:12
ots::ConfigurationInterface
Definition:
ConfigurationInterface.h:21
ots::TableVersion
Definition:
TableVersion.h:13
otsdaq
otsdaq
ConfigurationInterface
FileConfigurationInterface.h
Generated on Wed Apr 29 2020 18:41:48 for otsdaq by
1.8.5