Switchboard Extension SDK
Loading...
Searching...
No Matches
Node.hpp
1//
2// Created by Balazs Kiss on 2025. 02. 23..
3//
4
5#pragma once
6
7#include <switchboard/export.h>
8#include <switchboard_core/SwitchboardObject.hpp>
9
10#include <map>
11#include <any>
12
13namespace switchboard {
14
15class SWITCHBOARDSDK_EXPORT Node : public SwitchboardObject {
16public:
17
25
33 std::string getType() const;
34
40 unsigned int getNumberOfInputs() const;
41
47 unsigned int getNumberOfOutputs() const;
48
49 // MARK: Overridden methods
50
51 Result<SBAny> getValue(const std::string &key) override;
52 Result<SBAny> callAction(const std::string& actionName, const SBAnyMap& params) override;
53
54protected:
56 unsigned int numberOfInputs;
57
59 unsigned int numberOfOutputs;
60
62 std::string title;
63};
64
65}
unsigned int numberOfOutputs
The number of outputs (audio buses) for the node.
Definition Node.hpp:59
unsigned int numberOfInputs
The number of inputs (audio buses) for the node.
Definition Node.hpp:56
std::string getType() const
Gets the type of the node.
Result< SBAny > callAction(const std::string &actionName, const SBAnyMap &params) override
Calls an action on the object.
Node(uint numberOfInputs, uint numberOfOutputs)
Node constructor.
Result< SBAny > getValue(const std::string &key) override
Gets a value from the object.
unsigned int getNumberOfInputs() const
Gets the number of inputs for the node.
std::string title
The title of the node that can be displayed in the UI.
Definition Node.hpp:62
unsigned int getNumberOfOutputs() const
Gets the number of outputs for the node.
SwitchboardObject(const std::string &objectType)
SwitchboardObject constructor.