2#ifndef _CONSOLIX_BASE_LOOP_COMPONENT_HPP_INCLUDED
3#define _CONSOLIX_BASE_LOOP_COMPONENT_HPP_INCLUDED
void shutdown(int signal) override final
Shuts down the component.
std::atomic< bool > m_is_init
Tracks whether the component is initialized.
virtual void on_shutdown(int signal)=0
Called when the application shuts down.
virtual void on_loop()=0
Called repeatedly during the application's main loop.
BaseLoopComponent()=default
Constructs a BaseLoopComponent.
bool initialize() override final
Initializes the component.
void process() override final
Executes the loop logic for the component.
virtual bool on_once()=0
Called once during component initialization.
virtual ~BaseLoopComponent()=default
Destroys the BaseLoopComponent.
bool is_initialized() const override final
Checks if the component has been initialized.
Interface for defining application components.
Interface for components supporting shutdown logic.
< Utility modules and helpers.