// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
//
//
#ifndef _BASICGENERICDESTRUCTOR_HXX_
#define _BASICGENERICDESTRUCTOR_HXX_
+#ifdef WNT
+ #if defined BASICS_EXPORTS
+ #if defined WIN32
+ #define BASICS_EXPORT __declspec( dllexport )
+ #else
+ #define BASICS_EXPORT
+ #endif
+ #else
+ #if defined WIN32
+ #define BASICS_EXPORT __declspec( dllimport )
+ #else
+ #define BASICS_EXPORT
+ #endif
+ #endif
+#else
+ #define BASICS_EXPORT
+#endif
+
#include <list>
#include <algorithm>
#include <cassert>
#include <cstdlib>
#include <pthread.h>
-#if defined BASICS_EXPORTS
-#if defined WIN32
-#define BASICS_EXPORT __declspec( dllexport )
-#else
-#define BASICS_EXPORT
-#endif
-#else
-#if defined WNT
-#define BASICS_EXPORT __declspec( dllimport )
-#else
-#define BASICS_EXPORT
-#endif
-#endif
-
//#define _DEVDEBUG_
#ifdef _DEVDEBUG_
*/
// ============================================================================
-class PROTECTED_DELETE
+class BASICS_EXPORT PROTECTED_DELETE
{
public:
static void deleteInstance(PROTECTED_DELETE *anObject);
*/
// ============================================================================
-class GENERIC_DESTRUCTOR
+class BASICS_EXPORT GENERIC_DESTRUCTOR
{
public :
- BASICS_EXPORT static std::list<GENERIC_DESTRUCTOR*> *Destructors;
+ static std::list<GENERIC_DESTRUCTOR*> *Destructors;
virtual ~GENERIC_DESTRUCTOR() {};
- BASICS_EXPORT static const int Add(GENERIC_DESTRUCTOR &anObject);
- BASICS_EXPORT virtual void operator()(void) = 0;
+ static const int Add(GENERIC_DESTRUCTOR &anObject);
+ virtual void operator()(void) = 0;
};
// ============================================================================
template <class TYPE> class DESTRUCTOR_OF : public GENERIC_DESTRUCTOR
{
-
public:
/*!
Programs the destruction at the end of the process, of the object anObject.