Skip to content

API: Consider using explicit enums for parameters #72

@PMeira

Description

@PMeira

Today the C header is successfully processed for the Julia (dss-extensions/OpenDSSDirect.jl#58), MATLAB (built-in) and Python (through pycparser/CFFI) interfaces. All of them seem to handle enumeration types without issues, automatically. The .NET interface can handle it with some changes (use MarshalAs), and JavaCPP (planned for a future JVM release) also supports enums (both plain and C++ typed-enums).

This complements the API part of #45 (which also proposes using scoped enums throughout the internal code too).

To do:

  • Update some functions (in Pascal) and header (C) to use enums
  • Test with Julia
  • Test with MATLAB
  • Test with Python
  • If successful, update the rest of the functions

This should be started right after the new base for 0.11.x code is merged, preferably in a dedicated branch as it affects mainly the API code. Some enums can be added to the internal code too, if missing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions