b311480e |
1 | -- Created on: 1997-12-10 |
2 | -- Created by: Denis PASCAL |
3 | -- Copyright (c) 1997-1999 Matra Datavision |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
b311480e |
7 | -- |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | class Relation from TDataStd inherits Attribute from TDF |
18 | |
19 | ---Purpose: Relation attribute. |
20 | -- ================== |
21 | -- |
22 | -- * Data Structure of the Expression is stored in a |
23 | -- string and references to variables used by the string |
24 | -- |
25 | -- Warning: To be consistent, each Variable referenced by the |
26 | -- relation must have its equivalent in the string |
27 | |
28 | |
29 | uses Attribute from TDF, |
30 | Label from TDF, |
31 | GUID from Standard, |
32 | Real from Standard, |
33 | DataSet from TDF, |
34 | RelocationTable from TDF, |
35 | ExtendedString from TCollection, |
36 | AttributeList from TDF |
37 | |
38 | |
39 | is |
40 | |
41 | ---Purpose: class methods |
42 | -- ============= |
43 | |
44 | GetID (myclass) |
45 | ---C++: return const & |
46 | returns GUID from Standard; |
47 | |
48 | |
49 | Set (myclass ; label : Label from TDF) |
50 | ---Purpose: Find, or create, an Relation attribute. |
51 | returns Relation from TDataStd; |
52 | |
53 | ---Purpose: Real methods |
54 | -- ============ |
55 | |
56 | Create |
57 | returns mutable Relation from TDataStd; |
58 | |
59 | Name (me) |
60 | ---Purpose: build and return the relation name |
61 | returns ExtendedString from TCollection; |
62 | |
63 | SetRelation (me : mutable; E : ExtendedString from TCollection); |
64 | |
65 | GetRelation (me) |
66 | returns ExtendedString from TCollection; |
67 | ---C++: return const & |
68 | |
69 | GetVariables (me : mutable) |
70 | ---C++: return & |
71 | returns AttributeList from TDF; |
72 | |
73 | ---Category: TDF_Attribute methods |
74 | -- ===================== |
75 | |
76 | ID (me) |
77 | ---C++: return const & |
78 | returns GUID from Standard; |
79 | |
80 | Restore (me: mutable; With : Attribute from TDF); |
81 | |
82 | NewEmpty(me) |
83 | returns mutable Attribute from TDF; |
84 | |
85 | Paste (me; Into : mutable Attribute from TDF; |
86 | RT : mutable RelocationTable from TDF); |
87 | |
88 | Dump(me; anOS : in out OStream from Standard) |
89 | returns OStream from Standard |
90 | is redefined; |
91 | ---C++: return & |
92 | |
93 | fields |
94 | |
95 | myRelation : ExtendedString from TCollection; |
96 | myVariables : AttributeList from TDF; |
97 | |
98 | end Relation; |