ifw-daq  2.1.0-pre1
IFW Data Acquisition modules
Public Types | Public Member Functions | Public Attributes | List of all members
daq::GenericEvent Struct Reference

Represents a generic event if a more specific event is not usable. More...

#include <eventLog.hpp>

+ Inheritance diagram for daq::GenericEvent:

Public Types

using TimePoint = std::chrono::time_point< std::chrono::steady_clock >
 

Public Member Functions

 GenericEvent (std::string id, std::string description, std::optional< Status > status) noexcept
 
 GenericEvent (GenericEvent &&)=default
 
 GenericEvent (GenericEvent const &)=default
 
GenericEventoperator= (GenericEvent &&)=default
 
GenericEventoperator= (GenericEvent const &)=default
 
bool operator== (GenericEvent const &rhs) const noexcept
 
bool operator!= (GenericEvent const &rhs) const noexcept
 

Public Attributes

TimePoint timestamp
 
std::string id
 
std::string description
 
std::optional< Statusstatus
 

Detailed Description

Represents a generic event if a more specific event is not usable.

Definition at line 29 of file eventLog.hpp.

Member Typedef Documentation

◆ TimePoint

using daq::GenericEvent::TimePoint = std::chrono::time_point<std::chrono::steady_clock>

Definition at line 30 of file eventLog.hpp.

Constructor & Destructor Documentation

◆ GenericEvent() [1/3]

daq::GenericEvent::GenericEvent ( std::string  id,
std::string  description,
std::optional< Status status 
)
noexcept

Definition at line 12 of file eventLog.cpp.

◆ GenericEvent() [2/3]

daq::GenericEvent::GenericEvent ( GenericEvent &&  )
default

◆ GenericEvent() [3/3]

daq::GenericEvent::GenericEvent ( GenericEvent const &  )
default

Member Function Documentation

◆ operator!=()

bool daq::GenericEvent::operator!= ( GenericEvent const &  rhs) const
noexcept

Definition at line 22 of file eventLog.cpp.

◆ operator=() [1/2]

GenericEvent& daq::GenericEvent::operator= ( GenericEvent &&  )
default

◆ operator=() [2/2]

GenericEvent& daq::GenericEvent::operator= ( GenericEvent const &  )
default

◆ operator==()

bool daq::GenericEvent::operator== ( GenericEvent const &  rhs) const
noexcept

Definition at line 18 of file eventLog.cpp.

Member Data Documentation

◆ description

std::string daq::GenericEvent::description

Definition at line 44 of file eventLog.hpp.

◆ id

std::string daq::GenericEvent::id

Definition at line 43 of file eventLog.hpp.

◆ status

std::optional<Status> daq::GenericEvent::status

Definition at line 45 of file eventLog.hpp.

◆ timestamp

TimePoint daq::GenericEvent::timestamp

Definition at line 42 of file eventLog.hpp.


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