|
Brenta Engine 1.2
|
Engine class. More...
#include <engine.hpp>
Data Structures | |
| class | builder |
| Engine builder. More... | |
| class | manager |
| Automatically initialize and terminate engine with RAII. More... | |
Public Member Functions | |
| std::expected< void, subsystem::error > | initialize () override |
| std::expected< void, subsystem::error > | terminate () override |
| std::string | name () override |
| Returns the name of the sybsystem. | |
| bool | is_initialized () override |
| Returns true if the subsystem is initialized. | |
Public Member Functions inherited from brenta::subsystem | |
Static Public Member Functions | |
| static engine & | instance () |
| Get a static object instance. | |
| static engine::manager | managed () |
| static std::expected< void, std::string > | with (subsystem::builder &&builder) |
| Initialize a subsystem and add it to the managed subsystems (will be terminated with the others). | |
Static Public Attributes | |
| static const std::string | subsystem_name = "engine" |
Additional Inherited Members | |
Public Types inherited from brenta::subsystem | |
| using | error = std::string |
Engine class.
This class is used to initialize and terminate multiple subsystems. You can use the builder class to initialize the engine, as with any other subsystem.
Note: The subsystems will be initialized in the order as they are added and terminated in reverse, so make sure that they are ordered correctly if a subsystem depends on another one.
Definition at line 45 of file engine.hpp.
|
overridevirtual |
Implements brenta::subsystem.
Definition at line 24 of file engine.cpp.
|
static |
Get a static object instance.
Definition at line 75 of file engine.cpp.
|
overridevirtual |
Returns true if the subsystem is initialized.
Implements brenta::subsystem.
Definition at line 66 of file engine.cpp.
|
static |
Definition at line 81 of file engine.cpp.
|
overridevirtual |
Returns the name of the sybsystem.
Implements brenta::subsystem.
Definition at line 61 of file engine.cpp.
|
overridevirtual |
Implements brenta::subsystem.
Definition at line 41 of file engine.cpp.
|
static |
Initialize a subsystem and add it to the managed subsystems (will be terminated with the others).
Definition at line 87 of file engine.cpp.
|
static |
Definition at line 52 of file engine.hpp.