Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: Consider using explicit enums for parameters #72

Open
2 of 5 tasks
PMeira opened this issue Dec 7, 2019 · 0 comments
Open
2 of 5 tasks

API: Consider using explicit enums for parameters #72

PMeira opened this issue Dec 7, 2019 · 0 comments
Milestone

Comments

@PMeira
Copy link
Member

PMeira commented Dec 7, 2019

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.

@PMeira PMeira added this to the 0.11 milestone Dec 7, 2019
@PMeira PMeira modified the milestones: 0.12, 0.13 May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant