| # 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
FileIncident.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_FILEINCIDENT_H
2 #define GAUDIKERNEL_FILEINCIDENT_H
3
11 #include "GaudiKernel/Incident.h"
12
13 #include <string>
14
18 class GAUDI_API FileIncident : public Incident {
19 public:
21 FileIncident(const std::string& source,
22 const std::string& type,
23 const std::string& fileName);
24 FileIncident(const std::string& source,
25 const std::string& type,
26 const std::string& fileName,
27 const std::string& fileGuid);
28 FileIncident(const FileIncident& rhs);
29 virtual ~FileIncident();
30
32 const FileIncident& operator=(const FileIncident& rhs);
33 const std::string& fileName() const;
34 const std::string& fileGuid() const;
35
36 private:
37 std::string m_fileName;
38 std::string m_fileGuid;
39 };
40
41 inline FileIncident::FileIncident(const std::string& source,
42 const std::string& type,
43 const std::string& fileName) : Incident(source, type), m_fileName(fileName), m_fileGuid("") {}
44 inline FileIncident::FileIncident(const std::string& source,
45 const std::string& type,
46 const std::string& fileName,
47 const std::string& fileGuid) : Incident(source, type), m_fileName(fileName), m_fileGuid(fileGuid) {}
48 inline FileIncident::FileIncident(const FileIncident& rhs) : Incident(rhs),
49 m_fileName(rhs.m_fileName),
50 m_fileGuid(rhs.m_fileGuid) {}
51
52 inline const FileIncident& FileIncident::operator=(const FileIncident& rhs) {
53 if (this != &rhs) {
54 Incident::operator=(rhs);
55 m_fileName = rhs.m_fileName;
56 m_fileGuid = rhs.m_fileGuid;
57 }
58 return(rhs);
59 }
60
61 inline const std::string& FileIncident::fileName() const { return(m_fileName); }
62 inline const std::string& FileIncident::fileGuid() const { return(m_fileGuid); }
63
64 #endif