#include <IUserCallbackMap.h>
◆ getCallback()
virtual std::optional<CallbackFunction> IUserCallbackMap::getCallback |
( |
const std::string & |
name | ) |
|
|
pure virtual |
Get an instance of a callback, if it exists.
- Parameters
-
name | Key under which the callback was registered |
- Returns
- The callback function if it exists.
Implemented in UserCallbackMap.
◆ getLength()
virtual uint32_t IUserCallbackMap::getLength |
( |
| ) |
|
|
pure virtual |
◆ getManifestAt()
◆ getNameAt()
virtual std::optional<std::string> IUserCallbackMap::getNameAt |
( |
uint32_t |
index | ) |
|
|
pure virtual |
◆ registerCallback() [1/2]
virtual bool IUserCallbackMap::registerCallback |
( |
std::string |
name, |
|
|
CallbackFunction |
callback |
|
) |
| |
|
pure virtual |
Register a callback
- Parameters
-
name | Key of the callback |
callback | Callback function |
- Returns
- True if an existing callback function was overwritten, false otherwise
Implemented in UserCallbackMap.
◆ registerCallback() [2/2]
Register a callback
- Parameters
-
name | Key of the callback |
callback | Callback function |
manifest | A list describing the callback's expected arguments name and type |
- Returns
- True if an existing callback function was overwritten, false otherwise
Implemented in UserCallbackMap.
The documentation for this class was generated from the following file: