LASP 1.0
Library for Acoustic Signal Processing
|
#include <lasp_indatahandler.h>
Public Member Functions | |
~InDataHandler () | |
InDataHandler (SmgrHandle mgr, InCallbackType cb, InResetType resetfcn) | |
When constructed, the handler is added to the stream manager, which will call the handlers's inCallback() until stop() is called. | |
void | start () |
Adds the current InDataHandler to the list of handlers in the StreamMgr. After this happens, the reset() method stored in this object is called back. When the stream is running, right after this, inCallback() is called with DaqData. | |
void | stop () |
Removes the currend InDataHandler from the list of handlers in the StreamMgr. From that point on, the object can be safely destroyed. Not calling stop() before destruction of this object is considered a BUG. I.e. a class which uses an InDataHandler should always call stop() in its destructor. | |
void | checkRightThread () const |
Public Attributes | |
const InCallbackType | inCallback |
const InResetType | reset |
Protected Attributes | |
std::weak_ptr< StreamMgr > | _mgr |
Definition at line 27 of file lasp_indatahandler.h.
InDataHandler::~InDataHandler | ( | ) |
Definition at line 41 of file lasp_indatahandler.cpp.
InDataHandler::InDataHandler | ( | SmgrHandle | mgr, |
InCallbackType | cb, | ||
InResetType | resetfcn | ||
) |
When constructed, the handler is added to the stream manager, which will call the handlers's inCallback() until stop() is called.
mgr | Stream manager. |
cb | The callback that is stored, and called on new DAQ data |
resetfcn | The callback that is stored, and called when the DAQ changes state. |
Definition at line 7 of file lasp_indatahandler.cpp.
|
inline |
Definition at line 76 of file lasp_indatahandler.h.
void InDataHandler::start | ( | ) |
Adds the current InDataHandler to the list of handlers in the StreamMgr. After this happens, the reset() method stored in this object is called back. When the stream is running, right after this, inCallback() is called with DaqData.
Definition at line 20 of file lasp_indatahandler.cpp.
void InDataHandler::stop | ( | ) |
Removes the currend InDataHandler from the list of handlers in the StreamMgr. From that point on, the object can be safely destroyed. Not calling stop() before destruction of this object is considered a BUG. I.e. a class which uses an InDataHandler should always call stop() in its destructor.
Definition at line 30 of file lasp_indatahandler.cpp.
|
protected |
Definition at line 30 of file lasp_indatahandler.h.
const InCallbackType InDataHandler::inCallback |
Definition at line 40 of file lasp_indatahandler.h.
const InResetType InDataHandler::reset |
Definition at line 41 of file lasp_indatahandler.h.