Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef _GEOMAlgo_Algo_HeaderFile
00024 #define _GEOMAlgo_Algo_HeaderFile
00025
00026 #ifndef _Standard_Integer_HeaderFile
00027 #include <Standard_Integer.hxx>
00028 #endif
00029
00030
00031 #ifndef _Standard_HeaderFile
00032 #include <Standard.hxx>
00033 #endif
00034 #ifndef _Standard_Macro_HeaderFile
00035 #include <Standard_Macro.hxx>
00036 #endif
00037
00038
00039 class GEOMAlgo_Algo {
00040
00041 public:
00042
00043 void* operator new(size_t,void* anAddress)
00044 {
00045 return anAddress;
00046 }
00047 void* operator new(size_t size)
00048 {
00049 return Standard::Allocate(size);
00050 }
00051 void operator delete(void *anAddress)
00052 {
00053 if (anAddress) Standard::Free((Standard_Address&)anAddress);
00054 }
00055
00056
00057
00058
00059 Standard_EXPORT virtual void Perform() = 0;
00060
00061
00062 Standard_EXPORT Standard_Integer ErrorStatus() const;
00063
00064
00065 Standard_EXPORT Standard_Integer WarningStatus() const;
00066
00067 Standard_EXPORT void ComputeInternalShapes(const Standard_Boolean theFlag);
00068
00069
00070
00071
00072 protected:
00073
00074
00075
00076
00077
00078 Standard_EXPORT GEOMAlgo_Algo();
00079 Standard_EXPORT virtual ~GEOMAlgo_Algo();
00080
00081
00082 Standard_EXPORT virtual void CheckData() ;
00083
00084
00085 Standard_EXPORT virtual void CheckResult() ;
00086
00087
00088
00089
00090 Standard_Integer myErrorStatus;
00091 Standard_Integer myWarningStatus;
00092 Standard_Boolean myComputeInternalShapes;
00093
00094
00095 private:
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105 };
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115 #endif