Stores data acquisition status and allows subscription to status changes.
More...
#include <eventLog.hpp>
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.
◆ Signal
◆ ObservableEventLog() [1/2]
| daq::ObservableEventLog::ObservableEventLog |
( |
| ) |
|
|
explicitdefault |
Construct a new object.
- Parameters
-
| id | Data acquisition identifier. |
◆ ObservableEventLog() [2/2]
◆ AddEvent()
Records that a file has been produced for this data acquisition.
- Parameters
-
| files | Files to add/record. |
- Postcondition
- Connected observers have been signalled.
Definition at line 56 of file eventLog.cpp.
◆ ConnectObserver()
template<class Observer >
| boost::signals2::connection daq::ObservableEventLog::ConnectObserver |
( |
Observer |
o | ) |
|
|
inline |
Connect observer that is invoked when state is modified.
- Parameters
-
| o | Observer callable invoked on status changes (state or file changes) Observer must be invocable with signature void(ObservableEvent const&). |
- Returns
- signal connection object that can be used to disconnect observer:
auto c = status.ConnectObserver([](ObservableEvent const& s){});
c.disconnect();
Definition at line 154 of file eventLog.hpp.
◆ EmplaceEvent()
template<class T , class... Args>
| void daq::ObservableEventLog::EmplaceEvent |
( |
Args &&... |
args | ) |
|
|
inline |
Like AddEvent but emplaces the specified event type.
Definition at line 134 of file eventLog.hpp.
◆ GetEventContainer()
| std::vector< EventLog::EventType > const & daq::ObservableEventLog::GetEventContainer |
( |
| ) |
const |
|
inlinenoexcept |
Allow implicit conversion to non-observable status.
Definition at line 172 of file eventLog.hpp.
◆ GetEventLog()
| EventLog const & daq::ObservableEventLog::GetEventLog |
( |
| ) |
const |
|
inlinenoexcept |
Allow implicit conversion to non-observable status.
Definition at line 168 of file eventLog.hpp.
◆ operator EventLog const &()
| daq::ObservableEventLog::operator EventLog const & |
( |
| ) |
|
|
inline |
Allow implicit conversion to non-observable status.
Definition at line 164 of file eventLog.hpp.
◆ operator=()
The documentation for this class was generated from the following files: