|
Brenta Engine 1.2
|
Subsystem interface. More...
#include <subsystem.hpp>
Data Structures | |
| class | builder |
| Builder interface. More... | |
Public Types | |
| using | error = std::string |
Public Member Functions | |
| virtual std::expected< void, subsystem::error > | initialize ()=0 |
| virtual std::expected< void, subsystem::error > | terminate ()=0 |
| virtual std::string | name ()=0 |
| Returns the name of the sybsystem. | |
| virtual bool | is_initialized ()=0 |
| Returns true if the subsystem is initialized. | |
Subsystem interface.
A subsistem is a static singleton that can be initialized and terminated. The initialization settings should be passed via a builder class.
Definition at line 21 of file subsystem.hpp.
| using brenta::subsystem::error = std::string |
Definition at line 25 of file subsystem.hpp.
|
pure virtual |
Implemented in brenta::audio, brenta::input, and brenta::text.
|
pure virtual |
Returns true if the subsystem is initialized.
Implemented in brenta::audio, brenta::engine, brenta::gl, brenta::gui, brenta::input, brenta::logger, brenta::text, and brenta::window.
|
pure virtual |
Returns the name of the sybsystem.
Implemented in brenta::audio, brenta::engine, brenta::gl, brenta::gui, brenta::input, brenta::logger, brenta::text, and brenta::window.
|
pure virtual |
Implemented in brenta::audio, brenta::input, and brenta::text.