You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
573B

  1. #pragma once
  2. #include <common.hpp>
  3. #include <engine/Port.hpp>
  4. namespace rack {
  5. namespace engine {
  6. struct PortInfo {
  7. Module* module = NULL;
  8. Port::Type type;
  9. int portId;
  10. /** The name of the port, using sentence capitalization.
  11. e.g. "Sine", "Pitch input", "Mode CV"
  12. */
  13. std::string name;
  14. /** An optional one-sentence description of the parameter. */
  15. std::string description;
  16. virtual ~PortInfo() {}
  17. virtual std::string getName() {
  18. return name;
  19. }
  20. virtual std::string getDescription() {
  21. return description;
  22. }
  23. };
  24. } // namespace engine
  25. } // namespace rack