| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

# ServiceHistory.h

Go to the documentation of this file.

    00001 // $Id: ServiceHistory.h,v 1.2 2008/06/04 12:35:15 marcocle Exp $
    00002
    00003 #ifndef GAUDIKERNEL_SERVICEHISTORY_H
    00004 #define GAUDIKERNEL_SERVICEHISTORY_H
    00005
    00006 #include "GaudiKernel/HistoryObj.h"
    00007 #include "GaudiKernel/IVersHistoryObj.h"
    00008
    00009 #include <string>
    00010 #include <vector>
    00011
    00012 class IService;
    00013 class Property;
    00014 class JobHistory;
    00015
    00024 class GAUDI_API ServiceHistory: public HistoryObj, virtual public IVersHistoryObj {
    00025
    00026 public:
    00027   ServiceHistory();
    00028   ServiceHistory(const IService*, const JobHistory* ) ;
    00029   ServiceHistory(const IService&, const JobHistory* ) ;
    00030
    00031   virtual ~ServiceHistory();
    00032
    00033   // Class IDs
    00034   virtual const CLID& clID() const { return classID(); }
    00035   static const CLID& classID();
    00036
    00037   // Return the service properties.
    00038   const PropertyList& properties() const { return m_properties; }
    00039
    00040   const IService* service() const { return m_pService; }
    00041
    00042   const JobHistory* jobHistory() const { return m_jobHistory; }
    00043
    00044   void dump(std::ostream &, const bool isXML=false, int indent=0) const;
    00045
    00046   const std::string& name() const { return m_name; }
    00047   const std::string& type() const { return m_type; }
    00048   const std::string& version() const { return m_version; }
    00049
    00050
    00051 private:
    00052
    00053   const IService* m_pService;
    00054   const JobHistory* m_jobHistory;
    00055   std::string m_name,m_type,m_version;
    00056   PropertyList m_properties;
    00057
    00058 };
    00059
    00060 // Output stream.
    00061 GAUDI_API std::ostream& operator<<(std::ostream& lhs, const ServiceHistory& rhs);
    00062
    00063 #endif

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines