7#include "SwitchboardObject.hpp"
12namespace switchboard {
14class Node :
public SwitchboardObject {
23 Node(
const uint numberOfInputs,
const uint numberOfOutputs);
51 Result<std::any>
getValue(
const std::string &key)
override;
52 Result<void>
setValue(
const std::string &key,
const std::any &value)
override;
53 Result<std::any>
callAction(
const std::string& actionName,
const std::map<std::string, std::any>& params)
override;
57 unsigned int numberOfInputs;
58 unsigned int numberOfOutputs;
Result< std::any > callAction(const std::string &actionName, const std::map< std::string, std::any > ¶ms) override
Calls an action on the object.
Result< void > setValue(const std::string &key, const std::any &value) override
Sets a value on the object.
Node(const uint numberOfInputs, const uint numberOfOutputs)
Node constructor.
Result< std::any > getValue(const std::string &key) override
Gets a value from the object.
std::string name
The name of the node.
Definition Node.hpp:26
const std::string & getType() const
Gets the type of the node.
unsigned int getNumberOfInputs() const
Gets the number of inputs for the node.
unsigned int getNumberOfOutputs() const
Gets the number of outputs for the node.