VCV Rack API v2
Loading...
Searching...
No Matches
PortInfo.hpp
Go to the documentation of this file.
1#pragma once
2#include <common.hpp>
3#include <engine/Port.hpp>
4
5
6namespace rack {
7namespace engine {
8
9
10struct Module;
11
12
13struct PortInfo {
14 Module* module = NULL;
16 int portId = -1;
17
24 std::string name;
25
27 std::string description;
28
29 virtual ~PortInfo() {}
30 virtual std::string getName();
32 std::string getFullName();
33 virtual std::string getDescription();
34};
35
36
37} // namespace engine
38} // namespace rack
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
DSP processor instance for your module.
Definition Module.hpp:29
Definition PortInfo.hpp:13
std::string name
The name of the port, using sentence capitalization.
Definition PortInfo.hpp:24
virtual ~PortInfo()
Definition PortInfo.hpp:29
std::string description
An optional one-sentence description of the parameter.
Definition PortInfo.hpp:27
virtual std::string getDescription()
std::string getFullName()
Returns name with "input" or "output" appended.
virtual std::string getName()
Port::Type type
Definition PortInfo.hpp:15
int portId
Definition PortInfo.hpp:16
Type
Definition Port.hpp:37
@ INPUT
Definition Port.hpp:38