Consolix
Toggle main menu visibility
Loading...
Searching...
No Matches
IShutdownable.hpp
Go to the documentation of this file.
1
#pragma once
2
#ifndef _CONSOLIX_ISHUTDOWNABLE_HPP_INCLUDED
3
#define _CONSOLIX_ISHUTDOWNABLE_HPP_INCLUDED
4
7
8
namespace
consolix
{
9
19
class
IShutdownable
{
20
friend
class
AppComponentManager
;
21
22
public
:
24
virtual
~IShutdownable
() =
default
;
25
26
protected
:
34
virtual
void
shutdown
(
int
signal) = 0;
35
};
36
37
}
// namespace consolix
38
39
#endif
// _CONSOLIX_ISHUTDOWNABLE_HPP_INCLUDED
consolix::IShutdownable
Interface for components supporting shutdown logic.
Definition
IShutdownable.hpp:19
consolix::IShutdownable::~IShutdownable
virtual ~IShutdownable()=default
Virtual destructor for polymorphic use.
consolix::IShutdownable::shutdown
virtual void shutdown(int signal)=0
Handles shutdown logic for the component.
consolix::IShutdownable::AppComponentManager
friend class AppComponentManager
Grants access to the AppComponentManager class.
Definition
IShutdownable.hpp:20
consolix
< Utility modules and helpers.
Definition
BaseLoopComponent.hpp:13
include
consolix
interfaces
IShutdownable.hpp
Generated by
1.17.0