0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- automatic
[occt.git] / samples / mfc / standard / 06_Ocaf / src / OCAFSample_CommonDriver.hxx
1 // File generated by CPPExt (Transient)
2 //
3 //                     Copyright (C) 1991,1995 by
4 //  
5 //                      MATRA DATAVISION, FRANCE
6 //  
7 // This software is furnished in accordance with the terms and conditions
8 // of the contract and with the inclusion of the above copyright notice.
9 // This software or any other copy thereof may not be provided or otherwise
10 // be made available to any other person. No title to an ownership of the
11 // software is hereby transferred.
12 //  
13 // At the termination of the contract, the software and all copies of this
14 // software must be deleted.
15 //
16 #ifndef _OCAFSample_CommonDriver_HeaderFile
17 #define _OCAFSample_CommonDriver_HeaderFile
18
19 #ifndef _Standard_HeaderFile
20 #include <Standard.hxx>
21 #endif
22 #ifndef _Handle_OCAFSample_CommonDriver_HeaderFile
23 #endif
24
25 #ifndef _OCAFSample_Driver_HeaderFile
26 #include <OCAFSample_Driver.hxx>
27 #endif
28 #ifndef _Standard_Integer_HeaderFile
29 #include <Standard_Integer.hxx>
30 #endif
31 class TFunction_Logbook;
32
33
34 class OCAFSample_CommonDriver : public OCAFSample_Driver {
35
36 public:
37
38     inline void* operator new(size_t,void* anAddress) 
39       {
40         return anAddress;
41       }
42     inline void* operator new(size_t size) 
43       { 
44         return Standard::Allocate(size); 
45       }
46     inline void  operator delete(void *anAddress) 
47       { 
48         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
49       }
50 //    inline void  operator delete(void *anAddress, size_t size) 
51 //      { 
52 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
53 //      }
54  // Methods PUBLIC
55  // 
56 Standard_EXPORT OCAFSample_CommonDriver();
57 Standard_EXPORT virtual  Standard_Integer Execute(Handle(TFunction_Logbook)& theLogbook) const;
58 Standard_EXPORT ~OCAFSample_CommonDriver();
59
60
61
62
63  // Type management
64  //
65  Standard_EXPORT friend Handle(Standard_Type)& OCAFSample_CommonDriver_Type_();
66  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
67  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
68
69 protected:
70
71  // Methods PROTECTED
72  // 
73
74
75  // Fields PROTECTED
76  //
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