Skip to content

Provide [enumeration name]AsString for all enumerations #1438

Description

@hsorby

We have some [enumeration name]AsString static methods but not all.

I have found these enumerations to have a conversion function:

  • CellmlElementType —> cellmlElementTypeAsString
  • AnalyserEquation::Type —> typeAsString
  • AnalyserEquationAst::Type —> typeAsString
  • AnalyserModel::Type —> typeAsString
  • AnalyserVariable::Type —> typeAsString
  • GeneratorProfile::Profile —> profileAsString

I have not found a public static conversion function for these enumerations:

  • Issue::Level
  • Issue::ReferenceRule
  • Units::Prefix
  • Units::StandardUnit
  • Variable::InterfaceType

I think this is all of the enumerations available throught the public API.

This issue is to provide the static conversion functions for all the enumerations that cannot currently be converted to string.

This would be good for completeness and consistency more than anything else.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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