Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-02-21 10:00:29

0001 /***********************************************************************************\
0002 * (c) Copyright 1998-2019 CERN for the benefit of the LHCb and ATLAS collaborations *
0003 *                                                                                   *
0004 * This software is distributed under the terms of the Apache version 2 licence,     *
0005 * copied verbatim in the file "LICENSE".                                            *
0006 *                                                                                   *
0007 * In applying this licence, CERN does not waive the privileges and immunities       *
0008 * granted to it by virtue of its status as an Intergovernmental Organization        *
0009 * or submit itself to any jurisdiction.                                             *
0010 \***********************************************************************************/
0011 #ifndef GAUDIKERNEL_FILEINCIDENT_H
0012 #define GAUDIKERNEL_FILEINCIDENT_H
0013 
0014 /** @file FileIncident.h
0015  *  @brief This file contains the class definition for the FileIncident class.
0016  *  @author Peter van Gemmeren <gemmeren@anl.gov>
0017  *  @author Charles Leggett
0018  **/
0019 
0020 #include "GaudiKernel/Incident.h"
0021 
0022 #include <string>
0023 
0024 /** @class FileIncident
0025  *  @brief This class is the FileIncident.
0026  **/
0027 class GAUDI_API FileIncident : public Incident {
0028 public:
0029   /// standard constructor
0030   FileIncident( std::string source, std::string type, std::string fileName );
0031   FileIncident( std::string source, std::string type, std::string fileName, std::string fileGuid );
0032 
0033   const std::string& fileName() const { return m_fileName; }
0034   const std::string& fileGuid() const { return m_fileGuid; }
0035 
0036 private:
0037   std::string m_fileName;
0038   std::string m_fileGuid;
0039 };
0040 
0041 inline FileIncident::FileIncident( std::string source, std::string type, std::string fileName )
0042     : Incident( std::move( source ), std::move( type ) ), m_fileName( std::move( fileName ) ) {}
0043 
0044 inline FileIncident::FileIncident( std::string source, std::string type, std::string fileName, std::string fileGuid )
0045     : Incident( std::move( source ), std::move( type ) )
0046     , m_fileName( std::move( fileName ) )
0047     , m_fileGuid( std::move( fileGuid ) ) {}
0048 
0049 #endif