Is there a way to description for enumerated fields ?

I'm using ETA C API in Linux. Is there a way to get a description of enumerated fields using the API ?

For example, the following lines were taken from enumtype.def file that came in the SDK. Is there a way to get the description in column 3 (MEANING) or something similar using the ETA API ?

!
! ACRONYM FID
! ------- ---
!
LOTSZUNITS 54
!
! VALUE DISPLAY MEANING
! ----- ------- -------
0 " " Not allocated
1 " AUD " Australian dollar
2 " GBP " British pound
3 "GBP/P" British pounds per point
4 " CAD " Canadian dollar

Best Answer

Answers

  • Hi @RAJ,

    I have not tried this but looked into it a little deeper. Reviewing tutorial 4 within the ETA API, I noticed the data structure does in fact provide a way to retrieve column 3 (MEANING). Using the source code for this tutorial, I modified it to see if the data was available, i.e.

    image

    However, I didn't see any values coming through, i.e. the 'meaning' parameter is always null.

    The dictionary parsing does offer the ability to control how much information to decode, however, the setting for this tutorial is set to verbose, i.e.

    image

    which is the most detailed level.

    The documentation within the code structure does mention that the meaning field is: "This information is typically optional and not displayed.", so it may be the case this was a design decision not to parse it.

    It might be worthwhile to raise this question within the source code tree for Elektron.