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
FairDbConfigStream.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file FairDbConfigStream.h
1
#ifndef FAIRDBCONFIGSTREAM_H
2
#define FAIRDBCONFIGSTREAM_H
3
4
5
#include <string>
6
7
#include "
FairDb.h
"
8
#include "
FairDbConfigSet.h
"
9
#include "
FairDbResPtr.h
"
10
#include "
FairRegistry.h
"
11
#include "
ValContext.h
"
12
13
class
FairDbConfigStream
;
14
class
FairDbFieldType
;
15
class
FairRegistry
;
16
#include <iosfwd>
17
18
ostream&
operator<<
(ostream&
s
,
const
FairDbConfigStream
& cfStream);
19
20
class
FairDbConfigStream
21
{
22
23
24
public
:
25
26
static
ValContext
fgDefaultContext
;
27
28
// Constructors and destructors.
29
FairDbConfigStream
();
30
FairDbConfigStream
(
const
std::string& SoftwName,
31
const
std::string& ConfigName=
"default"
,
32
ValContext
vc =
FairDbConfigStream::fgDefaultContext
,
33
FairDb::Task
task=0,
34
const
std::string& tableName=
"SOFTWARE_CONFIGURATION"
);
35
virtual
~FairDbConfigStream
();
36
37
// State testing member functions
38
const
FairDbConfigStream
&
operator>>
(
FairRegistry
* reg);
39
const
FairDbConfigSet
*
GetConfigSet
()
const
{
return
fCFSet
; }
40
41
// State changing member functions
42
43
FairDbConfigStream
&
operator<<
(
const
FairRegistry
* reg);
44
Bool_t
IsEmpty
() {
return
fCFSet
== 0; }
45
FairDbValidityRec
&
GetValidityRec
() {
return
fVRec
; }
46
Bool_t
Write
(UInt_t dbNo = 0,
47
const
std::string& logComment =
""
,
48
Bool_t localTest =
false
);
49
50
private
:
51
52
FairDbConfigStream
(
const
FairDbConfigStream
&);
// Not implimented
53
FairDbConfigStream
operator=
(
const
FairDbConfigStream
&);
// Not implimented
54
55
// Data members
56
59
const
FairDbConfigSet
*
60
fCFSet
;
61
63
FairDbResultPtr<FairDbConfigSet>
64
fCFSetTable
;
65
67
FairDbConfigSet
fCFSetModified
;
68
70
FairDbValidityRec
fVRec
;
71
73
std::string
fConfigName
;
74
76
std::string
fSoftwName
;
77
78
ClassDef(
FairDbConfigStream
,0)
// Input/output stream of configuration data
79
80
};
81
82
#endif // DBICONFIGSTREAM_H
EicRoot
blob
master
dbase
dbInterface
FairDbConfigStream.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:33
using
1.8.2 with
EIC GitHub integration