[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

961.0. "Dictionary routines" by DGOSW0::GUESDON () Fri Apr 26 1991 04:38

    I'm sorry: I've not understood the usage of the mcc_dict... routines,
    as described in the SRM.
    
    I would like to get the ID codes of the attributes that are stored in
    the CHAR Attribute partition of my entity. Is there a way to do this,
    and how... ?
    
    Thanks.
T.RTitleUserPersonal
Name
DateLines
961.1try this...TOOK::HAOFri Apr 26 1991 10:0723
    First off, you need to understand how the dictionary is structured in
    other to build the dictionary specs that are used by the mcc_dict_xx()
    routines.
    
    For your particular case, the dictionary spec you need to build is of
    the following hierarchy:
    
    	class			instance
    	-----			--------
    MCC_K_DICT_CLASS		<global entity>
    MCC_K_DICT_SUBCLASS 	<child entity>	<-- this level is repeated for
    					         as many child entities as you
    					         have.
    MCC_K_DICT_ATTR_PARTITION	MCC_K_PRT_CHAR
    MCC_K_DICT_DEFINITION	MCC_K_DD_ATTRIBUTE_LIST
    
    The above dictionary spec is built using the mcc_aes_create routine,
    and then passed into mcc_k_dict_get_def_info routine.  Note that the
    output structure will give you a count and an array of the attribute
    ID codes in the Char partition.
    
    Christine