Title: | DECmcc user notes file. Does not replace IPMT. |
Notice: | Use IPMT for problems. Newsletter location in note 6187 |
Moderator: | TAEC::BEROUD |
Created: | Mon Aug 21 1989 |
Last Modified: | Wed Jun 04 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 6497 |
Total number of notes: | 27359 |
Is it possible to read the values associated with enumerated data types other than getting the constructor ILV buffer and then decoding it? Is there a MCC_K_DD... definiton that will allow me to get the values associated with each enumerated data type string? I can read the strings that are stored in the dictionary but I would also like to get each value associated with the strings stored in the dictionary. For example, I have defined: TYPE Availability_status_enum = 9008 ( inTest = 0, failed = 1, powerOff = 2, offLine = 3, offDuty = 4, dependency = 5, degraded = 6, logfull = 7); I know how to read inTest, failed, etc. but how can I read the 0 for inTest, 1 for failed, etc.? What is the MCC_K_DD... value for this? Carl
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
1623.1 | you cannot have the text without having the code | TENERE::LAVILLAT | Thu Oct 10 1991 05:33 | 13 | |
> >I know how to read inTest, failed, etc. but how can I read the 0 for inTest, 1 >for failed, etc.? What is the MCC_K_DD... value for this? > If you can read the text then you got the code : you get the text in an MCC descriptor, the text in put in the a_pointer field, the code is simply set as value of the mcc_l_id field of the descriptor : if you get desc.mcc_a_pointer = "inTest" then desc.mcc_l_id = 0 and so on... Pierre. | |||||
1623.2 | constructor data type | TOOK::CALLANDER | MCC = My Constant Companion | Wed Oct 23 1991 20:01 | 7 |
To expand on .1 from a different angle. The code to string translation are stored using the mcc_k_dd_constructor_data_type definition in the dictionary. This definition is an ilv encoded definition and must be walked by the requester to determine the values stored in it. jill |