Salome HOME
Initialisation de la base KERNEL avec la version operationnelle de KERNEL_SRC issue...
[modules/kernel.git] / src / OBJECT / SALOME_InteractiveObject.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_InteractiveObject_HeaderFile
17 #define _SALOME_InteractiveObject_HeaderFile
18
19 #ifndef _Standard_HeaderFile
20 #include <Standard.hxx>
21 #endif
22 #ifndef _Handle_SALOME_InteractiveObject_HeaderFile
23 #include <Handle_SALOME_InteractiveObject.hxx>
24 #endif
25
26 #ifndef _Standard_CString_HeaderFile
27 #include <Standard_CString.hxx>
28 #endif
29 #ifndef _MMgt_TShared_HeaderFile
30 #include <MMgt_TShared.hxx>
31 #endif
32 #ifndef _Standard_Boolean_HeaderFile
33 #include <Standard_Boolean.hxx>
34 #endif
35
36
37 class SALOME_InteractiveObject : public MMgt_TShared {
38
39 public:
40
41     void* operator new(size_t,void* anAddress) 
42       {
43         return anAddress;
44       }
45     void* operator new(size_t size) 
46       { 
47         return Standard::Allocate(size); 
48       }
49     void  operator delete(void *anAddress) 
50       { 
51         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
52       }
53  // Methods PUBLIC
54  // 
55 Standard_EXPORT   SALOME_InteractiveObject();
56 Standard_EXPORT   SALOME_InteractiveObject(const Standard_CString anEntry, 
57                                            const Standard_CString aComponentDataType,
58                                            const Standard_CString aName = "");
59 Standard_EXPORT   void setEntry(const Standard_CString anEntry) ;
60 Standard_EXPORT   Standard_CString getEntry() ;
61 Standard_EXPORT   void setName(const Standard_CString aName) ;
62 Standard_EXPORT   Standard_CString getName() ;
63 Standard_EXPORT   Standard_Boolean hasEntry() ;
64 Standard_EXPORT   virtual  Standard_Boolean isSame(const Handle(SALOME_InteractiveObject)& anIO) ;
65
66 Standard_EXPORT   Standard_Boolean hasReference() ;
67 Standard_EXPORT   Standard_CString getReference() ;
68 Standard_EXPORT   void setReference(const Standard_CString aReference) ;
69
70 Standard_EXPORT   void setComponentDataType(const Standard_CString ComponentDataType) ;
71 Standard_EXPORT   Standard_CString getComponentDataType() ;
72 Standard_EXPORT   Standard_Boolean isComponentType(const Standard_CString ComponentDataType) ;
73
74 Standard_EXPORT   ~SALOME_InteractiveObject();
75
76
77
78
79  // Type management
80  //
81  Standard_EXPORT friend Handle_Standard_Type& SALOME_InteractiveObject_Type_();
82  Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
83  Standard_EXPORT Standard_Boolean              IsKind(const Handle(Standard_Type)&) const;
84
85 protected:
86
87  // Methods PROTECTED
88  // 
89
90
91  // Fields PROTECTED
92  //
93 Standard_CString myReference;
94 Standard_CString myEntry;
95 Standard_CString myName;
96 Standard_CString myComponentDataType;
97
98 private: 
99
100  // Methods PRIVATE
101  // 
102
103
104  // Fields PRIVATE
105  //
106
107
108 };
109
110
111
112
113
114 // other Inline functions and methods (like "C++: function call" methods)
115 //
116
117
118 #endif