0026936: Drawbacks of inlining in new type system in OCCT 7.0 -- automatic
[occt.git] / samples / mfc / standard / 06_Ocaf / src / OCAFSample_Driver.hxx
CommitLineData
7fd59977 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_Driver_HeaderFile
17#define _OCAFSample_Driver_HeaderFile
18
19#ifndef _Standard_HeaderFile
20#include <Standard.hxx>
21#endif
22#ifndef _Handle_OCAFSample_Driver_HeaderFile
7fd59977 23#endif
24
25#ifndef _TFunction_Driver_HeaderFile
26#include <TFunction_Driver.hxx>
27#endif
28#ifndef _Standard_Boolean_HeaderFile
29#include <Standard_Boolean.hxx>
30#endif
31#ifndef _Standard_Integer_HeaderFile
32#include <Standard_Integer.hxx>
33#endif
34class TFunction_Logbook;
92efcf78 35#include <TDF_LabelMap.hxx>
7fd59977 36
37
38class OCAFSample_Driver : public TFunction_Driver {
39
40public:
41
42 inline void* operator new(size_t,void* anAddress)
43 {
44 return anAddress;
45 }
46 inline void* operator new(size_t size)
47 {
48 return Standard::Allocate(size);
49 }
50 inline void operator delete(void *anAddress)
51 {
52 if (anAddress) Standard::Free((Standard_Address&)anAddress);
53 }
54// inline void operator delete(void *anAddress, size_t size)
55// {
56// if (anAddress) Standard::Free((Standard_Address&)anAddress,size);
57// }
58 // Methods PUBLIC
59 //
60Standard_EXPORT void Validate(TFunction_Logbook& log) const;
f486f64d 61Standard_EXPORT virtual Standard_Boolean MustExecute(const Handle(TFunction_Logbook)& log) const;
62Standard_EXPORT virtual Standard_Integer Execute(Handle(TFunction_Logbook)& log) const;
7fd59977 63Standard_EXPORT virtual Standard_Boolean Arguments(TDF_LabelMap& theArgs) const;
64Standard_EXPORT virtual Standard_Boolean Results(TDF_LabelMap& theRes) const;
65Standard_EXPORT ~OCAFSample_Driver();
66
67
68
69
70 // Type management
71 //
92efcf78 72 Standard_EXPORT friend Handle(Standard_Type)& OCAFSample_Driver_Type_();
7fd59977 73 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
74 Standard_EXPORT Standard_Boolean IsKind(const Handle(Standard_Type)&) const;
75
76protected:
77
78 // Methods PROTECTED
79 //
80Standard_EXPORT OCAFSample_Driver();
81
82
83 // Fields PROTECTED
84 //
85
86
87private:
88
89 // Methods PRIVATE
90 //
91
92
93 // Fields PRIVATE
94 //
95
96
97};
98
99
100
101
102
103// other inline functions and methods (like "C++: function call" methods)
104//
105
106
107#endif