Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
Framework
Services
FileServiceInterfaces
FileDisposition.cc
Go to the documentation of this file.
1
#include "
art/Framework/Services/FileServiceInterfaces/FileDisposition.h
"
2
3
#include <iomanip>
4
#include <sstream>
5
#include <string>
6
7
std::string
8
art::translateFileDisposition
(
FileDisposition
fd)
9
{
10
switch
(fd) {
11
default
: {
12
std::ostringstream os;
13
os <<
"UNKNOWN"
<<
std::setfill
(
'0'
) <<
std::setw
(3)
14
<<
static_cast<
int
>
(fd);
15
return
os.str();
16
}
17
case
FileDisposition::PENDING
:
18
return
"PENDING"
;
19
case
FileDisposition::TRANSFERRED:
20
return
"TRANSFERED"
;
21
case
FileDisposition::CONSUMED:
22
return
"CONSUMED"
;
23
case
FileDisposition::SKIPPED:
24
return
"SKIPPED"
;
25
case
FileDisposition::INCOMPLETE:
26
return
"INCOMPLETE"
;
27
}
28
}
art::FileDisposition
FileDisposition
Definition:
FileDisposition.h:14
string
std::string string
Definition:
nybbler.cc:12
art::detail::FDS::PENDING
Definition:
FileDeliveryStatus.h:11
art::translateFileDisposition
std::string translateFileDisposition(FileDisposition fd)
Definition:
FileDisposition.cc:8
FileDisposition.h
setw
Q_EXPORT QTSManip setw(int w)
Definition:
qtextstream.h:331
setfill
Q_EXPORT QTSManip setfill(int f)
Definition:
qtextstream.h:337
Generated by
1.8.11