Version: 8.3.0
SALOMEDS::Notifier Class Reference
Inheritance diagram for SALOMEDS::Notifier:

Public Member Functions

 Notifier (CORBA::ORB_ptr orb)
 
virtual bool addSO_Notification (const SALOMEDSImpl_SObject &theSObject)
 Function : addSO_Notification Purpose : This function tells all the observers that a SO has been added. More...
 
virtual bool removeSO_Notification (const SALOMEDSImpl_SObject &theSObject)
 Function : removeSO_Notification Purpose : This function tells all the observers that a SO has been removed. More...
 
virtual bool modifySO_Notification (const SALOMEDSImpl_SObject &theSObject, int reason)
 Function : modifySO_Notification Purpose : This function tells all the observers that a SO has been modified. More...
 
virtual bool modifyNB_Notification (const char *theVarName)
 Function : modifyNB_Notification Purpose : This function tells all the observers that a NoteBook variable has been added/modified/removed. More...
 
virtual void attach (SALOMEDS::Observer_ptr theObs, bool modify)
 Function : attach Purpose : register an Observer. More...
 
virtual void detach (SALOMEDS::Observer_ptr theObs)
 Function : detach Purpose : unregister an Observer. More...
 
virtual void RegisterGenObj (const std::string &theIOR)
 
virtual void UnRegisterGenObj (const std::string &theIOR)
 

Private Types

typedef std::list< std::pair
< SALOMEDS::Observer_var, bool > > 
ObsList
 
typedef ObsList::iterator ObsListIter
 

Private Attributes

ObsList myObservers
 
CORBA::ORB_var _orb
 

Member Typedef Documentation

typedef std::list< std::pair< SALOMEDS::Observer_var, bool > > SALOMEDS::Notifier::ObsList
private
typedef ObsList::iterator SALOMEDS::Notifier::ObsListIter
private

Constructor & Destructor Documentation

SALOMEDS::Notifier::Notifier ( CORBA::ORB_ptr  orb)

References _orb.

Member Function Documentation

virtual bool SALOMEDS::Notifier::addSO_Notification ( const SALOMEDSImpl_SObject theSObject)
virtual

Function : addSO_Notification Purpose : This function tells all the observers that a SO has been added.

Reimplemented from SALOMEDSImpl_AbstractCallback.

References SALOMEDSImpl_SObject::GetID(), and myObservers.

virtual void SALOMEDS::Notifier::attach ( SALOMEDS::Observer_ptr  theObs,
bool  modify 
)
virtual

Function : attach Purpose : register an Observer.

References myObservers.

virtual void SALOMEDS::Notifier::detach ( SALOMEDS::Observer_ptr  theObs)
virtual

Function : detach Purpose : unregister an Observer.

References myObservers.

virtual bool SALOMEDS::Notifier::modifyNB_Notification ( const char theVarName)
virtual

Function : modifyNB_Notification Purpose : This function tells all the observers that a NoteBook variable has been added/modified/removed.

Reimplemented from SALOMEDSImpl_AbstractCallback.

References myObservers.

virtual bool SALOMEDS::Notifier::modifySO_Notification ( const SALOMEDSImpl_SObject theSObject,
int  reason 
)
virtual

Function : modifySO_Notification Purpose : This function tells all the observers that a SO has been modified.

Reimplemented from SALOMEDSImpl_AbstractCallback.

References SALOMEDSImpl_SObject::GetID(), and myObservers.

virtual void SALOMEDSImpl_AbstractCallback::RegisterGenObj ( const std::string &  theIOR)
virtualinherited

Reimplemented in SALOMEDS::GenObjRegister.

virtual bool SALOMEDS::Notifier::removeSO_Notification ( const SALOMEDSImpl_SObject theSObject)
virtual

Function : removeSO_Notification Purpose : This function tells all the observers that a SO has been removed.

Reimplemented from SALOMEDSImpl_AbstractCallback.

References SALOMEDSImpl_SObject::GetID(), and myObservers.

virtual void SALOMEDSImpl_AbstractCallback::UnRegisterGenObj ( const std::string &  theIOR)
virtualinherited

Reimplemented in SALOMEDS::GenObjRegister.

Field Documentation

CORBA::ORB_var SALOMEDS::Notifier::_orb
private

Referenced by Notifier().