Switchboard Extension SDK
Loading...
Searching...
No Matches
Engine.hpp
1#pragma once
2
3#include "SwitchboardObject.hpp"
4
5#include <map>
6#include <any>
7#include <string>
8
9namespace switchboard {
10
11class Engine : public SwitchboardObject {
12public:
13 Engine();
14
15 virtual ~Engine() = default;
16
17 // MARK: Overridden methods
18
19 Result<std::any> getValue(const std::string& key) override;
20 Result<void> setValue(const std::string& key, const std::any& value) override;
21 Result<std::any> callAction(const std::string& actionName, const std::map<std::string, std::any>& params) override;
22
23private:
24 std::string type;
25};
26
27}
Result< std::any > getValue(const std::string &key) override
Gets a value from the object.
Result< void > setValue(const std::string &key, const std::any &value) override
Sets a value on the object.
Result< std::any > callAction(const std::string &actionName, const std::map< std::string, std::any > &params) override
Calls an action on the object.