0023002: empty delete operator in TDF_LabelNode
[occt.git] / src / TDF / TDF_AttributeDelta.cdl
1 -- Created by: DAUTRY Philippe
2 -- Copyright (c) 1997-1999 Matra Datavision
3 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
4 --
5 -- The content of this file is subject to the Open CASCADE Technology Public
6 -- License Version 6.5 (the "License"). You may not use the content of this file
7 -- except in compliance with the License. Please obtain a copy of the License
8 -- at http://www.opencascade.org and read it completely before using this file.
9 --
10 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12 --
13 -- The Original Code and all software distributed under the License is
14 -- distributed on an "AS IS" basis, without warranty of any kind, and the
15 -- Initial Developer hereby disclaims all such warranties, including without
16 -- limitation, any warranties of merchantability, fitness for a particular
17 -- purpose or non-infringement. Please see the License for the specific terms
18 -- and conditions governing the rights and limitations under the License.
19
20 --              ----------------------
21
22 ---Version:     0.0
23 --Version       Date            Purpose
24 --              0.0     Sep  8 1997     Creation
25
26
27
28 deferred class AttributeDelta from TDF inherits TShared from MMgt
29
30         ---Purpose: This class discribes the services we need to
31         --           implement Delta and Undo/Redo services.
32         --           
33         --          AttributeDeltas are applied in an unpredictable
34         --          order. But by the redefinition of the method
35         --          IsNowApplicable, a condition can be verified
36         --          before application. If the AttributeDelta is not
37         --          yet applicable, it is put at the end of the
38         --          AttributeDelta list, to be treated later. If a
39         --          dead lock if found on the list, the
40         --          AttributeDeltas are forced to be applied in an
41         --          unpredictable order.
42
43
44 uses
45
46     Label     from TDF,
47     Attribute from TDF
48     
49 is
50
51     Initialize(anAttribute: Attribute from TDF);
52     
53
54     Apply(me : mutable)
55         is deferred;
56         ---Purpose: Applies the delta to the attribute.
57     
58     Label(me)
59         returns Label from TDF;
60         ---Purpose: Returns the label concerned by <me>.
61
62     Attribute(me)
63         returns Attribute from TDF;
64         ---Purpose: Returns the reference attribute.
65
66     ID(me)
67         returns GUID from Standard;
68         ---Purpose: Returns the ID of the attribute concerned by <me>.
69
70
71     ---Category: Miscelleaneous
72     --           --------------------------------------------------------------
73
74     Dump(me; OS : in out OStream from Standard)
75         returns OStream from Standard
76         is virtual;
77         ---Purpose: Dumps the contents.
78         --          
79         ---C++: return &
80         ---C++: alias operator<<
81
82 fields
83
84     myAttribute : Attribute from TDF;
85     myLabel     : Label from TDF;
86
87 end AttributeDelta;
88
89
90
91