Gaudi Framework, version v25r0

Home   Generated: Mon Feb 17 2014
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
JobHistory.h
Go to the documentation of this file.
1 // $Id: JobHistory.h,v 1.1 2006/11/09 10:24:05 mato Exp $
2 
3 #ifndef GAUDIKERNEL_JOBHISTORY_H
4 #define GAUDIKERNEL_JOBHISTORY_H
5 
8 
9 #include <string>
10 #include <vector>
11 #include <utility>
12 #include <iosfwd>
13 #include <ctime>
14 
23 class Property;
24 
25 class GAUDI_API JobHistory: public HistoryObj, virtual public IVersHistoryObj {
26 
27 public:
28 
30 
31 private: // data
32 
36 
41 
43 
46 
48  time_t m_start_time;
49 
50 public: // functions
51 
52  // Constructor.
53  JobHistory();
54  JobHistory(const std::string& rel, const std::string& os,
55  const std::string& host, const std::string& dir,
56  const std::string& osver, const std::string& mach,
57  const std::string& cmtconfig,
58  const time_t& time);
59 
60  // Destructor.
61  virtual ~JobHistory();
62 
63  // Class IDs
64  virtual const CLID& clID() const { return classID(); }
65  static const CLID& classID();
66 
67  // add a global property
68  void addProperty( const std::string&, const Property* );
69 
70  // Return the job history data.
71  std::string release_version() const { return m_release_version; }
72  std::string os() const { return m_osname; }
73  std::string hostname() const { return m_hostname; }
74  std::string os_version() const { return m_os_version; }
75  std::string machine() const { return m_machine; }
76  std::string dir() const { return m_dir; }
77  std::string cmtconfig() const { return m_cmtconfig; }
78  std::vector<std::string> environment() const { return m_environ; }
79  const PropertyList& properties() const { return m_props; }
80  const PropertyPairList& propertyPairs() const { return m_ppl; }
81  time_t start_time() const { return m_start_time; }
82 
83  void dump(std::ostream &, const bool isXML=false, int indent=0) const;
84 
85  const std::string& name() const { return m_machine; }
86  const std::string& version() const { return m_release_version;}
87  const std::string& type() const { return m_osname; }
88 
89 private:
90 
91 };
92 
93 // Output stream.
95 
96 #endif

Generated at Mon Feb 17 2014 14:37:42 for Gaudi Framework, version v25r0 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004