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