ifw-daq
2.1.0-pre1
IFW Data Acquisition modules
|
Stores data acquisition status and allows subscription to status changes. More...
#include <eventLog.hpp>
Public Types | |
using | Signal = boost::signals2::signal< void(EventLog::EventType const &)> |
Public Member Functions | |
ObservableEventLog ()=default | |
Construct a new object. More... | |
ObservableEventLog (ObservableEventLog const &)=delete | |
ObservableEventLog & | operator= (ObservableEventLog const &)=delete |
Modifiers | |
void | AddEvent (EventLog::EventType event) |
Records that a file has been produced for this data acquisition. More... | |
template<class T , class... Args> | |
void | EmplaceEvent (Args &&... args) |
Like AddEvent but emplaces the specified event type. More... | |
template<class Observer > | |
boost::signals2::connection | ConnectObserver (Observer o) |
Connect observer that is invoked when state is modified. More... | |
Accessors | |
operator EventLog const & () | |
Allow implicit conversion to non-observable status. More... | |
EventLog const & | GetEventLog () const noexcept |
Allow implicit conversion to non-observable status. More... | |
std::vector< EventLog::EventType > const & | GetEventContainer () const noexcept |
Allow implicit conversion to non-observable status. More... | |
Stores data acquisition status and allows subscription to status changes.
DaqController and other objects will update ObservableEvent as changes occur.
Definition at line 107 of file eventLog.hpp.
using daq::ObservableEventLog::Signal = boost::signals2::signal<void(EventLog::EventType const&)> |
Definition at line 109 of file eventLog.hpp.
|
explicitdefault |
Construct a new object.
id | Data acquisition identifier. |
|
delete |
void daq::ObservableEventLog::AddEvent | ( | EventLog::EventType | event | ) |
Records that a file has been produced for this data acquisition.
files | Files to add/record. |
Definition at line 54 of file eventLog.cpp.
|
inline |
Connect observer that is invoked when state is modified.
o | Observer callable invoked on status changes (state or file changes) Observer must be invocable with signature void(ObservableEvent const&) . |
Definition at line 154 of file eventLog.hpp.
|
inline |
Like AddEvent but emplaces the specified event type.
Definition at line 134 of file eventLog.hpp.
|
inlinenoexcept |
Allow implicit conversion to non-observable status.
Definition at line 172 of file eventLog.hpp.
|
inlinenoexcept |
Allow implicit conversion to non-observable status.
Definition at line 168 of file eventLog.hpp.
|
inline |
Allow implicit conversion to non-observable status.
Definition at line 164 of file eventLog.hpp.
|
delete |