esa / CCSDS_MO_StubGenerator

Generates technology bindings for CCSDS MAL service specifications
Other
4 stars 9 forks source link

Issue#22: Enumeration to UOctet #24

Closed pabrabbin closed 6 years ago

pabrabbin commented 6 years ago

For Enumerations with less than 256 elements defined, an additional public method is now generated in the Java class.

public org.ccsds.moims.mo.mal.structures.UOctet getOrdinalUOctet() { return new org.ccsds.moims.mo.mal.structures.UOctet(ordinal.shortValue()); }

This is helpful when working with certain data structures in the M&C book which use the UOctet type to hold possible enumerations.

pabrabbin commented 6 years ago

https://github.com/esa/CCSDS_MO_StubGenerator/issues/22