base class for RouDi daemons
More...
#include <iceoryx_posh/roudi/roudi_app.hpp>
|
| RouDiApp (const config::CmdLineArgs_t &cmdLineArgs, const RouDiConfig_t &config) noexcept |
| C'tor with command line parser, which has already parsed the command line parameters.
|
|
virtual uint8_t | run () noexcept=0 |
| interface to start the execution of the RouDi daemon
|
|
|
static void | roudiSigHandler (int32_t signal) noexcept |
| Method passed to the OS signal handler.
|
|
|
void | registerSigHandler () noexcept |
| Tells the OS which signals shall be hooked.
|
|
bool | waitForSignal () noexcept |
| waits for the next signal to RouDi daemon
|
|
|
iox::log::LogLevel | m_logLevel {iox::log::LogLevel::kWarn} |
|
roudi::MonitoringMode | m_monitoringMode {roudi::MonitoringMode::ON} |
|
bool | m_run {true} |
|
RouDiConfig_t | m_config |
|
posix::Semaphore | m_semaphore |
|
version::CompatibilityCheckLevel | m_compatibilityCheckLevel {version::CompatibilityCheckLevel::PATCH} |
|
units::Duration | m_processKillDelay {roudi::PROCESS_DEFAULT_KILL_DELAY} |
|
base class for RouDi daemons
◆ RouDiApp()
C'tor with command line parser, which has already parsed the command line parameters.
- Parameters
-
[in] | cmdLineParser | reference to a command line parser object |
[in] | config | the configuration to use |
◆ run()
virtual uint8_t iox::roudi::RouDiApp::run |
( |
| ) |
|
|
pure virtualnoexcept |
interface to start the execution of the RouDi daemon
- Returns
- Return code for programm execution
Implemented in iox::roudi::IceOryxRouDiApp.
◆ m_semaphore
posix::Semaphore iox::roudi::RouDiApp::m_semaphore |
|
protected |
Initial value:=
std::move(posix::Semaphore::create(posix::CreateUnnamedSingleProcessSemaphore, 0u)
.or_else([](posix::SemaphoreError&) {
errorHandler(Error::kROUDI_APP__FAILED_TO_CREATE_SEMAPHORE, nullptr, ErrorLevel::FATAL);
})
.value())
The documentation for this class was generated from the following file: