Belle II Software  release-08-01-10
PayloadMetadata Struct Reference

Simple struct to group all information necessary for a single payload. More...

#include <PayloadMetadata.h>

Collaboration diagram for PayloadMetadata:

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. More...
 
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
 

Detailed Description

Simple struct to group all information necessary for a single payload.

Definition at line 15 of file PayloadMetadata.h.

Constructor & Destructor Documentation

◆ PayloadMetadata()

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 
)
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.

21  : name(_name), globaltag(_globaltag), payloadUrl(_payloadUrl), baseUrl(_baseUrl), checksum(_checksum),
22  iov{firstExp, firstRun, finalExp, finalRun}, revision(_revision) {}
IntervalOfValidity iov
the interval of validity
std::string name
Name of the Payload.
std::string baseUrl
base url if download is necessary
std::string globaltag
Name of the globaltag this payload was taken from.
std::string checksum
digest (checksum) of the payload
std::string payloadUrl
logical filename to the payload
size_t revision
the revision of the payload

The documentation for this struct was generated from the following file: