Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Incident.h

Go to the documentation of this file.
00001 #ifndef GAUDI_INCIDENT_H
00002 #define GAUDI_INCIDENT_H
00003 
00004 // Include files
00005 #include <string>
00006 
00007 // Forward declarations
00008 
00009 //
00010 // ClassName:   Incident
00011 //
00012 // Description: Base class for all Incidents (computing events).
00013 //
00014 // Author:      P. Mato
00015 //
00016 class Incident {
00017 public:
00018 
00019   // Constructor and destructor
00020   Incident(const std::string& source, // Incident source (service or algorithm name)
00021            const std::string& type    // Incident type
00022            ) : m_source(source), m_type(type) { }
00023   virtual ~Incident() { }
00024 
00025   // Accesssors
00026   const std::string& type()  const { return m_type; }
00027   const std::string& source() const { return m_source; }
00028 private:
00029   std::string m_source;
00030   std::string m_type;
00031 };
00032 
00033 #endif //GAUDI_INCIDENT_H
00034 

Generated at Wed Nov 21 12:22:04 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000