Consolix
Toggle main menu visibility
Loading...
Searching...
No Matches
IAppComponent.hpp
Go to the documentation of this file.
1
#pragma once
2
#ifndef _CONSOLIX_IAPPLICATION_COMPONENT_HPP_INCLUDED
3
#define _CONSOLIX_IAPPLICATION_COMPONENT_HPP_INCLUDED
4
7
8
namespace
consolix
{
9
19
class
IAppComponent
{
20
friend
class
AppComponentManager
;
21
public
:
23
virtual
~IAppComponent
() =
default
;
24
25
protected
:
26
30
virtual
bool
initialize
() = 0;
31
35
virtual
bool
is_initialized
()
const
= 0;
36
39
virtual
void
process
() = 0;
40
41
};
// IAppComponent
42
43
};
// namespace consolix
44
45
#endif
// _CONSOLIX_IAPPLICATION_COMPONENT_HPP_INCLUDED
consolix::IAppComponent
Interface for defining application components.
Definition
IAppComponent.hpp:19
consolix::IAppComponent::initialize
virtual bool initialize()=0
Initializes the component. This method is called once before the component is processed.
consolix::IAppComponent::process
virtual void process()=0
Executes the component's main logic. Called repeatedly during the application's main execution loop.
consolix::IAppComponent::~IAppComponent
virtual ~IAppComponent()=default
Virtual destructor for polymorphic usage.
consolix::IAppComponent::AppComponentManager
friend class AppComponentManager
Grants access to AppComponentManager.
Definition
IAppComponent.hpp:20
consolix::IAppComponent::is_initialized
virtual bool is_initialized() const =0
Checks if the component is initialized. Used to verify if the component is ready to be executed.
consolix
< Utility modules and helpers.
Definition
BaseLoopComponent.hpp:13
include
consolix
interfaces
IAppComponent.hpp
Generated by
1.17.0