Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
Framework
Services
FileServiceInterfaces
FileDeliveryStatus.cc
Go to the documentation of this file.
1
#include "
art/Framework/Services/FileServiceInterfaces/FileDeliveryStatus.h
"
2
3
#include <iomanip>
4
#include <sstream>
5
#include <string>
6
7
std::string
8
art::translateFileDeliveryStatus
(
FileDeliveryStatus
const
stat
)
9
{
10
switch
(stat) {
11
default
: {
12
std::ostringstream os;
13
os <<
"UNKNOWN"
<<
std::setfill
(
'0'
) <<
std::setw
(3)
14
<<
static_cast<
int
>
(
stat
);
15
return
os.str();
16
}
17
case
FileDeliveryStatus::PENDING
:
18
return
"PENDING"
;
19
case
FileDeliveryStatus::SUCCESS
:
20
return
"SUCCESS"
;
21
case
FileDeliveryStatus::TRY_AGAIN_LATER
:
22
return
"TRY_AGAIN_LATER"
;
23
case
FileDeliveryStatus::NO_MORE_FILES
:
24
return
"NO_MORE_FILES"
;
25
case
FileDeliveryStatus::BAD_REQUEST
:
26
return
"BAD_REQUEST"
;
27
case
FileDeliveryStatus::FORBIDDEN
:
28
return
"FORBIDDEN"
;
29
case
FileDeliveryStatus::NOT_FOUND
:
30
return
"NOT_FOUND"
;
31
case
FileDeliveryStatus::CONFLICT
:
32
return
"CONFLICT"
;
33
case
FileDeliveryStatus::SERVER_EXCEPTION
:
34
return
"SERVER_EXCEPTION"
;
35
case
FileDeliveryStatus::BAD_GATEWAY
:
36
return
"BAD_GATEWAY"
;
37
case
FileDeliveryStatus::UNAVAILABLE
:
38
return
"UNAVAILABLE"
;
39
case
FileDeliveryStatus::SPECIFIC_ERRORS
:
40
return
"SPECIFIC_ERRORS"
;
41
}
42
}
art::detail::FDS::TRY_AGAIN_LATER
Definition:
FileDeliveryStatus.h:13
FileDeliveryStatus.h
string
std::string string
Definition:
nybbler.cc:12
python.larbatch_posix.stat
def stat(path)
Definition:
larbatch_posix.py:482
art::detail::FDS::PENDING
Definition:
FileDeliveryStatus.h:11
art::detail::FDS::UNAVAILABLE
Definition:
FileDeliveryStatus.h:21
art::detail::FDS::FORBIDDEN
Definition:
FileDeliveryStatus.h:16
art::detail::FDS::NOT_FOUND
Definition:
FileDeliveryStatus.h:17
art::detail::FDS::BAD_GATEWAY
Definition:
FileDeliveryStatus.h:20
art::detail::FDS::SPECIFIC_ERRORS
Definition:
FileDeliveryStatus.h:22
art::detail::FDS::BAD_REQUEST
Definition:
FileDeliveryStatus.h:15
art::detail::FDS::FileDeliveryStatus
FileDeliveryStatus
Definition:
FileDeliveryStatus.h:10
art::detail::FDS::CONFLICT
Definition:
FileDeliveryStatus.h:18
setw
Q_EXPORT QTSManip setw(int w)
Definition:
qtextstream.h:331
art::translateFileDeliveryStatus
std::string translateFileDeliveryStatus(FileDeliveryStatus stat)
Definition:
FileDeliveryStatus.cc:8
art::detail::FDS::NO_MORE_FILES
Definition:
FileDeliveryStatus.h:14
art::detail::FDS::SERVER_EXCEPTION
Definition:
FileDeliveryStatus.h:19
setfill
Q_EXPORT QTSManip setfill(int f)
Definition:
qtextstream.h:337
SUCCESS
#define SUCCESS
Definition:
DBScan3DAlg.h:39
Generated by
1.8.11