[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

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

1161.0. "mcc_dict_translate_name_code examples needed" by TENERE::HAYES (A European Telecomet ...) Tue Jun 18 1991 12:15

	Hello,


I have tried the mcc_dict_translate_name_code routine.
This routine is working for a global class, converting both directions.
However, I can't get it to work for other classes.
The problem is the AES class tree, I suppose.
I have tried:

1- CLASS ID -> trans -> CLASS name: OK
2- CLASS name -> CLASS ID: OK
3- CLASS ID / SUBCLASS ID -> SUBCLASS name: Did not work
4- CLASS ID / SUBCLASS name -> SUBCLASS ID: Did not work
5- CLASS name / SUBCLASS name -> SUBCLASS ID: Did not work

1) is 4- possible ?

2) Could someone give me some hint/ pseudo code to have it work for
   3- and 5-, and maybe 4- if it possible?

	Best Regards


		Catherine

T.RTitleUserPersonal
Name
DateLines
1161.1It should workTOOK::GUERTINI do this for a living -- reallyTue Jul 09 1991 09:5030
    From the information you have provided, it appears that you are doing
    everything correctly.  I'm sure the routine works as documented in the
    SRM (although the documentation is sparse).  The Name is not the same
    as the Presentation Name.  The Name is the same name that appears in
    the DAP output (Upper-cased with no spaces).  The datatypes are
    required to match exactly.  Names are LATIN1STRINGs, and Codes are
    UNSIGNED32.  The instance descriptor gets filled in with the
    String or Number of the resulting translation.  For subclass, make sure
    you have the correct Dictionary Object Class specified ...
    
    Dictionary AES:
    
        +-------------------------------------------+
        | Class: MCC_K_DICT_CLASS                   |
        |        +---------------------------------+|
        |  Inst: | mcc_l_dt: MCC_K_DT_LATIN1STRING ||
        |        | mcc_a_pointer: "THECLASSNAME"   ||
        |        +---------------------------------+|
        +-------------------------------------------+
              +----------------------------------------------+
      ------> | Class: MCC_K_DICT_SUBCLASS                   |
              |        +------------------------------------+|
              |  Inst: | mcc_l_dt: MCC_K_DT_UNSIGNED32      ||
              |        | mcc_a_pointer: &unsigned32variable ||
              |        +------------------------------------+|
              +----------------------------------------------+
    
    Also, what is the error message you are getting back?
    
    -Matt.
1161.2Looking for dictionary code examples.STAR::ALLISONWed Jul 17 1991 15:2111
    Hi,
    
    Can anybody give me any pointers to sources that read the dictionary to
    extract all of the attibute names and datatypes.  I'm sure something
    like this has already been done and I'm wondering if there are some
    routines available.  
    
    Please send mail to STAR::ALLISON.  
    
    Thanks for any help,
    Gary