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