17#ifndef IOX_POSH_ROUDI_ROUDI_APP_HPP
18#define IOX_POSH_ROUDI_ROUDI_APP_HPP
20#include "iceoryx_hoofs/log/logcommon.hpp"
21#include "iceoryx_hoofs/posix_wrapper/semaphore.hpp"
22#include "iceoryx_posh/iceoryx_posh_config.hpp"
23#include "iceoryx_posh/mepoo/mepoo_config.hpp"
24#include "iceoryx_posh/roudi/cmd_line_args.hpp"
49 virtual uint8_t
run() noexcept = 0;
58 iox::log::LogLevel m_logLevel{iox::log::LogLevel::kWarn};
61 RouDiConfig_t m_config;
63 posix::Semaphore m_semaphore =
64 std::move(posix::Semaphore::create(posix::CreateUnnamedSingleProcessSemaphore, 0u)
65 .or_else([](posix::SemaphoreError&) {
66 errorHandler(Error::kROUDI_APP__FAILED_TO_CREATE_SEMAPHORE,
nullptr, ErrorLevel::FATAL);
69 version::CompatibilityCheckLevel m_compatibilityCheckLevel{version::CompatibilityCheckLevel::PATCH};
70 units::Duration m_processKillDelay{roudi::PROCESS_DEFAULT_KILL_DELAY};
73 bool checkAndOptimizeConfig(
const RouDiConfig_t& config)
noexcept;
base class for RouDi daemons
Definition roudi_app.hpp:35
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.
bool waitForSignal() noexcept
waits for the next signal to RouDi daemon
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.
MonitoringMode
Controls process alive monitoring. Upon timeout, a monitored process is removed and its resources are...
Definition iceoryx_posh_types.hpp:243
Definition cmd_line_args.hpp:30