1 // SALOME SALOMEDS : data structure of SALOME and sources of Salome data server
3 // Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
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.
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.
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
20 // See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
24 // File : SALOMEDS_AttributeTreeNode_i.hxx
25 // Author : Yves FRICAUD
29 #ifndef SALOMEDS_AttributeTreeNode_i_HeaderFile
30 #define SALOMEDS_AttributeTreeNode_i_HeaderFile
33 #include <SALOMEconfig.h>
34 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
36 #include <TDataStd_TreeNode.hxx>
37 #include "SALOMEDS_GenericAttribute_i.hxx"
39 DEFINE_DERIVED_ATTR(AttributeTreeNode,TDataStd_TreeNode,false);
41 class SALOMEDS_AttributeTreeNode_i:
42 public virtual POA_SALOMEDS::AttributeTreeNode,
43 public virtual SALOMEDS_TAttributeTreeNode_i
45 DEFINE_DERIVED_ATTR_METH(AttributeTreeNode,TDataStd_TreeNode::GetDefaultTreeID());
48 void SetFather(SALOMEDS::AttributeTreeNode_ptr value);
49 CORBA::Boolean HasFather();
50 SALOMEDS::AttributeTreeNode_ptr GetFather();
51 void SetPrevious(SALOMEDS::AttributeTreeNode_ptr value);
52 CORBA::Boolean HasPrevious();
53 SALOMEDS::AttributeTreeNode_ptr GetPrevious();
54 void SetNext(SALOMEDS::AttributeTreeNode_ptr value);
55 CORBA::Boolean HasNext();
56 SALOMEDS::AttributeTreeNode_ptr GetNext();
57 void SetFirst(SALOMEDS::AttributeTreeNode_ptr value);
58 CORBA::Boolean HasFirst();
59 SALOMEDS::AttributeTreeNode_ptr GetFirst();
60 void SetTreeID(const char* value);
62 void Append(SALOMEDS::AttributeTreeNode_ptr value);
63 void Prepend(SALOMEDS::AttributeTreeNode_ptr value);
64 void InsertBefore(SALOMEDS::AttributeTreeNode_ptr value);
65 void InsertAfter(SALOMEDS::AttributeTreeNode_ptr value);
68 CORBA::Boolean IsRoot();
69 CORBA::Boolean IsDescendant(SALOMEDS::AttributeTreeNode_ptr value);
70 CORBA::Boolean IsFather(SALOMEDS::AttributeTreeNode_ptr value);
71 CORBA::Boolean IsChild(SALOMEDS::AttributeTreeNode_ptr value);
75 void Restore(const char*);