All Frameworks  Class Hierarchy  This Framework  Previous  Next  Indexes

KnowledgeInterfaces Interface CATIInstanceListener

System.IUnknown
  |
  +---System.IDispatch
    |
    +---System.CATBaseUnknown
      |
      +---CATIInstanceListener
 

Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.


interface CATIInstanceListener

Interface dedicated to implementing reactions to instances changes.
Role: this interface allows one to be called on instances events, as soon as one has subscribed to such events with CATIInstance.AddInstanceListener .

See also:
CATIInstance
See also:
CATIValue


Method Index


o AttributeAdded(CATIInstance_var&,CATUnicodeString&,CATIValue_var&)
Called whenever an attribute of the object to which the listener has been added is added.
o AttributeChanged(CATIInstance_var&,CATUnicodeString&,CATIValue_var&)
Called whenever an attribute of the object to which the listener has been added is changed.
o AttributeRemoved(CATIInstance_var&,CATUnicodeString&)
Called whenever an attribute of the object to which the listener has been added is removed.
o AttributeRenamed(CATIInstance_var&,CATUnicodeString&,CATUnicodeString&)
Called whenever an attribute of the object to which the listener has been added is renamed.
o Instanciated(CATIInstance_var&,CATUnicodeString&,CATIValue_var&)
Called whenever the object to which the listener has been added to is instanciated.
o Modification(CATIInstance_var&)
Called whenever the object to which the listener has been added has changed.
o Removed(CATIInstance_var&)
Called whenever the object to which the listener has been added is removed.
o SpecificEvent(CATIInstance_var&,CATBaseUnknown_var&,CATListValCATBaseUnknown_var&)
Called whenever an event is triggered by the object to which the listener has been added.
o TypeChanged(CATIInstance_var&)
Called whenever the type of object to which the listener has been added has changed.

Methods


o AttributeAdded
public virtual HRESULT AttributeAdded( const CATIInstance_var& iAttributes,
const CATUnicodeString& iKey,
const CATIValue_var& iValue)= 0
Called whenever an attribute of the object to which the listener has been added is added.
Parameters:
iInstance
listened object
iKey
attribute name
iValue
value of the added attribute
o AttributeChanged
public virtual HRESULT AttributeChanged( const CATIInstance_var& iAttributes,
const CATUnicodeString& iKey,
const CATIValue_var& iValue)= 0
Called whenever an attribute of the object to which the listener has been added is changed.
Parameters:
iInstance
listened object
iKey
attribute name
iValue
new attribute value
o AttributeRemoved
public virtual HRESULT AttributeRemoved( const CATIInstance_var& iAttributes,
const CATUnicodeString& iKey) = 0
Called whenever an attribute of the object to which the listener has been added is removed.
Parameters:
iInstance
listened object
iKey
name of the removed attribute
o AttributeRenamed
public virtual HRESULT AttributeRenamed( const CATIInstance_var& iInstance,
const CATUnicodeString& iKey,
const CATUnicodeString& iNewKey) = 0
Called whenever an attribute of the object to which the listener has been added is renamed.
Parameters:
iInstance
listened object
iKey
attribute name
iNewKey
new attribute name
o Instanciated
public virtual HRESULT Instanciated( const CATIInstance_var& iOwner,
const CATUnicodeString& iKey,
const CATIValue_var& iValue)= 0
Called whenever the object to which the listener has been added to is instanciated.
Parameters:
iOwner
owner of the new instance
iKey
name of the attribute where the new instance is stored
iValue
new instance
o Modification
public virtual HRESULT Modification( const CATIInstance_var& iInstance)= 0
Called whenever the object to which the listener has been added has changed.
Parameters:
iInstance
modified instance.
o Removed
public virtual HRESULT Removed( const CATIInstance_var& iInstance)= 0
Called whenever the object to which the listener has been added is removed.
Parameters:
iInstance
removed instance.
o SpecificEvent
public virtual HRESULT SpecificEvent( const CATIInstance_var& iInstance,
const CATBaseUnknown_var& iEvent,
const CATListValCATBaseUnknown_var& iList) = 0
Called whenever an event is triggered by the object to which the listener has been added.
Parameters:
iInstance
listened object
iEvent
triggered event
iList
arguments of the event
o TypeChanged
public virtual HRESULT TypeChanged( const CATIInstance_var& iInstance) = 0
Called whenever the type of object to which the listener has been added has changed.
Parameters:
iInstance
instance which type has changed.

This object is included in the file: CATIInstanceListener.h
If needed, your Imakefile.mk should include the module: KnowledgeItf

Copyright © 2003, Dassault Systèmes. All rights reserved.