Salome HOME
PR : merge branch V1_2c dans branche principale pour V1_3_0_b1
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeTreeNode_i.hxx
1 //  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
2 //
3 //  Copyright (C) 2003  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. 
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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
21 //
22 //
23 //
24 //  File   : SALOMEDS_AttributeTreeNode_i.hxx
25 //  Author : Yves FRICAUD
26 //  Module : SALOME
27 //  $Header:
28
29 #ifndef SALOMEDS_AttributeTreeNode_i_HeaderFile
30 #define SALOMEDS_AttributeTreeNode_i_HeaderFile
31
32 // IDL headers
33 #include <TDataStd_TreeNode.hxx>
34 #include <SALOMEconfig.h>
35 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
36 #include "SALOMEDS_GenericAttribute_i.hxx"
37
38 class SALOMEDS_AttributeTreeNode_i: public virtual POA_SALOMEDS::AttributeTreeNode,
39   public virtual SALOMEDS_GenericAttribute_i {
40 public:
41   
42   SALOMEDS_AttributeTreeNode_i(const Handle(TDataStd_TreeNode)& theAttr, CORBA::ORB_ptr orb) 
43   {
44     _myOrb = CORBA::ORB::_duplicate(orb);
45     _myAttr = theAttr; 
46   };  
47   ~SALOMEDS_AttributeTreeNode_i() {};
48
49   void SetFather(SALOMEDS::AttributeTreeNode_ptr value);
50   CORBA::Boolean HasFather();
51   SALOMEDS::AttributeTreeNode_ptr GetFather();
52   void SetPrevious(SALOMEDS::AttributeTreeNode_ptr value);
53   CORBA::Boolean HasPrevious();
54   SALOMEDS::AttributeTreeNode_ptr GetPrevious();
55   void SetNext(SALOMEDS::AttributeTreeNode_ptr value);
56   CORBA::Boolean HasNext();
57   SALOMEDS::AttributeTreeNode_ptr GetNext();
58   void SetFirst(SALOMEDS::AttributeTreeNode_ptr value);
59   CORBA::Boolean HasFirst();
60   SALOMEDS::AttributeTreeNode_ptr GetFirst();
61   void SetTreeID(const char* value);
62   char* GetTreeID();
63   void Append(SALOMEDS::AttributeTreeNode_ptr value);
64   void Prepend(SALOMEDS::AttributeTreeNode_ptr value);
65   void InsertBefore(SALOMEDS::AttributeTreeNode_ptr value);
66   void InsertAfter(SALOMEDS::AttributeTreeNode_ptr value);
67   void Remove();
68   CORBA::Long Depth();
69   CORBA::Boolean IsRoot();
70   CORBA::Boolean IsDescendant(SALOMEDS::AttributeTreeNode_ptr value);
71   CORBA::Boolean IsFather(SALOMEDS::AttributeTreeNode_ptr value);
72   CORBA::Boolean IsChild(SALOMEDS::AttributeTreeNode_ptr value);
73   char* Label();
74 };
75
76 #endif