Salome HOME
Copyrights update
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeTreeNode_i.hxx
1 // Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 // 
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either 
7 // version 2.1 of the License.
8 // 
9 // This library is distributed in the hope that it will be useful 
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 // Lesser General Public License for more details.
13 //
14 // You should have received a copy of the GNU Lesser General Public  
15 // License along with this library; if not, write to the Free Software 
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 //
18 // See http://www.salome-platform.org/
19 //
20 //  File   : SALOMEDS_AttributeTreeNode_i.hxx
21 //  Author : Sergey RUIN
22 //  Module : SALOME
23
24 #ifndef SALOMEDS_AttributeTreeNode_i_HeaderFile
25 #define SALOMEDS_AttributeTreeNode_i_HeaderFile
26
27 // IDL headers
28 #include <SALOMEconfig.h>
29 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
30
31 #include "SALOMEDS_GenericAttribute_i.hxx"
32 #include "SALOMEDSImpl_AttributeTreeNode.hxx"
33
34 class SALOMEDS_AttributeTreeNode_i: public virtual POA_SALOMEDS::AttributeTreeNode,
35                                     public virtual SALOMEDS_GenericAttribute_i {
36 public:
37   
38   SALOMEDS_AttributeTreeNode_i(const Handle(SALOMEDSImpl_AttributeTreeNode)& theAttr, CORBA::ORB_ptr orb) 
39     :SALOMEDS_GenericAttribute_i(theAttr, orb) {}; 
40  
41   ~SALOMEDS_AttributeTreeNode_i() {};
42
43   void SetFather(SALOMEDS::AttributeTreeNode_ptr value);
44   CORBA::Boolean HasFather();
45   SALOMEDS::AttributeTreeNode_ptr GetFather();
46   void SetPrevious(SALOMEDS::AttributeTreeNode_ptr value);
47   CORBA::Boolean HasPrevious();
48   SALOMEDS::AttributeTreeNode_ptr GetPrevious();
49   void SetNext(SALOMEDS::AttributeTreeNode_ptr value);
50   CORBA::Boolean HasNext();
51   SALOMEDS::AttributeTreeNode_ptr GetNext();
52   void SetFirst(SALOMEDS::AttributeTreeNode_ptr value);
53   CORBA::Boolean HasFirst();
54   SALOMEDS::AttributeTreeNode_ptr GetFirst();
55   void SetTreeID(const char* value);
56   char* GetTreeID();
57   void Append(SALOMEDS::AttributeTreeNode_ptr value);
58   void Prepend(SALOMEDS::AttributeTreeNode_ptr value);
59   void InsertBefore(SALOMEDS::AttributeTreeNode_ptr value);
60   void InsertAfter(SALOMEDS::AttributeTreeNode_ptr value);
61   void Remove();
62   CORBA::Long Depth();
63   CORBA::Boolean IsRoot();
64   CORBA::Boolean IsDescendant(SALOMEDS::AttributeTreeNode_ptr value);
65   CORBA::Boolean IsFather(SALOMEDS::AttributeTreeNode_ptr value);
66   CORBA::Boolean IsChild(SALOMEDS::AttributeTreeNode_ptr value);
67   char* Label();
68
69 };
70
71 #endif