|
Engine²
Open-source game engine written in C++.
|
Wrapper around a system that allows to add an error callback to it. More...
#include <WrappedSystem.hpp>
Public Member Functions | |
| WrappedSystem (TSystem system, TErrorCallback errorCallback) | |
| Constructor for WrappedSystem. | |
| ~WrappedSystem () override=default | |
| Destructor for WrappedSystem. | |
| void | operator() (Engine::Core &core) const override |
| Calls the system. | |
| FunctionUtils::FunctionID | GetID () const override |
| Returns the unique ID of the system. | |
| std::string | GetName () const override |
| Get the name of the system. | |
| Public Member Functions inherited from FunctionUtils::BaseFunction< void, Core & > | |
| virtual | ~BaseFunction ()=default |
| virtual void | operator() (TArgs... args) const=0 |
| Pure virtual function call operator to be implemented by derived functions. | |
| void | Call (TArgs... args) const |
| External Call function. | |
Static Public Member Functions | |
| static FunctionUtils::FunctionID | GetCallableID (const TSystem &callable) |
| Get the ID of the system. | |
| static std::string | GetCallableName (const TSystem &callable) |
| Get the name of the system. | |
Private Attributes | |
| TSystem | _system |
| The wrapped system. | |
| TErrorCallback | _errorCallback |
| The error callback to be called if the system throws an exception. | |
| FunctionUtils::FunctionID | _id = 0 |
| Unique ID for the system. | |
| std::string | _name |
| Name of the system. | |
Wrapper around a system that allows to add an error callback to it.
| TSystem | The type of the system to wrap. |
| TErrorCallback | The type of the error callback to wrap. |
|
inlineexplicit |
Constructor for WrappedSystem.
| system | The system to be wrapped. |
| errorCallback | The error callback to be called if the system throws an exception. |
|
overridedefault |
Destructor for WrappedSystem.
|
inlinestatic |
Get the ID of the system.
| callable | The system. |
| TSystem | The type of the system. |
|
inlinestatic |
Get the name of the system.
| callable | The system. |
| TSystem | The type of the system. |
|
inlineoverridevirtual |
Returns the unique ID of the system.
Implements FunctionUtils::BaseFunction< void, Core & >.
|
inlineoverridevirtual |
Get the name of the system.
Implements FunctionUtils::BaseFunction< void, Core & >.
|
inlineoverride |
Calls the system.
| core | The core to pass to the system. |
|
private |
The error callback to be called if the system throws an exception.
|
private |
Unique ID for the system.
|
private |
Name of the system.
|
private |
The wrapped system.