[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

5016.0. "Add/remove entity from a C program" by ROM01::SITZIA () Thu May 06 1993 12:53

    Any possibility to add/remove entities via a DECmcc API?
    
    	Maurizio
    
T.RTitleUserPersonal
Name
DateLines
5016.1TOOK::SWISTJim Swist LKG2-2/T2 DTN 226-7102Thu May 06 1993 14:2717
    Add/remove entities from what?
    
    An entity is a representation of some object.  Whether or not you
    can create or delete an instance of the object is a function of the
    object class (you can create a domain, you can't create a NODE4, for
    example).
    
    You can add/remove entities from the instance repository by using the
    registration FM functions REGISTER and DEREGISTER, if that's what you
    mean.
    
    And you can add object classes by writing MSL definitions for them and
    adding them to the dictionary.  You can delete object classes through
    DAP.
    
    Which of these do you mean?
    
5016.2But of course.TOOK::MCPHERSONDead or Canadian?Thu May 06 1993 14:3016
>    Any possibility to add/remove entities via a DECmcc API?

Well I certainly hope so. That's how MCC does it.  ;^)

To add an object (register) you basically just issue an mcc_call with 
	V = deregister
	E = AES for entity in question
	P = <null> 
then let the registration FM do its thing...

To remove (deregister) you do the same thing but set 
	V = Deregister

For more detailed information, please check the SRM and Developer's Toolkit.

/doug
5016.3REGISTER/DEREGISTERROM01::SITZIAFri May 07 1993 04:3214
    
    >You can add/remove entities from the instance repository by using the
    >registration FM functions REGISTER and DEREGISTER, if that's what you
    >mean.
    
    
    That's exactely what I'd like to do from within a C program!
    Sorry for inappropriate language.
    
    Is there any mcc library for that?
    
    	maurizio
    
    
5016.4Call registrationTOOK::MINTZErik Pavlik MintzFri May 07 1993 08:5015
>    >You can add/remove entities from the instance repository by using the
>    >registration FM functions REGISTER and DEREGISTER, if that's what you
>    >mean.
>
>    That's exactely what I'd like to do from within a C program!

We're all trying to say the same thing, I think.  What you need to do
from your C program is to call the registration FM, and invoke the REGISTER
or DEREGISTER directive.  The toolkit documentation has information
on "callable MCC".

-- Erik