1 // File : SALOMEDSImpl_Callback.hxx
2 // Author : Sergey RUIN
5 #ifndef __SALOMEDSIMPL_CALLBACK_H__
6 #define __SALOMEDSIMPL_CALLBACK_H__
9 #include <Handle_MMgt_TShared.hxx>
10 #include <Standard_DefineHandle.hxx>
11 DEFINE_STANDARD_HANDLE( SALOMEDSImpl_Callback, MMgt_TShared )
13 #include "SALOMEDSImpl_UseCaseBuilder.hxx"
15 class SALOMEDSImpl_Callback : public MMgt_TShared
18 Handle(SALOMEDSImpl_UseCaseBuilder) _builder;
22 SALOMEDSImpl_Callback(const Handle(SALOMEDSImpl_UseCaseBuilder)& builder)
27 virtual void OnAddSObject(Handle(SALOMEDSImpl_SObject) theObject)
29 if(_builder != NULL && theObject != NULL) _builder->Append(theObject);
32 virtual void OnRemoveSObject(Handle(SALOMEDSImpl_SObject) theObject)
34 if(_builder != NULL && theObject != NULL) _builder->Remove(theObject);
38 DEFINE_STANDARD_RTTI( SALOMEDSImpl_Callback )