LArSoft
v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
OutputFileStatus.h
Go to the documentation of this file.
1
#ifndef art_Framework_Core_OutputFileStatus_h
2
#define art_Framework_Core_OutputFileStatus_h
3
4
#include "
canvas/Utilities/Exception.h
"
5
#include <ostream>
6
7
namespace
art
{
8
enum class
OutputFileStatus
{
Open
,
Switching
,
Closed
};
9
10
inline
std::ostream&
11
operator<<
(std::ostream& os,
OutputFileStatus
const
ofs)
12
{
13
switch
(ofs) {
14
case
OutputFileStatus::Open
:
15
return
os <<
"Open"
;
16
case
OutputFileStatus::Switching
:
17
return
os <<
"Switching"
;
18
case
OutputFileStatus::Closed
:
19
return
os <<
"Closed"
;
20
default
:
21
throw
art::Exception
{
art::errors::LogicError
,
22
"Unknown output file status."
};
23
}
24
}
25
}
// namespace art
26
27
#endif
/* art_Framework_Core_OutputFileStatus_h */
28
29
// Local variables:
30
// mode: c++
31
// End:
art::OutputFileStatus::Open
art::errors::LogicError
Definition:
Exception.h:33
art::OutputFileStatus::Switching
art::operator<<
std::ostream & operator<<(std::ostream &os, const GroupSelector &gs)
Definition:
GroupSelector.cc:63
art::OutputFileStatus
OutputFileStatus
Definition:
OutputFileStatus.h:8
art::OutputFileStatus::Closed
art::Exception
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition:
Exception.h:66
art
Definition:
MVAAlg.h:12
Exception.h
art
Framework
Core
OutputFileStatus.h
Generated on Thu May 2 2024 20:59:29 for LArSoft by
1.8.11