Salome HOME
Join modifications from branch BR_DEBUG_3_2_0b1
[modules/yacs.git] / src / SALOMEDS / SALOMEDS_OpenedAttribute.cdl
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/ or email : webmaster.salome@opencascade.com
19 --
20 --
21 --  File   : SALOMEDS_OpenedAttribute.cdl
22 --  Author : Yves FRICAUD
23 --  Module : SALOME
24
25 class OpenedAttribute from SALOMEDS inherits Integer from TDataStd
26
27         ---Purpose: 
28
29
30 uses Attribute         from TDF,
31      Label             from TDF,
32      GUID              from Standard,
33      ExtendedString    from TCollection,
34      DataSet           from TDF,
35      RelocationTable   from TDF,
36      AttributeSequence from TDF,
37      Data              from TDF,
38      Comment           from TDataStd            
39
40
41 is    
42
43
44     ---Purpose: class methods
45     --          =============
46
47     GetID (myclass)   
48     ---C++: return const &  
49     returns GUID from Standard;    
50
51     Set (myclass; label : Label from TDF; value  : Integer from Standard)
52     ---Purpose: Find, or create a Comment attribute and set the string.
53     --          the Comment attribute is returned.
54     returns OpenedAttribute from SALOMEDS;
55     
56     ---Purpose: Comment methods
57     --          ============
58     
59     Create 
60     returns mutable OpenedAttribute from SALOMEDS;
61
62     ID (me)
63         ---C++: return const & 
64     returns GUID from Standard;
65
66     Restore (me: mutable; with : Attribute from TDF);
67
68     NewEmpty (me)
69     returns mutable Attribute from TDF;
70
71     Paste (me; into : mutable Attribute from TDF;
72                RT   : mutable RelocationTable from TDF);    
73
74 end OpenedAttribute;