0024947: Redesign OCCT legacy type system -- final corrections
[occt.git] / src / PCDM / PCDM_RetrievalDriver.cdl
CommitLineData
b311480e 1-- Created on: 1997-08-07
2-- Created by: Jean-Louis Frenkel
3-- Copyright (c) 1997-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
d5f74e42 8-- This library is free software; you can redistribute it and/or modify it under
9-- the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 10-- by the Free Software Foundation, with special exception defined in the file
11-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12-- distribution for complete text of the license and disclaimer of any warranty.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17deferred class RetrievalDriver from PCDM
18inherits Reader from PCDM
19
20
21uses
22 Document from PCDM,
23 Document from CDM,
24 ExtendedString from TCollection,
25 SequenceOfExtendedString from TColStd,
26 AsciiString from TCollection,
27 SequenceOfReference from PCDM,
28 Schema from Storage,
29 MessageDriver from CDM,
30 Application from CDM
31
32raises NoSuchObject from Standard, DriverError from PCDM
33
34
35is
36
37 Read(me: mutable; aFileName: ExtendedString from TCollection;
6e33d3ce 38 aNewDocument: Document from CDM;
7fd59977 39 anApplication: Application from CDM)
40 raises DriverError from PCDM
41 ---Purpose: Warning - raises DriverError if an error occurs during inside the
42 -- Make method.
43 is redefined virtual;
44 ---Purpose: retrieves the content of the file into a new Document.
45 --
46 -- by default Read will use the Schema method to read the file
47 -- into a persistent document. and the Make method to build a
48 -- transient document.
49 --
50
6e33d3ce 51 Make(me : mutable; aPCDM: Document from PCDM; aNewDocument: Document from CDM)
7fd59977 52 raises DriverError from PCDM
53 is deferred;
54
55 SchemaName(me) returns ExtendedString from TCollection
56 is deferred;
57
58
59 LoadExtensions(me: mutable; aSchema: Schema from Storage; Extensions: SequenceOfExtendedString from TColStd; theMsgDriver: MessageDriver from CDM)
60 is virtual;
61
62 ---Category: private methods.
63
64 References(myclass; aFileName: ExtendedString from TCollection; theReferences: out SequenceOfReference from PCDM; theMsgDriver: MessageDriver from CDM)
65 is private;
66
67 Extensions(myclass; aFileName: ExtendedString from TCollection; theExtensions: in out SequenceOfExtendedString from TColStd; theMsgDriver: MessageDriver from CDM)
68 is private;
69
70 UserInfo(myclass; aFileName: ExtendedString from TCollection; Start, End: AsciiString from TCollection; theUserInfo:in out SequenceOfExtendedString from TColStd; theMsgDriver: MessageDriver from CDM)
71 is private;
72
73 RaiseIfUnknownTypes(myclass; aSchema: Schema from Storage; aFileName: ExtendedString from TCollection);
74
75 DocumentVersion(myclass; aFileName: ExtendedString from TCollection; theMsgDriver: MessageDriver from CDM)
76 returns Integer from Standard;
77
78 ReferenceCounter(myclass; aFileName: ExtendedString from TCollection; theMsgDriver: MessageDriver from CDM)
79 returns Integer from Standard;
80
81 SetFormat (me : mutable; aformat : ExtendedString from TCollection);
82
83 GetFormat (me)
84 returns ExtendedString from TCollection;
85
86 --friends Init from class ReferenceIterator from PCDM(me: mutable;aMetaData: MetaData from CDM)
87
88
89fields
90
91 myFormat : ExtendedString from TCollection;
92
93
94friends
95
96 Init from class ReferenceIterator from PCDM(me: mutable;aMetaData: MetaData from CDM)
97
98
99end RetrievalDriver from PCDM;
100