SwitchboardObject interface.
More...
#include <SwitchboardObject.hpp>
|
| SwitchboardObject (const std::string &objectType) |
| ~SwitchboardObject () override=default |
| SwitchboardObject destructor.
|
virtual Result< void > | setValue (const std::string &key, const std::any &value) |
| Sets a value on the object.
|
virtual Result< std::any > | getValue (const std::string &key) |
| Gets a value from the object.
|
virtual Result< std::any > | callAction (const std::string &actionName, const std::map< std::string, std::any > ¶ms) |
| Calls an action on the object.
|
| EventEmitter () |
| Constructor for the EventEmitter class.
|
virtual | ~EventEmitter () |
| Destructor for the EventEmitter class.
|
unsigned int | addEventListener (const std::string &eventName, EventCallback callback) |
| Adds a new event listener to the object.
|
bool | removeEventListener (unsigned int listenerID) |
| Removes an event listener from the object.
|
|
void | emitEvent (const std::string &eventName, const EventData &data) |
| Emits an event.
|
◆ callAction()
virtual Result< std::any > switchboard::SwitchboardObject::callAction |
( |
const std::string & | actionName, |
|
|
const std::map< std::string, std::any > & | params ) |
|
virtual |
◆ getValue()
virtual Result< std::any > switchboard::SwitchboardObject::getValue |
( |
const std::string & | key | ) |
|
|
virtual |
◆ setValue()
virtual Result< void > switchboard::SwitchboardObject::setValue |
( |
const std::string & | key, |
|
|
const std::any & | value ) |
|
virtual |
The documentation for this class was generated from the following file: