blob: cafb5d4e7abb3524645156b5a798435b5a21acec (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
|
-- File: PCDM_ReadWriter.cdl
-- Created: Tue Dec 9 08:28:48 1997
-- Author: Jean-Louis Frenkel
-- <rmi@frilox.paris1.matra-dtv.fr>
---Copyright: Matra Datavision 1997
private deferred class ReadWriter from PCDM inherits Transient from Standard
uses
ExtendedString from TCollection,
AsciiString from TCollection,
Data from Storage,
Document from CDM,
MessageDriver from CDM,
SequenceOfExtendedString from TColStd,
BaseDriver from Storage,
OpenMode from Storage,
SequenceOfReference from PCDM
is
Version(me) returns AsciiString from TCollection
is deferred;
---Purpose: returns PCDM_ReadWriter_1.
WriteReferenceCounter(me; aData: mutable Data from Storage; aDocument: Document from CDM)
is deferred;
WriteReferences(me; aData: mutable Data from Storage; aDocument: Document from CDM; theReferencerFileName: ExtendedString from TCollection)
is deferred;
WriteExtensions(me; aData: mutable Data from Storage; aDocument: Document from CDM)
is deferred;
WriteVersion(me; aData: mutable Data from Storage; aDocument: Document from CDM)
is deferred;
ReadReferenceCounter(me; theFileName: ExtendedString from TCollection;
theMsgDriver: MessageDriver from CDM)
returns Integer from Standard
is deferred;
ReadReferences(me; aFileName: ExtendedString from TCollection; theReferences: in out SequenceOfReference from PCDM; theMsgDriver: MessageDriver from CDM)
is deferred;
ReadExtensions(me; aFileName: ExtendedString from TCollection; theExtensions: in out SequenceOfExtendedString from TColStd; theMsgDriver: MessageDriver from CDM)
is deferred;
ReadDocumentVersion(me; aFileName: ExtendedString from TCollection; theMsgDriver: MessageDriver from CDM)
returns Integer from Standard
is deferred;
---Category: commom methods
Open(myclass; aDriver: in out BaseDriver from Storage; aFileName: ExtendedString from TCollection; anOpenMode: OpenMode from Storage);
Reader(myclass; aFileName: ExtendedString from TCollection)
returns ReadWriter from PCDM;
---Purpose: returns the convenient Reader for a File.
--
Writer(myclass)
returns ReadWriter from PCDM;
WriteFileFormat(myclass; aData: mutable Data from Storage; aDocument: Document from CDM);
FileFormat(myclass; aFileName: ExtendedString from TCollection)
returns ExtendedString from TCollection;
---Purpose: tries to get a format in the file. returns an empty
-- string if the file could not be read or does not have
-- a FileFormat information.
end ReadWriter from PCDM;
|