Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
Framework
Core
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
Exception.h
art::OutputFileStatus::Switching
art::operator<<
std::ostream & operator<<(std::ostream &os, const GroupSelector &gs)
Definition:
GroupSelector.cc:62
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:
BasicOptionsHandler.h:9
Generated by
1.8.11