0024023: Revamp the OCCT Handle -- general
[occt.git] / src / TDocStd / TDocStd_XLinkRoot.cdl
CommitLineData
b311480e 1-- Created by: DAUTRY Philippe
2-- Copyright (c) 1997-1999 Matra Datavision
973c2be1 3-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 4--
973c2be1 5-- This file is part of Open CASCADE Technology software library.
b311480e 6--
d5f74e42 7-- This library is free software; you can redistribute it and/or modify it under
8-- the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 9-- by the Free Software Foundation, with special exception defined in the file
10-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11-- distribution for complete text of the license and disclaimer of any warranty.
b311480e 12--
973c2be1 13-- Alternatively, this file may be used under the terms of Open CASCADE
14-- commercial license or contractual agreement.
b311480e 15
7fd59977 16-- ------------------------
7fd59977 17
18---Version: 0.0
b311480e 19--Version Date Purpose
7fd59977 20-- 0.0 Aug 27 1997 Creation
21
22
23private class XLinkRoot from TDocStd inherits Attribute from TDF
24
25 ---Purpose: This attribute is the root of all external
26 -- references contained in a Data from TDF. Only one
27 -- instance of this class is added to the TDF_Data
28 -- root label. Starting from this attribute all the
29 -- Reference are linked together, to be found
30 -- easely.
31
32uses
33
34 GUID from Standard,
35 Data from TDF,
36 RelocationTable from TDF,
37 XLink from TDocStd,
38 XLinkPtr from TDocStd
39
40-- raises
41
42is
43
44 -- CLASS methods.
45 -- --------------
46
47 GetID(myclass) returns GUID from Standard;
48 ---Purpose: Returns the ID: 2a96b61d-ec8b-11d0-bee7-080009dc3333
49 --
50 ---C++: return const &
51
52 Set(myclass; aDF : Data from TDF)
53 returns XLinkRoot from TDocStd;
54 ---Purpose: Sets an empty XLinkRoot to Root or gets the
55 -- existing one. Only one attribute per TDF_Data.
56
57 Insert(myclass; anXLinkPtr : XLinkPtr from TDocStd);
58 ---Purpose: Inserts <anXLinkPtr> at the beginning of the XLink chain.
59
60 Remove(myclass; anXLinkPtr : XLinkPtr from TDocStd);
61 ---Purpose: Removes <anXLinkPtr> from the XLink chain, if it exists.
62
63 -- Basic methods.
64 -- --------------
65
66 Create
6e33d3ce 67 returns XLinkRoot from TDocStd
7fd59977 68 is private;
69 ---Purpose: Initializes fields.
70
71 -- Information access.
72 -- -------------------
73
74 ID(me) returns GUID from Standard
75 is redefined static;
76 ---Purpose: Returns the ID of the attribute.
77 --
78 ---C++: return const &
79
6e33d3ce 80 BackupCopy(me) returns Attribute from TDF
7fd59977 81 is redefined static;
82 ---Purpose: Returns a null handle.
83
84 Restore(me: mutable;
85 anAttribute : Attribute from TDF)
86 is redefined static;
87 ---Purpose: Does nothing.
88
89
90 First(me : mutable; anXLinkPtr : XLinkPtr from TDocStd)
91 is private;
92 ---Purpose: Sets the field <myFirst> with <anXLinkPtr>.
93 --
94 ---C++: inline
95
96 First(me)
97 returns XLinkPtr from TDocStd
98 is private;
99 ---Purpose: Returns the contents of the field <myFirst>.
100 --
101 ---C++: inline
102
103
104 -- Copy use methods
105 -- ----------------
106
107 NewEmpty(me)
6e33d3ce 108 returns Attribute from TDF
7fd59977 109 is redefined static;
110 ---Purpose: Returns a null handle.
111
112 Paste(me;
6e33d3ce 113 intoAttribute : Attribute from TDF;
114 aRelocationTable : RelocationTable from TDF)
7fd59977 115 is redefined static;
116 ---Purpose: Does nothing.
117
118 -- Miscelleaneous
119 -- --------------
120
121
122 Dump(me; anOS : in out OStream from Standard)
123 returns OStream from Standard
124 is redefined static;
125 ---Purpose: Dumps the attribute on <aStream>.
126 ---C++ : return &
127
128
129fields
130
131 myFirst : XLinkPtr from TDocStd;
132
133friends
134
135 class XLinkIterator from TDocStd
136
137end XLinkRoot;