0024947: Redesign OCCT legacy type system
[occt.git] / src / TDataStd / TDataStd_UAttribute.cdl
1 -- Created on: 1999-06-11
2 -- Created by: Sergey RUIN
3 -- Copyright (c) 1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
5 --
6 -- This file is part of Open CASCADE Technology software library.
7 --
8 -- This library is free software; you can redistribute it and/or modify it under
9 -- the terms of the GNU Lesser General Public License version 2.1 as published
10 -- by the Free Software Foundation, with special exception defined in the file
11 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 -- distribution for complete text of the license and disclaimer of any warranty.
13 --
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
16
17 class UAttribute from TDataStd inherits Attribute from TDF
18
19
20 uses Attribute       from TDF,
21      Label           from TDF,
22      GUID            from Standard,
23      DataSet         from TDF,
24      RelocationTable from TDF
25
26 is    
27
28
29     ---Purpose: api class methods
30     --          =============
31     
32     Set (myclass ; label : Label from TDF; LocalID : GUID from Standard)
33     ---Purpose: Find, or create, a UAttribute attribute with <LocalID> as Local GUID.
34     -- The UAttribute attribute is returned.
35     returns UAttribute from TDataStd ;    
36
37
38     ---Purpose: UAttribute methods
39     --          ============
40
41     Create
42     returns UAttribute from TDataStd;
43     
44     SetID (me: mutable; LocalID : GUID from Standard);
45     
46     ID (me)
47     ---C++: return const & 
48     returns GUID from Standard;
49     
50     ---Category: methodes of TDF_Attribute
51     --           =========================
52  
53     Restore (me: mutable; with : Attribute from TDF);
54
55     NewEmpty (me)
56     returns Attribute from TDF;
57
58     Paste (me; into : Attribute from TDF;
59                RT   : RelocationTable from TDF);       
60
61     References (me; DS : DataSet from TDF) is redefined;   
62
63     Dump(me; anOS : in out OStream from Standard)
64     returns OStream from Standard
65      is redefined;
66         ---C++: return &
67 fields
68    
69    myID:    GUID from Standard;
70         
71 end UAttribute;