Salome HOME
Copyrights update
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_AttributeTreeNode.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.hxx
21 //  Author : Sergey RUIN
22 //  Module : SALOME
23
24 #ifndef SALOMEDS_AttributeTreeNode_HeaderFile
25 #define SALOMEDS_AttributeTreeNode_HeaderFile
26
27 #include "SALOMEDSClient_AttributeTreeNode.hxx"
28 #include "SALOMEDS_GenericAttribute.hxx"
29 #include "SALOMEDSImpl_AttributeTreeNode.hxx"
30
31 // IDL headers
32 #include <SALOMEconfig.h>
33 #include CORBA_SERVER_HEADER(SALOMEDS)
34 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
35
36 class SALOMEDS_AttributeTreeNode: public SALOMEDS_GenericAttribute, public SALOMEDSClient_AttributeTreeNode
37 {
38 public:  
39   SALOMEDS_AttributeTreeNode(const Handle(SALOMEDSImpl_AttributeTreeNode)& theAttr);
40   SALOMEDS_AttributeTreeNode(SALOMEDS::AttributeTreeNode_ptr theAttr);
41   ~SALOMEDS_AttributeTreeNode();
42
43   virtual void SetFather(const _PTR(AttributeTreeNode)& value);
44   virtual bool HasFather();
45   virtual _PTR(AttributeTreeNode) GetFather();
46   virtual void SetPrevious(const _PTR(AttributeTreeNode)& value);
47   virtual bool HasPrevious();
48   virtual _PTR(AttributeTreeNode) GetPrevious();
49   virtual void SetNext(const _PTR(AttributeTreeNode)& value);
50   virtual bool HasNext();
51   virtual _PTR(AttributeTreeNode) GetNext();
52   virtual void SetFirst(const _PTR(AttributeTreeNode)& value);
53   virtual bool HasFirst();
54   virtual _PTR(AttributeTreeNode) GetFirst();
55   virtual void SetTreeID(const std::string& value);
56   virtual std::string GetTreeID();
57   virtual void Append(const _PTR(AttributeTreeNode)& value);
58   virtual void Prepend(const _PTR(AttributeTreeNode)& value);
59   virtual void InsertBefore(const _PTR(AttributeTreeNode)& value);
60   virtual void InsertAfter(const _PTR(AttributeTreeNode)& value);
61   virtual void Remove();
62   virtual int Depth();
63   virtual bool IsRoot();
64   virtual bool IsDescendant(const _PTR(AttributeTreeNode)& value);
65   virtual bool IsFather(const _PTR(AttributeTreeNode)& value);
66   virtual bool IsChild(const _PTR(AttributeTreeNode)& value);
67   virtual std::string Label();                                        
68 };
69
70 #endif