11#include <switchboard_core/Node.hpp>
12#include <switchboard_core/Parameter.hpp>
13#include <switchboard_core/SwitchboardCore.hpp>
20namespace switchboard {
34 AudioNode(
const uint numberOfInputs,
const uint numberOfOutputs);
67 Result<void>
setValue(
const std::string& key,
const std::any& value)
override;
68 Result<std::any>
getValue(
const std::string& key)
override;
69 Result<std::any>
callAction(
const std::string& actionName,
const std::map<std::string, std::any>& params)
override;
72 std::vector<std::unique_ptr<Parameter>> parameters;
void initParameters(const std::map< std::string, std::any > &config)
Initializes the node parameters from the given configuration values.
virtual std::vector< std::unique_ptr< Parameter > > & getParameters()
Gets the parameters of the audio node.
virtual ~AudioNode()=default
AudioNode virtual destructor.
Result< std::any > callAction(const std::string &actionName, const std::map< std::string, std::any > ¶ms) override
Calls an action on the object.
Result< std::any > getValue(const std::string &key) override
Gets a value from the object.
AudioNode(const uint numberOfInputs, const uint numberOfOutputs)
AudioNode constructor.
virtual Parameter * getParameter(const std::string &id)
Gets the parameter with the given name.
virtual std::string getDisplayName() const
Gets the display name of the audio node.
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.
Parameter class. Represents an adjustable config value in an audio node.
Definition Parameter.hpp:20