The Gaudi Framework  master (933c680c)
Loading...
Searching...
No Matches
FileIncident.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
11#pragma once
12
18
20
21#include <string>
22
27public:
29 FileIncident( std::string source, std::string type, std::string fileName );
30 FileIncident( std::string source, std::string type, std::string fileName, std::string fileGuid );
31
32 const std::string& fileName() const { return m_fileName; }
33 const std::string& fileGuid() const { return m_fileGuid; }
34
35private:
36 std::string m_fileName;
37 std::string m_fileGuid;
38};
39
40inline FileIncident::FileIncident( std::string source, std::string type, std::string fileName )
41 : Incident( std::move( source ), std::move( type ) ), m_fileName( std::move( fileName ) ) {}
42
43inline FileIncident::FileIncident( std::string source, std::string type, std::string fileName, std::string fileGuid )
44 : Incident( std::move( source ), std::move( type ) )
45 , m_fileName( std::move( fileName ) )
46 , m_fileGuid( std::move( fileGuid ) ) {}
#define GAUDI_API
Definition Kernel.h:49
std::string m_fileGuid
const std::string & fileName() const
FileIncident(std::string source, std::string type, std::string fileName)
standard constructor
std::string m_fileName
const std::string & fileGuid() const
Incident(const std::string &source, const std::string &type)
Default Constructor.
Definition Incident.cpp:15
const std::string & type() const
Access to the incident type.
Definition Incident.h:43
const std::string & source() const
Access to the source of the incident.
Definition Incident.h:49
STL namespace.