1 -- Created on: 1999-07-12
2 -- Created by: Denis PASCAL
3 -- Copyright (c) 1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
23 private class Modified from TDocStd inherits Attribute from TDF
25 ---Purpose: Transient attribute wich register modified
26 -- labels. This attribute is attached to root label.
32 RelocationTable from TDF
37 ---Purpose: API class methods
40 IsEmpty (myclass; access : Label from TDF)
43 Add (myclass; alabel : Label from TDF)
46 Remove (myclass; alabel : Label from TDF)
49 Contains (myclass; alabel : Label from TDF)
52 Get (myclass; access : Label from TDF)
53 ---Purpose: if <IsEmpty> raise an exception.
54 ---C++: return const &
55 returns LabelMap from TDF;
57 Clear (myclass; access : Label from TDF);
58 ---Purpose: remove all modified labels. becomes empty
61 ---C++: return const &
62 returns GUID from Standard;
64 ---Purpose: Modified methods
68 returns mutable Modified from TDocStd;
71 returns Boolean from Standard;
75 AddLabel (me : mutable; L : Label from TDF)
76 ---Purpose: add <L> as modified
77 returns Boolean from Standard;
79 RemoveLabel (me : mutable; L : Label from TDF)
80 ---Purpose: remove <L> as modified
81 returns Boolean from Standard;
84 ---Purpose: returns modified label map
85 ---C++: return const &
86 returns LabelMap from TDF;
88 ---Category: methodes de TDF_Attribute
89 -- =========================
92 ---C++: return const &
93 returns GUID from Standard;
95 Restore (me: mutable; With : Attribute from TDF);
98 returns mutable Attribute from TDF;
100 Paste (me; Into : mutable Attribute from TDF;
101 RT : mutable RelocationTable from TDF);
103 Dump (me; anOS : in out OStream from Standard)
104 returns OStream from Standard
110 myModified : LabelMap from TDF;