| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

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
6 #include "GaudiKernel/HistoryObj.h"
7 #include "GaudiKernel/IVersHistoryObj.h"
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
29 typedef std::vector< std::pair<std::string,const Property*> > PropertyPairList;
30
31 private: // data
32
33 std::string m_release_version;
34 std::string m_dir;
35 std::string m_cmtconfig;
36
37 std::string m_osname;
38 std::string m_hostname;
39 std::string m_os_version;
40 std::string m_machine;
41
42 std::vector<std::string> m_environ;
43
44 PropertyList m_props;
45 PropertyPairList m_ppl;
46
47 std::vector<std::string> m_CVSid;
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.
94 GAUDI_API std::ostream& operator<<(std::ostream& lhs, const JobHistory& rhs);
95
96 #endif