| # Gaudi Framework, version v21r10p1 |

Home |  | Generated: 29 Jul 2010

# FileIncident.h

Go to the documentation of this file.

    00001 #ifndef GAUDIKERNEL_FILEINCIDENT_H
    00002 #define GAUDIKERNEL_FILEINCIDENT_H
    00003
    00011 #include "GaudiKernel/Incident.h"
    00012
    00013 #include <string>
    00014
    00018 class GAUDI_API FileIncident : public Incident {
    00019 public:
    00021    FileIncident(const std::string& source,
    00022            const std::string& type,
    00023            const std::string& fileName,
    00024            bool isPayload = false);
    00025    FileIncident(const std::string& source,
    00026            const std::string& type,
    00027            const std::string& fileName,
    00028            const std::string& fileGuid,
    00029            bool isPayload = false);
    00030    FileIncident(const FileIncident& rhs);
    00031    virtual ~FileIncident();
    00032
    00034    const FileIncident& operator=(const FileIncident& rhs);
    00035    const std::string& fileName() const;
    00036    const std::string& fileGuid() const;
    00037    bool isPayload() const;
    00038
    00039 private:
    00040    std::string m_fileName;
    00041    std::string m_fileGuid;
    00042    bool m_isPayload;
    00043 };
    00044
    00045 inline FileIncident::FileIncident(const std::string& source,
    00046         const std::string& type,
    00047         const std::string& fileName,
    00048         bool isPayload) : Incident(source, type), m_fileName(fileName), m_fileGuid(""), m_isPayload(isPayload) {}
    00049 inline FileIncident::FileIncident(const std::string& source,
    00050         const std::string& type,
    00051         const std::string& fileName,
    00052         const std::string& fileGuid,
    00053         bool isPayload) : Incident(source, type), m_fileName(fileName), m_fileGuid(fileGuid), m_isPayload(isPayload) {}
    00054 inline FileIncident::FileIncident(const FileIncident& rhs) : Incident(rhs),
    00055         m_fileName(rhs.m_fileName),
    00056         m_fileGuid(rhs.m_fileGuid),
    00057         m_isPayload(rhs.m_isPayload) {}
    00058 inline FileIncident::~FileIncident() {}
    00059
    00060 inline const FileIncident& FileIncident::operator=(const FileIncident& rhs) {
    00061    if (this != &rhs) {
    00062       Incident::operator=(rhs);
    00063       m_fileName = rhs.m_fileName;
    00064       m_fileGuid = rhs.m_fileGuid;
    00065       m_isPayload = rhs.m_isPayload;
    00066    }
    00067    return(rhs);
    00068 }
    00069
    00070 inline const std::string& FileIncident::fileName() const { return(m_fileName); }
    00071 inline const std::string& FileIncident::fileGuid() const { return(m_fileGuid); }
    00072 inline bool FileIncident::isPayload() const { return(m_isPayload); }
    00073
    00074 #endif