Salome HOME
PAL8395: Improve CheckCompoundOfBlocks and RemoveExtraEdges. Improvement done by...
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_Algo.hxx
1 // File generated by CPPExt (Value)
2 //
3 //                     Copyright (C) 1991 - 2000 by  
4 //                      Matra Datavision SA.  All rights reserved.
5 //  
6 //                     Copyright (C) 2001 - 2004 by
7 //                     Open CASCADE SA.  All rights reserved.
8 // 
9 // This file is part of the Open CASCADE Technology software.
10 //
11 // This software may be distributed and/or modified under the terms and
12 // conditions of the Open CASCADE Public License as defined by Open CASCADE SA
13 // and appearing in the file LICENSE included in the packaging of this file.
14 //  
15 // This software is distributed on an "AS IS" basis, without warranty of any
16 // kind, and Open CASCADE SA hereby disclaims all such warranties,
17 // including without limitation, any warranties of merchantability, fitness
18 // for a particular purpose or non-infringement. Please see the License for
19 // the specific terms and conditions governing rights and limitations under the
20 // License.
21
22 #ifndef _GEOMAlgo_Algo_HeaderFile
23 #define _GEOMAlgo_Algo_HeaderFile
24
25 #ifndef _Standard_Integer_HeaderFile
26 #include <Standard_Integer.hxx>
27 #endif
28
29
30 #ifndef _Standard_HeaderFile
31 #include <Standard.hxx>
32 #endif
33 #ifndef _Standard_Macro_HeaderFile
34 #include <Standard_Macro.hxx>
35 #endif
36
37 class GEOMAlgo_Algo  {
38
39 public:
40
41     void* operator new(size_t,void* anAddress) 
42       {
43         return anAddress;
44       }
45     void* operator new(size_t size) 
46       { 
47         return Standard::Allocate(size); 
48       }
49     void  operator delete(void *anAddress) 
50       { 
51         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
52       }
53  // Methods PUBLIC
54  // 
55 Standard_EXPORT virtual  void Perform()  = 0;
56 Standard_EXPORT   Standard_Integer ErrorStatus() const;
57 Standard_EXPORT   Standard_Integer WarningStatus() const;
58
59
60
61
62
63 protected:
64
65  // Methods PROTECTED
66  // 
67 Standard_EXPORT GEOMAlgo_Algo();
68 Standard_EXPORT virtual ~GEOMAlgo_Algo();
69 Standard_EXPORT virtual  void CheckData() ;
70 Standard_EXPORT virtual  void CheckResult() ;
71
72
73  // Fields PROTECTED
74  //
75 Standard_Integer myErrorStatus;
76 Standard_Integer myWarningStatus;
77
78
79 private: 
80
81  // Methods PRIVATE
82  // 
83
84
85  // Fields PRIVATE
86  //
87
88
89 };
90
91
92
93
94
95 // other Inline functions and methods (like "C++: function call" methods)
96 //
97
98
99 #endif