Belle II Software development
|
Simple struct to group all information necessary for a single payload. More...
#include <PayloadMetadata.h>
Public Member Functions | |
PayloadMetadata (const std::string &_name, bool _required=true) | |
Constructor to request a payload with a given name and indicate whether non-existence is ok. | |
PayloadMetadata (const std::string &_name, const std::string &_globaltag, const std::string &_payloadUrl, const std::string &_baseUrl, const std::string &_checksum, int firstExp, int firstRun, int finalExp, int finalRun, int _revision) | |
Constructor for all the information which is usually obtained from providers. | |
void | update (const PayloadMetadata &other) |
Update information from another instance but keep the "required" flag untouched. | |
Public Attributes | |
std::string | name |
Name of the Payload. | |
std::string | globaltag {""} |
Name of the globaltag this payload was taken from. | |
std::string | filename {""} |
full filename to the payload file | |
std::string | payloadUrl {""} |
logical filename to the payload | |
std::string | baseUrl {""} |
base url if download is necessary | |
std::string | checksum {""} |
digest (checksum) of the payload | |
IntervalOfValidity | iov |
the interval of validity | |
size_t | revision {0} |
the revision of the payload | |
bool | required {true} |
if true a missing payload will not trigger an error | |
Simple struct to group all information necessary for a single payload.
Definition at line 15 of file PayloadMetadata.h.
|
inlineexplicit |
Constructor to request a payload with a given name and indicate whether non-existence is ok.
Definition at line 17 of file PayloadMetadata.h.
|
inline |
Constructor for all the information which is usually obtained from providers.
"required" and "filename" are not part of this as they get filled in later steps or from other parties
Definition at line 19 of file PayloadMetadata.h.
|
inline |
Update information from another instance but keep the "required" flag untouched.
Definition at line 24 of file PayloadMetadata.h.
std::string baseUrl {""} |
base url if download is necessary
Definition at line 39 of file PayloadMetadata.h.
std::string checksum {""} |
digest (checksum) of the payload
Definition at line 41 of file PayloadMetadata.h.
std::string filename {""} |
full filename to the payload file
Definition at line 35 of file PayloadMetadata.h.
std::string globaltag {""} |
Name of the globaltag this payload was taken from.
Definition at line 33 of file PayloadMetadata.h.
the interval of validity
Definition at line 43 of file PayloadMetadata.h.
std::string name |
Name of the Payload.
Definition at line 31 of file PayloadMetadata.h.
std::string payloadUrl {""} |
logical filename to the payload
Definition at line 37 of file PayloadMetadata.h.
bool required {true} |
if true a missing payload will not trigger an error
Definition at line 47 of file PayloadMetadata.h.
size_t revision {0} |
the revision of the payload
Definition at line 45 of file PayloadMetadata.h.