SFlowNodeConfig config; config.setName("MyNode"); config.setInputLayout({{"input1", "float"}, {"input2", "float"}}); config.setOutputLayout({{"output1", "int"}, {"output2", "string"}});
SFlowNodeConfig config; // Assume that config has been populated with the settings for a node auto inputLayout = config.getInputLayout(); auto inputCount = inputLayout.size(); for (int i = 0; i < inputCount; i++) { auto connectorName = inputLayout[i].first; auto connectorType = inputLayout[i].second; qDebug() << "Input connector" << connectorName << "accepts values of type" << connectorType; }In this code, we create a node configuration object and assume that it has been populated with some settings. We retrieve the input connector layout and loop over each connector, printing out its name and accepted value type. The package library for SFlowNodeConfig is QFlow, a C++ library built on top of Qt for creating dataflow-based audio and MIDI processing applications.