LArSoft
v06_85_00
Liquid Argon Software toolkit - http://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
}
26
27
#endif
/* art_Framework_Core_OutputFileStatus_h */
28
29
// Local variables:
30
// mode: c++
31
// End:
art::operator<<
std::ostream & operator<<(std::ostream &os, EDAnalyzer::Table< T > const &t)
Definition:
EDAnalyzer.h:184
art::OutputFileStatus::Open
art::errors::LogicError
Definition:
Exception.h:33
art::OutputFileStatus::Switching
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
HLT enums.
Definition:
ServiceProviderWrappers.h:36
Exception.h
art
Framework
Core
OutputFileStatus.h
Generated on Thu Jul 26 2018 13:09:39 for LArSoft by
1.8.11