VersionAndContext.hh
Go to the documentation of this file.
1 #ifndef VersionAndContext_H
2 #define VersionAndContext_H
3 /*
4 ** This class is a minimalist meta data container, to be transfered to the
5 ** Dk2nu output file and to the log file.
6 ** Used solely for book keeping perpective.
7 ** It does not contain the complete status of the code.
8 ** only the tag information.
9 **
10 ** Paul L. G. Lebrun, February 2017.
11 */
12 #include <string>
13 
15 {
16 
17 private:
20  std::string gitDescription; // the tag, or simply head/master
21  std::string g4lbnfDir; // the Unix path name where the source code was.
22  std::string buildTimeStamp; // the data/time at which it was build
23  // Run time data.
26 
27 
28 public:
29  static VersionAndContext* Instance();
30  VersionAndContext(VersionAndContext const &); // not implemented
31  VersionAndContext& operator=(VersionAndContext const&); // not implemented
32 
33  inline void SetGitDescription (std::string &val) {gitDescription = val;}
34  inline std::string GetGitDescription () const {return gitDescription; }
35 
36  inline void SetG4lbnfDir (std::string &val) { g4lbnfDir = val;}
37  inline std::string GetG4lbnfDir() const {return g4lbnfDir; }
38 
39  inline void SetBuildTimeStamp(std::string &val) { buildTimeStamp = val;}
40  inline std::string GetBuildTimeStamp() const {return buildTimeStamp;}
41 
42  inline void SetPhysicsList(std::string &val) { physicsList = val; }
43  inline std::string GetPhysicsList() const { return physicsList; }
44 
45  inline void SetMacroFileName(std::string &val) { macroFileName = val;}
47 
48 };
49 #endif
VersionAndContext & operator=(VersionAndContext const &)
std::string gitDescription
std::string GetPhysicsList() const
void SetBuildTimeStamp(std::string &val)
void SetPhysicsList(std::string &val)
std::string string
Definition: nybbler.cc:12
std::string GetGitDescription() const
std::string macroFileName
static VersionAndContext * Instance()
void SetGitDescription(std::string &val)
std::string GetG4lbnfDir() const
void SetG4lbnfDir(std::string &val)
static VersionAndContext * fInstance
void SetMacroFileName(std::string &val)
std::string GetBuildTimeStamp() const
std::string buildTimeStamp
std::string GetMacroFileName()