ifw-daq
2.1.0-pre1
IFW Data Acquisition modules
|
Simple class that holds the source and associated state. More...
#include <source.hpp>
Public Types | |
using | StateSignal = boost::signals2::signal< void(State, bool)> |
Public Member Functions | |
Source (T &&s) | |
template<class Subscriber > | |
boost::signals2::connection | ConnectStateListener (Subscriber subscriber) |
Connect subscriber that is invoked on state changes. More... | |
void | SetState (State state, std::optional< bool > error_flag={}) |
void | ClearErrorFlag () |
void | SetErrorFlag () |
bool | GetErrorFlag () const |
State | GetState () const |
T & | GetSource () |
T const & | GetSource () const |
Protected Attributes | |
T | m_source |
State | m_state = State::NotStarted |
bool | m_error_flag = false |
StateSignal | m_state_signal |
Friends | |
std::ostream & | operator<< (std::ostream &os, Source< T > const &s) |
Simple class that holds the source and associated state.
Definition at line 29 of file source.hpp.
using daq::Source< T >::StateSignal = boost::signals2::signal<void(State, bool)> |
Definition at line 30 of file source.hpp.
|
inline |
Definition at line 32 of file source.hpp.
|
inline |
Definition at line 59 of file source.hpp.
|
inline |
Connect subscriber
that is invoked on state changes.
Type requirements of subscriber
: Signature void(State, bool)
Definition at line 47 of file source.hpp.
|
inline |
Definition at line 69 of file source.hpp.
|
inline |
Definition at line 76 of file source.hpp.
|
inline |
Definition at line 80 of file source.hpp.
|
inline |
Definition at line 72 of file source.hpp.
|
inline |
Definition at line 64 of file source.hpp.
|
inline |
Definition at line 51 of file source.hpp.
|
friend |
Definition at line 34 of file source.hpp.
|
protected |
Definition at line 87 of file source.hpp.
|
protected |
Definition at line 85 of file source.hpp.
|
protected |
Definition at line 86 of file source.hpp.
|
protected |
Definition at line 88 of file source.hpp.