1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
|
-- File: TNaming_UsedShapes.cdl
-- Created: Wed Feb 5 09:55:14 1997
-- Author: Yves FRICAUD
-- <yfr@claquox.paris1.matra-dtv.fr>
---Copyright: Matra Datavision 1997
private class UsedShapes from TNaming inherits Attribute from TDF
---Purpose: Set of Shapes Used in a Data from TDF
-- Only one instance by Data, it always
-- Stored as Attribute of The Root.
uses
GUID from Standard,
DataMapOfShapePtrRefShape from TNaming,
RelocationTable from TDF,
AttributeIndexedMap from TDF,
Attribute from TDF,
AttributeDelta from TDF,
DeltaOnAddition from TDF,
DeltaOnRemoval from TDF,
Delta from TDF,
DataSet from TDF
is
Create returns mutable UsedShapes from TNaming
is private;
Destroy(me : mutable);
---C++: alias ~
Map (me: mutable) returns DataMapOfShapePtrRefShape from TNaming;
---C++: return &
---C++: inline
ID(me) returns GUID from Standard
is redefined static;
---Purpose: Returns the ID of the attribute.
---C++: inline
---C++: return const &
GetID(myclass) returns GUID from Standard;
---Purpose: Returns the ID: 2a96b614-ec8b-11d0-bee7-080009dc3333.
---C++: return const &
BackupCopy(me) returns mutable Attribute from TDF
is redefined;
---Purpose: Copies the attribute contents into a new other
-- attribute. It is used by Backup().
Restore(me: mutable; anAttribute : Attribute from TDF)
is redefined;
---Purpose: Restores the contents from <anAttribute> into this
-- one. It is used when aborting a transaction.
BeforeRemoval(me: mutable)
is redefined;
---Purpose: Clears the table.
AfterUndo(me: mutable;
anAttDelta : AttributeDelta from TDF;
forceIt : Boolean from Standard = Standard_False)
returns Boolean from Standard
is redefined;
---Purpose: Something to do after applying <anAttDelta>.
---Category: Delta generation
-- =================================================
DeltaOnAddition(me)
returns DeltaOnAddition from TDF is redefined;
---Purpose : this method returns a null handle (no delta).
DeltaOnRemoval(me)
returns DeltaOnRemoval from TDF is redefined;
---Purpose : this method returns a null handle (no delta).
-- Copy use methods
-- ----------------
NewEmpty(me)
returns mutable Attribute from TDF
is redefined;
---Purpose: Returns an new empty attribute from the good end
-- type. It is used by the copy algorithm.
Paste(me;
intoAttribute : mutable Attribute from TDF;
aRelocTationable : mutable RelocationTable from TDF)
is redefined;
---Purpose: This method is different from the "Copy" one,
-- because it is used when copying an attribute from
-- a source structure into a target structure. This
-- method pastes the current attribute to the label
-- corresponding to the insertor. The pasted
-- attribute may be a brand new one or a new version
-- of the previous one.
References(me; aDataSet : DataSet from TDF)
is redefined;
---Purpose: Adds the directly referenced attributes and labels
-- to <aDataSet>. "Directly" means we have only to
-- look at the first level of references.
--
-- For this, use only the AddLabel() & AddAttribute()
-- from DataSet and do not try to modify information
-- previously stored in <aDataSet>.
-- Miscelleaneous
-- --------------
Dump(me; anOS : in out OStream from Standard)
returns OStream from Standard
is redefined ;
---Purpose: Dumps the attribute on <aStream>.
---C++ : return &
fields
myMap : DataMapOfShapePtrRefShape from TNaming;
friends
class Builder from TNaming
end UsedShapes;
|