blob: 1f66c5189bf77b256bc769d8033f193c23342ecd (
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
64
65
|
-- File: TFunction_DriverTable.cdl
-- Created: Fri Jun 11 17:25:03 1999
-- Author: Vladislav ROMASHKO
-- <vro@flox.nnov.matra-dtv.fr>
---Copyright: Matra Datavision 1999
class DriverTable from TFunction inherits TShared from MMgt
---Purpose: A container for instances of drivers.
-- You create a new instance of TFunction_Driver
-- and use the method AddDriver to load it into the driver table.
uses
DataMapOfGUIDDriver from TFunction,
Driver from TFunction,
GUID from Standard,
OStream from Standard,
DataMapOfGUIDDriver from TFunction,
HArray1OfDataMapOfGUIDDriver from TFunction
is
Get (myclass)
---Purpose: Returns the driver table. If a driver does not exist, creates it.
returns mutable DriverTable from TFunction;
Create returns mutable DriverTable from TFunction;
---Purpose: Default constructor
AddDriver(me : mutable; guid : GUID from Standard;
driver : Driver from TFunction;
thread : Integer from Standard = 0)
---Purpose: Returns true if the driver has been added successfully to the driver table.
returns Boolean from Standard;
HasDriver (me; guid : GUID from Standard;
thread : Integer from Standard = 0)
---Purpose: Returns true if the driver exists in the driver table.
returns Boolean from Standard;
FindDriver(me; guid : GUID from Standard;
driver : out Driver from TFunction;
thread : Integer from Standard = 0)
---Purpose: Returns true if the driver was found.
returns Boolean from Standard;
Dump(me; anOS : in out OStream from Standard)
---C++: alias operator <<
---C++: return &
returns OStream from Standard;
RemoveDriver (me : mutable; guid : GUID from Standard;
thread : Integer from Standard = 0)
---Purpose: Removes a driver with the given GUID.
-- Returns true if the driver has been removed successfully.
returns Boolean from Standard;
Clear (me : mutable);
---Purpose: Removes all drivers. Returns true if the driver has been removed successfully.
fields
myDrivers : DataMapOfGUIDDriver from TFunction;
myThreadDrivers : HArray1OfDataMapOfGUIDDriver from TFunction;
end DriverTable;
|