Salome HOME
eaee9dd7f420232224ad9e2887688ebf384f9c6a
[modules/shaper.git] / src / GeomAlgoImpl / GEOMAlgo_Algo.hxx
1 // Copyright (C) 2007-2022  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 // File:        GEOMAlgo_Algo.hxx
24 // Created:     Sat Dec 04 12:39:47 2004
25 // Author:      Peter KURNEV
26 //              <peter@PREFEX>
27 //
28 #ifndef _GEOMAlgo_Algo_HeaderFile
29 #define _GEOMAlgo_Algo_HeaderFile
30
31 #include <GeomAlgoImpl.h>
32
33 #include <Standard.hxx>
34 #include <Standard_Macro.hxx>
35 #include <Standard_Integer.hxx>
36 #include <Standard_Boolean.hxx>
37
38
39 //=======================================================================
40 //class    : GEOMAlgo_Algo
41 //purpose  :
42 //=======================================================================
43 class GEOMAlgo_Algo
44 {
45  public:
46   GEOMALGOIMPL_EXPORT virtual void Perform() = 0;
47
48   GEOMALGOIMPL_EXPORT Standard_Integer ErrorStatus() const;
49
50   GEOMALGOIMPL_EXPORT Standard_Integer WarningStatus() const;
51
52   //! Allows to omit of creation of internal shapes (manifold topology). <br>
53   //!          Needed for the SALOME/TRIPOLI module. <br>
54   GEOMALGOIMPL_EXPORT void ComputeInternalShapes(const Standard_Boolean theFlag) ;
55
56 protected:
57   GEOMALGOIMPL_EXPORT GEOMAlgo_Algo();
58
59   GEOMALGOIMPL_EXPORT virtual ~GEOMAlgo_Algo();
60
61   GEOMALGOIMPL_EXPORT virtual void CheckData() ;
62
63   GEOMALGOIMPL_EXPORT virtual void CheckResult() ;
64
65
66   Standard_Integer myErrorStatus;
67   Standard_Integer myWarningStatus;
68   Standard_Boolean myComputeInternalShapes;
69 };
70
71 #endif