Salome HOME
NRI : Remove dependence with VISU.
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_OCAFApplication.hxx
1 //  File      : SALOMEDS_OCAFApplication.hxx
2 //  Created   : Thu Nov 29 21:05:19 2001
3 //  Author    : Yves FRICAUD
4
5 //  Project   : SALOME
6 //  Module    : SALOMEDS
7 //  Copyright : Open CASCADE 2001
8 //  $Header$
9
10 #ifndef _SALOMEDS_OCAFApplication_HeaderFile
11 #define _SALOMEDS_OCAFApplication_HeaderFile
12
13 #ifndef _Standard_HeaderFile
14 #include <Standard.hxx>
15 #endif
16 #ifndef _Handle_SALOMEDS_OCAFApplication_HeaderFile
17 #include "Handle_SALOMEDS_OCAFApplication.hxx"
18 #endif
19
20 #ifndef _TDocStd_Application_HeaderFile
21 #include <TDocStd_Application.hxx>
22 #endif
23 #ifndef _Standard_CString_HeaderFile
24 #include <Standard_CString.hxx>
25 #endif
26 class TColStd_SequenceOfExtendedString;
27
28
29 class SALOMEDS_OCAFApplication : public TDocStd_Application {
30
31 public:
32
33     inline void* operator new(size_t,void* anAddress) 
34       {
35         return anAddress;
36       }
37     inline void* operator new(size_t size) 
38       { 
39         return Standard::Allocate(size); 
40       }
41     inline void  operator delete(void *anAddress) 
42       { 
43         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
44       }
45 //    inline void  operator delete(void *anAddress, size_t size) 
46 //      { 
47 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
48 //      }
49  // Methods PUBLIC
50  // 
51 Standard_EXPORT SALOMEDS_OCAFApplication();
52 Standard_EXPORT virtual  void Formats(TColStd_SequenceOfExtendedString& Formats) ;
53 Standard_EXPORT   Standard_CString ResourcesName() ;
54 Standard_EXPORT ~SALOMEDS_OCAFApplication();
55
56
57
58
59  // Type management
60  //
61  Standard_EXPORT friend Handle_Standard_Type& SALOMEDS_OCAFApplication_Type_();
62  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
63  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
64
65 protected:
66
67  // Methods PROTECTED
68  // 
69
70
71  // Fields PROTECTED
72  //
73
74
75 private: 
76
77  // Methods PRIVATE
78  // 
79
80
81  // Fields PRIVATE
82  //
83
84
85 };
86
87
88
89
90
91 // other inline functions and methods (like "C++: function call" methods)
92 //
93
94
95 #endif