|
RTC Toolkit 5.1.0
|
Base class defining common interface for all DDT forwarders. More...
#include <ddtForwarder.hpp>
Public Types | |
| enum class | State : uint8_t { STOPPED , STARTING , IDLE , RUNNING , ERROR } |
| States a forwarder unit can be in. More... | |
| using | ServiceContainer = rtctk::componentFramework::ServiceContainer |
| using | OldbIf = rtctk::componentFramework::OldbIf |
Public Member Functions | |
| DdtForwarder (const std::string &comp_id, const std::string &fwd_type, const std::string &fwd_id, ServiceContainer &services) | |
| virtual | ~DdtForwarder ()=default |
| std::string | GetId () |
| Get identifier of the forwarder unit. | |
| State | GetState () |
| Get the state of the forwarder unit. | |
| virtual void | Start ()=0 |
| Start the processing thread of the forwarder unit. | |
| virtual void | Run ()=0 |
| Start publishing DDT streams. | |
| virtual void | Idle ()=0 |
| Stop publishing DDT streams. | |
| virtual void | Stop ()=0 |
| Stop the processing thread of the forwarder unit. | |
| virtual void | Recover ()=0 |
| Stop the processing thread of the forwarder unit and clear errors. | |
| virtual void | Update ()=0 |
| Reload dynamic configuration of the forwarder unit. | |
| virtual void | CheckErrors ()=0 |
| Check for Errors, will rethrow errors thrown in the forwarder. | |
Protected Member Functions | |
| virtual void | SetState (State state) |
| void | AssertState (const std::set< State > &states) |
Protected Attributes | |
| const std::map< State, std::string > | m_state_text |
| log4cplus::Logger & | m_logger |
Base class defining common interface for all DDT forwarders.
| using rtctk::ddtServer::DdtForwarder::ServiceContainer = rtctk::componentFramework::ServiceContainer |
|
inline |
|
virtualdefault |
|
inlineprotected |
Check for Errors, will rethrow errors thrown in the forwarder.
Implemented in rtctk::ddtServer::IpcqDdtForwarder< FwdInfo, ReaderType >.
|
inline |
Get identifier of the forwarder unit.
|
inline |
Get the state of the forwarder unit.
Stop publishing DDT streams.
Implemented in rtctk::ddtServer::IpcqDdtForwarder< FwdInfo, ReaderType >.
Stop the processing thread of the forwarder unit and clear errors.
Implemented in rtctk::ddtServer::IpcqDdtForwarder< FwdInfo, ReaderType >.
Start publishing DDT streams.
Implemented in rtctk::ddtServer::IpcqDdtForwarder< FwdInfo, ReaderType >.
Start the processing thread of the forwarder unit.
Implemented in rtctk::ddtServer::IpcqDdtForwarder< FwdInfo, ReaderType >.
Stop the processing thread of the forwarder unit.
Implemented in rtctk::ddtServer::IpcqDdtForwarder< FwdInfo, ReaderType >.
Reload dynamic configuration of the forwarder unit.
Implemented in rtctk::ddtServer::IpcqDdtForwarder< FwdInfo, ReaderType >.
|
protected |