#include <status_enum.hpp>
|
| enum | e_status {
PREPARING
, ERROR
, SUCCESS_UPLOAD
, SUCCESS_DOWNLOAD
,
FINISHED
, CANCELLED
, PAUSED
, WAITING
,
CHECKING
, HASHING
, UPLOADING
, DOWNLOADING
} |
| | Different type of session status Need to be sorted by priority (highest last) More...
|
| |
Definition at line 17 of file status_enum.hpp.
◆ e_status
Different type of session status Need to be sorted by priority (highest last)
| Enumerator |
|---|
| PREPARING | waiting for the transfer to start, can be waiting to receive expected files metadata
|
| ERROR | |
| SUCCESS_UPLOAD | |
| SUCCESS_DOWNLOAD | |
| FINISHED | |
| CANCELLED | |
| PAUSED | |
| WAITING | |
| CHECKING | |
| HASHING | |
| UPLOADING | |
| DOWNLOADING | |
Definition at line 21 of file status_enum.hpp.
22 {
26
28
33
36
37
38
43 };
@ PREPARING
waiting for the transfer to start, can be waiting to receive expected files metadata
◆ status_to_string()
| static std::string dunedaq::snbmodules::status_type::status_to_string |
( |
e_status | e | ) |
|
|
inlinestatic |
Definition at line 45 of file status_enum.hpp.
46 {
47 const std::map<e_status, std::string> MyEnumStrings{ {
PREPARING,
"PREPARING" },
59 auto it = MyEnumStrings.find(e);
60 return it == MyEnumStrings.end() ? "Not supported" : it->second;
61 }
◆ string_to_status()
| static std::optional< e_status > dunedaq::snbmodules::status_type::string_to_status |
( |
std::string | s | ) |
|
|
inlinestatic |
Definition at line 63 of file status_enum.hpp.
64 {
65 const std::map<std::string, e_status> MyStringsEnum{ {
"PREPARING",
PREPARING },
77 auto it = MyStringsEnum.find(s);
78 if (it == MyStringsEnum.end()) {
79 return std::nullopt;
80 }
81 return it->second;
82 }
The documentation for this struct was generated from the following file:
- /github/workspace/dunedaq/sourcecode/snbmodules/include/snbmodules/common/status_enum.hpp