blob: 1ea80a24ff9d0aa53de6105b88f1ac47cca4f305 (
plain)
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
|
-- File: BinMDF.cdl
-- Created: Tue Oct 29 18:50:21 2002
-- Author: Michael SAZONOV
-- <msv@novgorox.nnov.matra-dtv.fr>
---Copyright: Matra Datavision 2002
package BinMDF
---Purpose: This package provides classes and methods to
-- translate a transient DF into a persistent one and
-- vice versa.
--
-- Driver
--
-- A driver is a tool used to translate a transient
-- attribute into a persistent one and vice versa.
--
-- Driver Table
--
-- A driver table is an object building links between
-- object types and object drivers. In the
-- translation process, a driver table is asked to
-- give a translation driver for each current object
-- to be translated.
uses
TCollection,
TColStd,
TDF,
CDM,
BinObjMgt
is
deferred class ADriver; -- Attribute Storage/Retrieve Driver.
class ReferenceDriver; -- Driver for reference
class TagSourceDriver; -- Driver for TDF_TagSource
private alias StringIdMap is DataMapOfAsciiStringInteger from TColStd;
-- Map (Type, ADriver)
class TypeADriverMap instantiates DataMap from TCollection
(Type from Standard,
ADriver from BinMDF,
MapTransientHasher from TColStd);
-- Double Map (Type, Integer ID)
class TypeIdMap instantiates DoubleMap from TCollection
(Type from Standard,
Integer from Standard,
MapTransientHasher from TColStd,
MapIntegerHasher from TColStd);
-- Attribute Storage Driver Table.
class ADriverTable;
AddDrivers (aDriverTable : ADriverTable from BinMDF;
aMsgDrv : MessageDriver from CDM);
---Purpose: Adds the attribute storage drivers to <aDriverTable>.
end BinMDF;
|