16 #ifndef IOX_POSH_ROUDI_ROUDI_APP_HPP
17 #define IOX_POSH_ROUDI_ROUDI_APP_HPP
19 #include "iceoryx_posh/iceoryx_posh_config.hpp"
20 #include "iceoryx_posh/mepoo/mepoo_config.hpp"
21 #include "iceoryx_posh/roudi/cmd_line_args.hpp"
22 #include "iceoryx_utils/log/logcommon.hpp"
23 #include "iceoryx_utils/posix_wrapper/semaphore.hpp"
48 virtual uint8_t
run() noexcept = 0;
57 iox::log::LogLevel m_logLevel{iox::log::LogLevel::kWarn};
60 RouDiConfig_t m_config;
62 posix::Semaphore m_semaphore =
63 std::move(posix::Semaphore::create(posix::CreateUnnamedSingleProcessSemaphore, 0u)
64 .or_else([](posix::SemaphoreError&) {
65 errorHandler(Error::kROUDI_APP__FAILED_TO_CREATE_SEMAPHORE,
nullptr, ErrorLevel::FATAL);
68 version::CompatibilityCheckLevel m_compatibilityCheckLevel{version::CompatibilityCheckLevel::PATCH};
69 units::Duration m_processKillDelay{roudi::PROCESS_DEFAULT_KILL_DELAY};
72 bool checkAndOptimizeConfig(
const RouDiConfig_t& config) noexcept;
base class for RouDi daemons
Definition: roudi_app.hpp:34
void registerSigHandler() noexcept
Tells the OS which signals shall be hooked.
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
bool waitForSignal() const noexcept
waits for the next signal to RouDi daemon
static void roudiSigHandler(int32_t signal) noexcept
Method passed to the OS signal handler.
MonitoringMode
Controls process alive monitoring. Upon timeout, a monitored process is removed and its resources are...
Definition: iceoryx_posh_types.hpp:221
Definition: service_description.hpp:29
Definition: cmd_line_args.hpp:30