Version: 9.12.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 &)
 
virtual void UnRegisterGenObj (const std::string &)
 

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

◆ ObsList

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

◆ ObsListIter

typedef ObsList::iterator SALOMEDS::Notifier::ObsListIter
private

Constructor & Destructor Documentation

◆ Notifier()

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

References _orb, and salome::orb.

Member Function Documentation

◆ addSO_Notification()

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.

◆ attach()

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

Function : attach Purpose : register an Observer.

References myObservers.

◆ detach()

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

Function : detach Purpose : unregister an Observer.

References myObservers.

◆ modifyNB_Notification()

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.

◆ modifySO_Notification()

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.

◆ RegisterGenObj()

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

Reimplemented in SALOMEDS::GenObjRegister.

◆ removeSO_Notification()

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.

◆ UnRegisterGenObj()

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

Reimplemented in SALOMEDS::GenObjRegister.

Field Documentation

◆ _orb

◆ myObservers