Salome HOME
NRI : Add message (GUI lib not found).
[modules/kernel.git] / src / SALOMEGUI / SALOME_ListIO.hxx
1 // File generated by CPPExt (Value)
2 //                     Copyright (C) 1991,1995 by
3 //  
4 //                      MATRA DATAVISION, FRANCE
5 //  
6 // This software is furnished in accordance with the terms and conditions
7 // of the contract and with the inclusion of the above copyright notice.
8 // This software or any other copy thereof may not be provided or otherwise
9 // be made available to any other person. No title to an ownership of the
10 // software is hereby transferred.
11 //  
12 // At the termination of the contract, the software and all copies of this
13 // software must be deleted.
14
15 #ifndef _SALOME_ListIO_HeaderFile
16 #define _SALOME_ListIO_HeaderFile
17
18 #ifndef _Standard_Address_HeaderFile
19 #include <Standard_Address.hxx>
20 #endif
21 #ifndef _Handle_SALOME_InteractiveObject_HeaderFile
22 #include <Handle_SALOME_InteractiveObject.hxx>
23 #endif
24 #ifndef _Handle_SALOME_ListNodeOfListIO_HeaderFile
25 #include <Handle_SALOME_ListNodeOfListIO.hxx>
26 #endif
27 #ifndef _Standard_Integer_HeaderFile
28 #include <Standard_Integer.hxx>
29 #endif
30 #ifndef _Standard_Boolean_HeaderFile
31 #include <Standard_Boolean.hxx>
32 #endif
33 class Standard_NoSuchObject;
34 class SALOME_ListIteratorOfListIO;
35 class SALOME_InteractiveObject;
36 class SALOME_ListNodeOfListIO;
37
38
39 #ifndef _Standard_HeaderFile
40 #include <Standard.hxx>
41 #endif
42 #ifndef _Standard_Macro_HeaderFile
43 #include <Standard_Macro.hxx>
44 #endif
45
46 class SALOME_ListIO  {
47
48 public:
49
50     void* operator new(size_t,void* anAddress) 
51       {
52         return anAddress;
53       }
54     void* operator new(size_t size) 
55       { 
56         return Standard::Allocate(size); 
57       }
58     void  operator delete(void *anAddress) 
59       { 
60         if (anAddress) Standard::Free((Standard_Address&)anAddress); 
61       }
62  // Methods PUBLIC
63  // 
64 Standard_EXPORT SALOME_ListIO();
65 Standard_EXPORT   void Assign(const SALOME_ListIO& Other) ;
66   void operator=(const SALOME_ListIO& Other) 
67 {
68   Assign(Other);
69 }
70
71 Standard_EXPORT   Standard_Integer Extent() const;
72 Standard_EXPORT   void Clear() ;
73 ~SALOME_ListIO()
74 {
75   Clear();
76 }
77
78 Standard_EXPORT   Standard_Boolean IsEmpty() const;
79 Standard_EXPORT   void Prepend(const Handle(SALOME_InteractiveObject)& I) ;
80 Standard_EXPORT   void Prepend(SALOME_ListIO& Other) ;
81 Standard_EXPORT   void Append(const Handle(SALOME_InteractiveObject)& I) ;
82 Standard_EXPORT   void Append(SALOME_ListIO& Other) ;
83 Standard_EXPORT   Handle_SALOME_InteractiveObject& First() const;
84 Standard_EXPORT   Handle_SALOME_InteractiveObject& Last() const;
85 Standard_EXPORT   void RemoveFirst() ;
86 Standard_EXPORT   void Remove(SALOME_ListIteratorOfListIO& It) ;
87 Standard_EXPORT   void InsertBefore(const Handle(SALOME_InteractiveObject)& I,SALOME_ListIteratorOfListIO& It) ;
88 Standard_EXPORT   void InsertBefore(SALOME_ListIO& Other,SALOME_ListIteratorOfListIO& It) ;
89 Standard_EXPORT   void InsertAfter(const Handle(SALOME_InteractiveObject)& I,SALOME_ListIteratorOfListIO& It) ;
90 Standard_EXPORT   void InsertAfter(SALOME_ListIO& Other,SALOME_ListIteratorOfListIO& It) ;
91
92
93 friend class SALOME_ListIteratorOfListIO;
94
95
96
97 protected:
98
99  // Methods PROTECTED
100  // 
101
102
103  // Fields PROTECTED
104  //
105
106
107 private: 
108
109  // Methods PRIVATE
110  // 
111 Standard_EXPORT SALOME_ListIO(const SALOME_ListIO& Other);
112
113
114  // Fields PRIVATE
115  //
116 Standard_Address myFirst;
117 Standard_Address myLast;
118
119
120 };
121
122 #define Item Handle_SALOME_InteractiveObject
123 #define Item_hxx "SALOME_InteractiveObject.hxx"
124 #define TCollection_ListNode SALOME_ListNodeOfListIO
125 #define TCollection_ListNode_hxx "SALOME_ListNodeOfListIO.hxx"
126 #define TCollection_ListIterator SALOME_ListIteratorOfListIO
127 #define TCollection_ListIterator_hxx "SALOME_ListIteratorOfListIO.hxx"
128 #define Handle_TCollection_ListNode Handle_SALOME_ListNodeOfListIO
129 #define TCollection_ListNode_Type_() SALOME_ListNodeOfListIO_Type_()
130 #define TCollection_List SALOME_ListIO
131 #define TCollection_List_hxx "SALOME_ListIO.hxx"
132
133 #include <TCollection_List.lxx>
134
135 #undef Item
136 #undef Item_hxx
137 #undef TCollection_ListNode
138 #undef TCollection_ListNode_hxx
139 #undef TCollection_ListIterator
140 #undef TCollection_ListIterator_hxx
141 #undef Handle_TCollection_ListNode
142 #undef TCollection_ListNode_Type_
143 #undef TCollection_List
144 #undef TCollection_List_hxx
145
146
147 // other Inline functions and methods (like "C++: function call" methods)
148 //
149
150
151 #endif