Salome HOME
Initialisation de la base KERNEL avec la version operationnelle de KERNEL_SRC issue...
[modules/kernel.git] / src / SALOMEGUI / SALOME_TypeFilter.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 _SALOME_TypeFilter_HeaderFile
17 #define _SALOME_TypeFilter_HeaderFile
18
19 #ifndef _Standard_HeaderFile
20 #include <Standard.hxx>
21 #endif
22 #ifndef _Handle_SALOME_TypeFilter_HeaderFile
23 #include <Handle_SALOME_TypeFilter.hxx>
24 #endif
25
26 #ifndef _Standard_CString_HeaderFile
27 #include <Standard_CString.hxx>
28 #endif
29 #ifndef _SALOME_Filter_HeaderFile
30 #include "SALOME_Filter.hxx"
31 #endif
32 #ifndef _Standard_Boolean_HeaderFile
33 #include <Standard_Boolean.hxx>
34 #endif
35 #ifndef _Handle_SALOME_InteractiveObject_HeaderFile
36 #include <Handle_SALOME_InteractiveObject.hxx>
37 #endif
38
39 class SALOME_TypeFilter : public SALOME_Filter {
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 SALOME_TypeFilter(const Standard_CString aGivenKind);
62 Standard_EXPORT virtual  Standard_Boolean IsOk(const Handle(SALOME_InteractiveObject)& anobj) const;
63 Standard_EXPORT ~SALOME_TypeFilter();
64
65
66
67
68  // Type management
69  //
70  Standard_EXPORT friend Handle_Standard_Type& SALOME_TypeFilter_Type_();
71  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
72  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
73
74 protected:
75
76  // Methods PROTECTED
77  // 
78
79
80  // Fields PROTECTED
81  //
82 Standard_CString myKind;
83
84
85 private: 
86
87  // Methods PRIVATE
88  // 
89
90
91  // Fields PRIVATE
92  //
93
94
95 };
96
97
98
99
100
101 // other inline functions and methods (like "C++: function call" methods)
102 //
103
104
105 #endif