Skip to content

Suggestion: register custom node without static ports list #501

@kubakaminski

Description

@kubakaminski

Could you provide a possibility to register a custom node (using registerNodeType method) with additional arguments and without static ports list? As far as i understand it is not possible now:
Here you can provide a list, but without arguments

  template <typename T>
  void registerNodeType(const std::string& ID, PortsList ports)
  {
    ...

    registerBuilder(CreateManifest<T>(ID, ports), CreateBuilder<T>());
  }

But here you can provide additional arguments but without a list

     */
  template <typename T, typename... ExtraArgs>
  void registerNodeType(const std::string& ID, ExtraArgs... args)
  {
    ...

    registerBuilder(CreateManifest<T>(ID), CreateBuilder<T>(args...));
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions