LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
FileTransferStatus.cc
Go to the documentation of this file.
1
#include "
art/Framework/Services/FileServiceInterfaces/FileTransferStatus.h
"
2
3
#include <iomanip>
4
#include <sstream>
5
#include <string>
6
7
std::string
8
art::translateFileTransferStatus
(
FileTransferStatus
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
FileTransferStatus::PENDING
:
18
return
"PENDING"
;
19
case
FileTransferStatus::SUCCESS
:
20
return
"SUCCESS"
;
21
case
FileTransferStatus::BAD_REQUEST
:
22
return
"BAD_REQUEST"
;
23
case
FileTransferStatus::UNAUTHORIZED
:
24
return
"UNAUTHORIZED"
;
25
case
FileTransferStatus::PAYMENT_REQUIRED
:
26
return
"PAYMENT_REQUIRED"
;
27
case
FileTransferStatus::FORBIDDEN
:
28
return
"FORBIDDEN"
;
29
case
FileTransferStatus::NOT_FOUND
:
30
return
"NOT_FOUND"
;
31
case
FileTransferStatus::GONE
:
32
return
"GONE"
;
33
case
FileTransferStatus::TOO_LARGE
:
34
return
"TOO_LARGE"
;
35
case
FileTransferStatus::URI_TOO_LONG
:
36
return
"URI_TOO_LONG"
;
37
case
FileTransferStatus::SERVER_ERROR
:
38
return
"SERVER_ERROR"
;
39
case
FileTransferStatus::UNAVAILABLE
:
40
return
"UNAVAILABLE"
;
41
}
42
}
art::detail::FTS::FileTransferStatus
FileTransferStatus
Definition:
FileTransferStatus.h:10
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::FTS::SERVER_ERROR
Definition:
FileTransferStatus.h:21
art::detail::FDS::SUCCESS
Definition:
FileDeliveryStatus.h:12
art::detail::FTS::PAYMENT_REQUIRED
Definition:
FileTransferStatus.h:15
art::detail::FTS::TOO_LARGE
Definition:
FileTransferStatus.h:19
art::detail::FTS::URI_TOO_LONG
Definition:
FileTransferStatus.h:20
art::detail::FDS::BAD_REQUEST
Definition:
FileDeliveryStatus.h:15
art::detail::FTS::UNAUTHORIZED
Definition:
FileTransferStatus.h:14
art::translateFileTransferStatus
std::string translateFileTransferStatus(FileTransferStatus stat)
Definition:
FileTransferStatus.cc:8
art::detail::FTS::GONE
Definition:
FileTransferStatus.h:18
FileTransferStatus.h
art
Framework
Services
FileServiceInterfaces
FileTransferStatus.cc
Generated on Thu Jul 26 2018 13:09:42 for LArSoft by
1.8.11