Salome HOME
sources v1.2
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_LocalIDAttribute.cdl
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_LocalIDAttribute.cdl
25 --  Author : Yves FRICAUD
26 --  Module : SALOME
27
28 class LocalIDAttribute from SALOMEDS inherits Integer from TDataStd
29
30         ---Purpose: 
31
32
33 uses Attribute         from TDF,
34      Label             from TDF,
35      GUID              from Standard,
36      ExtendedString    from TCollection,
37      DataSet           from TDF,
38      RelocationTable   from TDF,
39      AttributeSequence from TDF,
40      Data              from TDF,
41      Comment           from TDataStd            
42
43
44 is    
45
46
47     ---Purpose: class methods
48     --          =============
49
50     GetID (myclass)   
51     ---C++: return const &  
52     returns GUID from Standard;    
53
54     Set (myclass; label : Label from TDF; value  : Integer from Standard)
55     returns OpenedAttribute from SALOMEDS;
56     
57     ---Purpose: Comment methods
58     --          ============
59     
60     Create 
61     returns mutable OpenedAttribute from SALOMEDS;
62
63     ID (me)
64         ---C++: return const & 
65     returns GUID from Standard;
66
67     Restore (me: mutable; with : Attribute from TDF);
68
69     NewEmpty (me)
70     returns mutable Attribute from TDF;
71
72     Paste (me; into : mutable Attribute from TDF;
73                RT   : mutable RelocationTable from TDF);    
74
75 end LocalIDAttribute;