Consolix
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
8namespace consolix {
9
18 friend class AppComponentManager;
19
20 public:
22 virtual ~IShutdownable() = default;
23
24 protected:
30 virtual void shutdown(int signal) = 0;
31 };
32
33} // namespace consolix
34
35#endif // _CONSOLIX_ISHUTDOWNABLE_HPP_INCLUDED
Interface for components supporting shutdown logic.
virtual ~IShutdownable()=default
Virtual destructor for polymorphic use.
virtual void shutdown(int signal)=0
Handles shutdown logic for the component.
friend class AppComponentManager
Grants access to the AppComponentManager class.
< Utility modules and helpers.