VCV Rack API v2
Loading...
Searching...
No Matches
rack::engine::Cable Struct Reference

#include <Cable.hpp>

Collaboration diagram for rack::engine::Cable:
[legend]

Public Member Functions

json_t * toJson ()
 
void fromJson (json_t *rootJ)
 

Static Public Member Functions

static PRIVATE void jsonStripIds (json_t *rootJ)
 

Public Attributes

int64_t id = -1
 Unique ID for referring to the cable in the engine.
 
ModuleinputModule = NULL
 
int inputId = -1
 
ModuleoutputModule = NULL
 
int outputId = -1
 

Member Function Documentation

◆ toJson()

json_t * rack::engine::Cable::toJson ( )

◆ fromJson()

void rack::engine::Cable::fromJson ( json_t * rootJ)

◆ jsonStripIds()

static PRIVATE void rack::engine::Cable::jsonStripIds ( json_t * rootJ)
static

Member Data Documentation

◆ id

int64_t rack::engine::Cable::id = -1

Unique ID for referring to the cable in the engine.

Between 0 and 2^53 since this is serialized with JSON. Assigned when added to the engine.

◆ inputModule

Module* rack::engine::Cable::inputModule = NULL

◆ inputId

int rack::engine::Cable::inputId = -1

◆ outputModule

Module* rack::engine::Cable::outputModule = NULL

◆ outputId

int rack::engine::Cable::outputId = -1

The documentation for this struct was generated from the following file: