EIC Software
 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 
21 {
22 
23 
24  public:
25 
27 
28 // Constructors and destructors.
30  FairDbConfigStream(const std::string& SoftwName,
31  const std::string& ConfigName="default",
33  FairDb::Task task=0,
34  const std::string& tableName="SOFTWARE_CONFIGURATION");
35  virtual ~FairDbConfigStream();
36 
37 // State testing member functions
39  const FairDbConfigSet* GetConfigSet() const { return fCFSet; }
40 
41 // State changing member functions
42 
44  Bool_t IsEmpty() { return fCFSet == 0; }
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*
61 
65 
68 
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