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 |
|
private |
|
private |
SALOMEDS::Notifier::Notifier | ( | CORBA::ORB_ptr | orb | ) |
References _orb.
|
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 |
Function : attach Purpose : register an Observer.
References myObservers.
|
virtual |
Function : detach Purpose : unregister an Observer.
References myObservers.
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 |
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.
|
virtualinherited |
Reimplemented in SALOMEDS::GenObjRegister.
|
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.
|
virtualinherited |
Reimplemented in SALOMEDS::GenObjRegister.
|
private |
Referenced by Notifier().
|
private |
Referenced by addSO_Notification(), attach(), detach(), modifyNB_Notification(), modifySO_Notification(), and removeSO_Notification().