29 #ifndef _BASICGENERICDESTRUCTOR_HXX_
30 #define _BASICGENERICDESTRUCTOR_HXX_
45 #define MYDEVTRACE {std::cerr << __FILE__ << " [" << __LINE__ << "] : ";}
46 #define DEVTRACE(msg) {MYDEVTRACE; std::cerr<<msg<<std::endl<<std::flush;}
53 #pragma warning(disable:4251)
169 DEVTRACE(
"~DESTRUCTOR_OF() " <<
this);
#define DEVTRACE(msg)
Definition: BasicsGenericDestructor.hxx:49
#define BASICS_EXPORT
Definition: SALOME_Basics.hxx:37
The DESTRUCTOR_OF class allows the user to program - at any moment - the destruction of an object at ...
Definition: BasicsGenericDestructor.hxx:136
virtual ~DESTRUCTOR_OF()
Definition: BasicsGenericDestructor.hxx:167
TYPE * _objectPtr
Definition: BasicsGenericDestructor.hxx:174
DESTRUCTOR_OF(TYPE &anObject)
Programs the destruction at the end of the process, of the object anObject.
Definition: BasicsGenericDestructor.hxx:143
virtual void operator()(void)
Performs the destruction of the object.
Definition: BasicsGenericDestructor.hxx:157
The GENERIC_DESTRUCTOR abstract class describes the comportement of any destruction object.
Definition: BasicsGenericDestructor.hxx:107
virtual void operator()(void)=0
virtual ~GENERIC_DESTRUCTOR()
Definition: BasicsGenericDestructor.hxx:111
static std::list< GENERIC_DESTRUCTOR * > * Destructors
Definition: BasicsGenericDestructor.hxx:109
static int Add(GENERIC_DESTRUCTOR &anObject)
Adds a destruction object to the list of actions to be performed at the end of the process.
Definition: BasicsGenericDestructor.cxx:188
The PROTECTED_DELETE base class provides a protected destructor.
Definition: BasicsGenericDestructor.hxx:75
static void addObj(PROTECTED_DELETE *anObject)
To allow a further destruction of a PRTECTED_DELETE object, it must be added to the static list of PR...
Definition: BasicsGenericDestructor.cxx:82
static pthread_mutex_t _listMutex
Definition: BasicsGenericDestructor.hxx:85
static void deleteInstance(PROTECTED_DELETE *anObject)
deleteInstance deletes only once the object.
Definition: BasicsGenericDestructor.cxx:56
static std::list< PROTECTED_DELETE * > _objList
Definition: BasicsGenericDestructor.hxx:82
string name
Definition: pythfilter.py:56