EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
FairDbConfigurable.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file FairDbConfigurable.h
1
#ifndef FAIRDBCONFIGURABLE_H
2
#define FAIRDBCONFIGURABLE_H
3
#ifndef REGISTRY_H
4
# include "
FairRegistry.h
"
5
#endif
6
7
class
FairDbConfDialog
;
8
9
#ifndef ROOT_Rtypes
10
#if !defined(__CINT__) || defined(__MAKECINT__)
11
#include "Rtypes.h"
12
#endif
13
#endif
14
15
class
FairDbConfigurable
16
{
17
18
public
:
19
20
FairDbConfigurable
();
21
virtual
~FairDbConfigurable
();
22
23
// Subclass should implement this method:
24
virtual
void
Config
() = 0;
25
26
// Access default and main configuration
27
virtual
const
FairRegistry
&
DefaultConfig
()
const
;
28
FairRegistry
&
GetConfig
();
29
const
FairRegistry
&
GetConfig
()
const
;
30
31
// Call anytime. Triggers Config() only iff it has been modifed
32
// since last calling.
33
int
Update
();
34
35
// Set config via interactive dialog
36
void
Set
(
FairDbConfDialog
*
d
=0);
37
38
// Set config via string
39
void
Set
(
const
char
*
s
);
40
41
protected
:
42
virtual
void
CommitDefaultConfig
(
const
FairRegistry
& r);
43
44
private
:
45
FairRegistry
fDefConfig
,
fConfig
;
46
47
48
ClassDef(
FairDbConfigurable
,1)
49
};
50
51
#endif // FAIRDBCONFIGURABLE_H
EicRoot
blob
master
dbase
dbInterface
FairDbConfigurable.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:33
using
1.8.2 with
EIC GitHub integration