| The Gaudi Framework v27r1

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

- File List
- File Members

FileIncident.h
Go to the documentation of this file.
1 #ifndef GAUDIKERNEL_FILEINCIDENT_H
2 #define GAUDIKERNEL_FILEINCIDENT_H
3
10 #include "GaudiKernel/Incident.h"
11
12 #include <string>
13
17 class GAUDI_API FileIncident : public Incident {
18 public:
20 FileIncident(std::string source,
21 std::string type,
22 std::string fileName);
23 FileIncident(std::string source,
24 std::string type,
25 std::string fileName,
26 std::string fileGuid);
27 FileIncident(const FileIncident& rhs);
28 ~FileIncident() override = default;
29
31 const FileIncident& operator=(const FileIncident& rhs);
32 const std::string& fileName() const;
33 const std::string& fileGuid() const;
34
35 private:
36 std::string m_fileName;
37 std::string m_fileGuid;
38 };
39
40 inline FileIncident::FileIncident(std::string source,
41 std::string type,
42 std::string fileName)
43 : Incident(std::move(source), std::move(type)),
44 m_fileName(std::move(fileName)) {}
45
46 inline FileIncident::FileIncident(std::string source,
47 std::string type,
48 std::string fileName,
49 std::string fileGuid)
50 : Incident(std::move(source), std::move(type)),
51 m_fileName(std::move(fileName)), m_fileGuid(std::move(fileGuid)) {}
52
53 inline FileIncident::FileIncident(const FileIncident& rhs) : Incident(rhs),
54 m_fileName(rhs.m_fileName),
55 m_fileGuid(rhs.m_fileGuid) {}
56
57 inline const FileIncident& FileIncident::operator=(const FileIncident& rhs) {
58 Incident::operator=(rhs);
59 m_fileName = rhs.m_fileName;
60 m_fileGuid = rhs.m_fileGuid;
61 return *this;
62 }
63
64 inline const std::string& FileIncident::fileName() const { return m_fileName; }
65 inline const std::string& FileIncident::fileGuid() const { return m_fileGuid; }
66
67 #endif
FileIncident::m_fileGuid
std::string m_fileGuid
Definition: FileIncident.h:37
FileIncident::FileIncident
FileIncident(std::string source, std::string type, std::string fileName)
standard constructor
Definition: FileIncident.h:40
FileIncident
This class is the FileIncident.
Definition: FileIncident.h:17
FileIncident::operator=
const FileIncident & operator=(const FileIncident &rhs)
Overloaded Assignment Operator.
Definition: FileIncident.h:57
std
STL namespace.
std::string
STL class.
Incident.h
gaudirun.type
string type
Definition: gaudirun.py:151
FileIncident::m_fileName
std::string m_fileName
Definition: FileIncident.h:36
Incident
Base class for all Incidents (computing events).
Definition: Incident.h:17
FileIncident::fileGuid
const std::string & fileGuid() const
Definition: FileIncident.h:65
FileIncident::fileName
const std::string & fileName() const
Definition: FileIncident.h:64
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:107