Skip to content

Connector and Protocol definitions load-from-JSON #21

@connorjak

Description

@connorjak

At the moment, Connectatron uses C++ enums and the magic_enum library for automated operations like stringizing all enum names.

This has the following limitations:

  • Must follow C++ variable name character restrictions
    • Partially solved by underscore-encoding
  • No way to add more connectors and protocols
  • Difficult to add associative information like Category in a very flexible way
    • Currently implemented categories as ranges of the enumerations, so any connector or protocol cannot exist in multiple categories

Benefits that should be preserved:

  • Connectors and protocols are only stored by string name
    • Changes to enum-order and metadata like category, etc do not disrupt the validity of the saved string
  • Exactly one place to edit information about a single connector/protocol, no matter how many aliases that has
  • Software only allows you to apply/change valid connectors/protocols

Metadata

Metadata

Assignees

No one assigned

    Labels

    StandardsChange or addition to the connectors or protocolsfeatureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions