Salome HOME
Synchronize adm files
[modules/gui.git] / src / OBJECT / SALOME_Filter.hxx
1 // Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License, or (at your option) any later version.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 //  SALOME SALOMEGUI : implementation of desktop and GUI kernel
24 //  File   : SALOME_Filter.hxx
25 //  Module : SALOME
26 //
27 #ifndef _SALOME_Filter_HeaderFile
28 #define _SALOME_Filter_HeaderFile
29
30 #ifndef _Standard_HeaderFile
31 #include <Standard.hxx>
32 #endif
33 #ifndef _Handle_SALOME_Filter_HeaderFile
34 #include "Handle_SALOME_Filter.hxx"
35 #endif
36
37 #ifndef _MMgt_TShared_HeaderFile
38 #include <MMgt_TShared.hxx>
39 #endif
40 #ifndef _Standard_Boolean_HeaderFile
41 #include <Standard_Boolean.hxx>
42 #endif
43 #ifndef _Handle_SALOME_InteractiveObject_HeaderFile
44 #include "Handle_SALOME_InteractiveObject.hxx"
45 #endif
46
47 class SALOME_Filter : public MMgt_TShared {
48
49 public:
50
51     inline void* operator new(size_t,void* anAddress) 
52       {
53         return anAddress;
54       }
55     inline void* operator new(size_t size) 
56       { 
57         return Standard::Allocate(size); 
58       }
59     inline void  operator delete(void *anAddress) 
60       { 
61         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
62       }
63 //    inline void  operator delete(void *anAddress, size_t size) 
64 //      { 
65 //        if (anAddress) Standard::Free((Standard_Address&)anAddress,size); 
66 //      }
67  // Methods PUBLIC
68  // 
69 Standard_EXPORT virtual  Standard_Boolean IsOk(const Handle(SALOME_InteractiveObject)& anObj) const = 0;
70 Standard_EXPORT ~SALOME_Filter();
71
72
73
74
75  // Type management
76  //
77  Standard_EXPORT friend Handle_Standard_Type& SALOME_Filter_Type_();
78  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
79  Standard_EXPORT Standard_Boolean             IsKind(const Handle(Standard_Type)&) const;
80
81 protected:
82
83  // Methods PROTECTED
84  // 
85
86
87  // Fields PROTECTED
88  //
89
90
91 private: 
92
93  // Methods PRIVATE
94  // 
95
96
97  // Fields PRIVATE
98  //
99
100
101 };
102
103
104
105
106
107 // other inline functions and methods (like "C++: function call" methods)
108 //
109
110
111 #endif