[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

2275.0. "Can DNS routines determine if child entities exist?" by TAEC::SILVA (Carl Silva - Telecom Eng - DTN 828-5339) Wed Feb 05 1992 15:30

	Is there a way to read the DNS to determine if an object instance has
child objects associated with it?  I know this is possible in the MIR
(mcc_mir_get_subclasses) but I need to be able to do this with the DNS routines
(or some other mechanism) since I do not use the MIR.

	Any help would be greatly appreciated!

	Carl
T.RTitleUserPersonal
Name
DateLines
2275.1Can be simulated...TOOK::JESURAJThu Feb 06 1992 12:2514
    Right now, there is no such facility in MCC_DNS routines. But it can be 
    simulated using a dictionary call (mcc_dict_get_sub_pairs) which gives
    the class codes for the child entities, and then looping with those
    class codes and calling mcc_dns_get_identifiers. (Make sure that the
    child entity instance is wild carded when calling
    mcc_dns_get_identifiers.).
    
    In fact, this will be solved  if mcc_dns_get_identifiers support CLASS
    wild cards, which may be done in future....
    
    Jesuraj
    
    
    
2275.2Yah but...TAEC::SILVACarl Silva - Telecom Eng - DTN 828-5339Thu Feb 06 1992 13:4521
	RE: .1,

>    Right now, there is no such facility in MCC_DNS routines. But it can be 
>    simulated using a dictionary call (mcc_dict_get_sub_pairs) which gives
>    the class codes for the child entities, and then looping with those
>    class codes and calling mcc_dns_get_identifiers. (Make sure that the
>    child entity instance is wild carded when calling
>    mcc_dns_get_identifiers.).

	So in other words, I would have to simulate a wildcard myself by
getting all the sub-classes of my global class and then iterating throuhg this
list, calling mcc_dns_get_identifiers?

>    In fact, this will be solved  if mcc_dns_get_identifiers support CLASS
>    wild cards, which may be done in future....

	So this will not work now?

	Hasn't anyone wirtten something like this before?

	carl
2275.3no class wildcards supported yetTOOK::CALLANDERMCC = My Constant CompanionThu Feb 20 1992 22:084
    class wildcarding is not supported anywhere in the system at this
    point in time, but is still high on the list for the next release.