]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/GeomAPI/GeomAPI_IPresentable.h
Salome HOME
Avoid problem with dynamic_cast under SALOME release
[modules/shaper.git] / src / GeomAPI / GeomAPI_IPresentable.h
index c300c1b421e6594c40a8b5f9f3f139bc8ef4ba07..5bc4de58fddc5d3e62b9fed6486f4dfec6761493 100644 (file)
@@ -1,3 +1,5 @@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
 // File:        GeomAPI_IPresentable.hxx
 // Created:     17 July 2014
 // Author:      Vitaly SMETANNIKOV
 #include "GeomAPI_AISObject.h"
 
 /**
-* A class which defines an interface of object which is able to create its own presentation
-*/ 
+ * A class which defines an interface of object which is able to create its own presentation
+ */
 class GeomAPI_IPresentable
 {
-public:
+ public:
+  virtual ~GeomAPI_IPresentable();
   /** Returns the AIS preview
-  *   \param thePrevious - defines a presentation if it was created previously
-  */
+   *   \param thePrevious - defines a presentation if it was created previously
+   */
   virtual AISObjectPtr getAISObject(AISObjectPtr thePrevious) = 0;
 };
 
-typedef boost::shared_ptr<GeomAPI_IPresentable> GeomPresentablePtr;
+typedef std::shared_ptr<GeomAPI_IPresentable> GeomPresentablePtr;
 
 #endif