Salome HOME
Merge with version on tag OCC-V2_1_0d
[modules/geom.git] / src / NMTTools / NMTTools_CommonBlockAPI.hxx
1 // File generated by CPPExt (Value)
2 //                     Copyright (C) 1991,1995 by
3 //  
4 //                      MATRA DATAVISION, FRANCE
5 //  
6 // This software is furnished in accordance with the terms and conditions
7 // of the contract and with the inclusion of the above copyright notice.
8 // This software or any other copy thereof may not be provided or otherwise
9 // be made available to any other person. No title to an ownership of the
10 // software is hereby transferred.
11 //  
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
14
15 #ifndef _NMTTools_CommonBlockAPI_HeaderFile
16 #define _NMTTools_CommonBlockAPI_HeaderFile
17
18 #ifndef _Standard_Address_HeaderFile
19 #include <Standard_Address.hxx>
20 #endif
21 #ifndef _BOPTools_ListOfPaveBlock_HeaderFile
22 #include <BOPTools_ListOfPaveBlock.hxx>
23 #endif
24 #ifndef _Standard_Integer_HeaderFile
25 #include <Standard_Integer.hxx>
26 #endif
27 #ifndef _Standard_Boolean_HeaderFile
28 #include <Standard_Boolean.hxx>
29 #endif
30 class NMTTools_ListOfCommonBlock;
31 class BOPTools_ListOfPaveBlock;
32 class BOPTools_PaveBlock;
33 class NMTTools_CommonBlock;
34
35
36 #ifndef _Standard_HeaderFile
37 #include <Standard.hxx>
38 #endif
39 #ifndef _Standard_Macro_HeaderFile
40 #include <Standard_Macro.hxx>
41 #endif
42
43 class NMTTools_CommonBlockAPI  {
44
45 public:
46
47     void* operator new(size_t,void* anAddress) 
48       {
49         return anAddress;
50       }
51     void* operator new(size_t size) 
52       { 
53         return Standard::Allocate(size); 
54       }
55     void  operator delete(void *anAddress) 
56       { 
57         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
58       }
59  // Methods PUBLIC
60  // 
61 Standard_EXPORT NMTTools_CommonBlockAPI(const NMTTools_ListOfCommonBlock& aList);
62 Standard_EXPORT  const NMTTools_ListOfCommonBlock& List() const;
63 Standard_EXPORT  const BOPTools_ListOfPaveBlock& CommonPaveBlocks(const Standard_Integer anE) const;
64 Standard_EXPORT   Standard_Boolean IsCommonBlock(const BOPTools_PaveBlock& aPB) const;
65 Standard_EXPORT   NMTTools_CommonBlock& CommonBlock(const BOPTools_PaveBlock& aPB) const;
66
67
68
69
70
71 protected:
72
73  // Methods PROTECTED
74  // 
75
76
77  // Fields PROTECTED
78  //
79
80
81 private: 
82
83  // Methods PRIVATE
84  // 
85
86
87  // Fields PRIVATE
88  //
89 Standard_Address myListOfCommonBlock;
90 BOPTools_ListOfPaveBlock myListOfPaveBlock;
91
92
93 };
94
95
96
97
98
99 // other Inline functions and methods (like "C++: function call" methods)
100 //
101
102
103 #endif