Trainstamp
class Trainstamp
This class expresses a time point and holds it in form of one unsigned 64bit value. The value is the European XFEL trainId which clocks in regular interval (initially 10Hz)
Functions
| Name | Description |
|---|---|
| Trainstamp | Default constructor creates invalid trainId (=0) |
| Trainstamp | Constructor from trainId |
| fromHashAttributes | Creates an TrainStamp from a Hash attribute This function throws in case the attributes do no provide the correct information attributes : Hash attributes Return : TrainStamp object |
| toHashAttributes | Formats as Hash attributes attributes : container to which the time point information is added |
Function Details
Trainstamp
Trainstamp()
Default constructor creates invalid trainId (=0)
Trainstamp(const unsigned long long trainId)
Constructor from trainId
fromHashAttributes
static Trainstamp fromHashAttributes(const Hash::Attributes& attributes)
Creates an TrainStamp from a Hash attribute This function throws in case the attributes do no provide the correct information
attributes
: Hash attributes
Return : TrainStamp object
toHashAttributes
void toHashAttributes(Hash::Attributes& attributes) const
Formats as Hash attributes
attributes
: container to which the time point information is added