Salome HOME
Fix valgrind error: Mismatched free() / delete / delete []
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_ClsfSolid.hxx
index 5012fed2fc963eeb8230ae2f169c1a0ff9588159..5d13525a7695ee5d499be3f4a438e23b13fb6b93 100644 (file)
-//  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 //
-//  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-//  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of the GNU Lesser General Public
+// License as published by the Free Software Foundation; either
+// version 2.1 of the License, or (at your option) any later version.
 //
-//  This library is free software; you can redistribute it and/or
-//  modify it under the terms of the GNU Lesser General Public
-//  License as published by the Free Software Foundation; either
-//  version 2.1 of the License.
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+// Lesser General Public License for more details.
 //
-//  This library is distributed in the hope that it will be useful,
-//  but WITHOUT ANY WARRANTY; without even the implied warranty of
-//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-//  Lesser General Public License for more details.
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-//  You should have received a copy of the GNU Lesser General Public
-//  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.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
-//  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
+
+// File:        GEOMAlgo_ClsfSolid.hxx
+// Created:     Mon Jan 29 10:35:46 2007
+// Author:      Peter KURNEV
+//              <pkv@irinox>
 //
 #ifndef _GEOMAlgo_ClsfSolid_HeaderFile
 #define _GEOMAlgo_ClsfSolid_HeaderFile
 
-#ifndef _Standard_HeaderFile
 #include <Standard.hxx>
-#endif
-#ifndef _Handle_GEOMAlgo_ClsfSolid_HeaderFile
-#include <Handle_GEOMAlgo_ClsfSolid.hxx>
-#endif
-
-#ifndef _TopoDS_Shape_HeaderFile
+#include <Standard_DefineHandle.hxx>
 #include <TopoDS_Shape.hxx>
-#endif
-#ifndef _Standard_Address_HeaderFile
 #include <Standard_Address.hxx>
-#endif
-#ifndef _GEOMAlgo_Clsf_HeaderFile
 #include <GEOMAlgo_Clsf.hxx>
-#endif
-class TopoDS_Shape;
-
-
-
-class GEOMAlgo_ClsfSolid : public GEOMAlgo_Clsf {
-
-public:
- // Methods PUBLIC
- // 
-
-
-Standard_EXPORT GEOMAlgo_ClsfSolid();
-Standard_EXPORT virtual ~GEOMAlgo_ClsfSolid();
-
-
-Standard_EXPORT   void SetShape(const TopoDS_Shape& aS) ;
-
-
-Standard_EXPORT  const TopoDS_Shape& Shape() const;
 
+DEFINE_STANDARD_HANDLE(GEOMAlgo_ClsfSolid, GEOMAlgo_Clsf)
 
-Standard_EXPORT virtual  void Perform() ;
+//=======================================================================
+//class : GEOMAlgo_ClsfSolid
+//purpose  :
+//=======================================================================
+class GEOMAlgo_ClsfSolid : public GEOMAlgo_Clsf
+{
+ public:
+  Standard_EXPORT
+    GEOMAlgo_ClsfSolid();
 
+  Standard_EXPORT
+    virtual ~GEOMAlgo_ClsfSolid();
 
-Standard_EXPORT virtual  void CheckData() ;
-//Standard_EXPORT ~GEOMAlgo_ClsfSolid();
+  Standard_EXPORT
+    void SetShape(const TopoDS_Shape& aS) ;
 
+  Standard_EXPORT
+    const TopoDS_Shape& Shape() const;
 
+  Standard_EXPORT
+    virtual  void Perform() ;
 
+  Standard_EXPORT
+    virtual  void CheckData() ;
 
- // Type management
- //
- Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
- //Standard_EXPORT Standard_Boolean           IsKind(const Handle(Standard_Type)&) const;
-
-protected:
-
- // Methods PROTECTED
- // 
-
-
- // Fields PROTECTED
- //
-TopoDS_Shape myShape;
-Standard_Address myPClsf;
-
-
-private: 
-
- // Methods PRIVATE
- // 
-
-
- // Fields PRIVATE
- //
+  DEFINE_STANDARD_RTTIEXT(GEOMAlgo_ClsfSolid,GEOMAlgo_Clsf)
 
+  protected:
+    TopoDS_Shape myShape;
+  Standard_Address myPClsf;
 
 };
-
-
-
-
-
-// other Inline functions and methods (like "C++: function call" methods)
-//
-
-
 #endif