| The Gaudi Framework v29r0 (ff2e7097)

- 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 {
19 public:
21 FileIncident( std::string source, std::string type, std::string fileName );
22 FileIncident( std::string source, std::string type, std::string fileName, std::string fileGuid );
23 FileIncident( const FileIncident& rhs );
24 ~FileIncident() override = default;
25
27 const FileIncident& operator=( const FileIncident& rhs );
28 const std::string& fileName() const;
29 const std::string& fileGuid() const;
30
31 private:
32 std::string m_fileName;
33 std::string m_fileGuid;
34 };
35
36 inline FileIncident::FileIncident( std::string source, std::string type, std::string fileName )
37 : Incident( std::move( source ), std::move( type ) ), m_fileName( std::move( fileName ) )
38 {
39 }
40
41 inline FileIncident::FileIncident( std::string source, std::string type, std::string fileName, std::string fileGuid )
42 : Incident( std::move( source ), std::move( type ) )
43 , m_fileName( std::move( fileName ) )
44 , m_fileGuid( std::move( fileGuid ) )
45 {
46 }
47
48 inline FileIncident::FileIncident( const FileIncident& rhs )
49 : Incident( rhs ), m_fileName( rhs.m_fileName ), m_fileGuid( rhs.m_fileGuid )
50 {
51 }
52
53 inline const FileIncident& FileIncident::operator=( const FileIncident& rhs )
54 {
55 Incident::operator=( rhs );
56 m_fileName = rhs.m_fileName;
57 m_fileGuid = rhs.m_fileGuid;
58 return *this;
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
FileIncident::m_fileGuid
std::string m_fileGuid
Definition: FileIncident.h:33
FileIncident::FileIncident
FileIncident(std::string source, std::string type, std::string fileName)
standard constructor
Definition: FileIncident.h:36
FileIncident
This class is the FileIncident.
Definition: FileIncident.h:17
Incident::type
const std::string & type() const
Access to the incident type.
Definition: Incident.h:41
Incident::source
const std::string & source() const
Access to the source of the incident.
Definition: Incident.h:47
FileIncident::operator=
const FileIncident & operator=(const FileIncident &rhs)
Overloaded Assignment Operator.
Definition: FileIncident.h:53
std
STL namespace.
operator=
PropertyMgr & operator=(const PropertyMgr &)=delete
std::string
STL class.
Incident.h
gaudirun.type
type
Definition: gaudirun.py:133
FileIncident::m_fileName
std::string m_fileName
Definition: FileIncident.h:32
Incident
Base class for all Incidents (computing events).
Definition: Incident.h:17
FileIncident::fileGuid
const std::string & fileGuid() const
Definition: FileIncident.h:62
FileIncident::fileName
const std::string & fileName() const
Definition: FileIncident.h:61
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:110