void CFileNode::configure(CNodeConfig &config) { // Add parameters config.addFilename("input_file", "Input File", "Path of the file to read from disk."); config.addBool("binary", "Binary format", "Parse the file contents as binary data.", true); config.setCategory("Input"); // Add inputs and outputs config.addOutput("out", "file"); }
void CPythonNode::configure(CNodeConfig &config) { config.setDescription("Run Python scripts as nodes."); config.setCategory("Script"); // Add parameters config.addFilename("input_script", "Python Script", "Python script to execute."); // Add the gates. config.addInput("in_table", "table"); config.addInput("in_flow", "tcpstreams"); config.addOutput("out", "table"); }