b311480e |
1 | -- Created on: 2001-07-25 |
2 | -- Created by: Julia DOROVSKIKH |
3 | -- Copyright (c) 2001-2012 OPEN CASCADE SAS |
4 | -- |
5 | -- The content of this file is subject to the Open CASCADE Technology Public |
6 | -- License Version 6.5 (the "License"). You may not use the content of this file |
7 | -- except in compliance with the License. Please obtain a copy of the License |
8 | -- at http://www.opencascade.org and read it completely before using this file. |
9 | -- |
10 | -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
11 | -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
12 | -- |
13 | -- The Original Code and all software distributed under the License is |
14 | -- distributed on an "AS IS" basis, without warranty of any kind, and the |
15 | -- Initial Developer hereby disclaims all such warranties, including without |
16 | -- limitation, any warranties of merchantability, fitness for a particular |
17 | -- purpose or non-infringement. Please see the License for the specific terms |
18 | -- and conditions governing the rights and limitations under the License. |
19 | |
7fd59977 |
20 | |
21 | class DocumentRetrievalDriver from XmlLDrivers inherits RetrievalDriver from PCDM |
22 | |
23 | uses |
24 | ExtendedString from TCollection, |
25 | SequenceOfExtendedString from TColStd, |
26 | Document from PCDM, |
27 | Document from CDM, |
28 | Document from TDocStd, |
29 | Application from CDM, |
30 | ADriver from XmlMDF, |
31 | ADriverTable from XmlMDF, |
32 | RRelocationTable from XmlObjMgt, |
33 | Element from XmlObjMgt, |
34 | MessageDriver from CDM |
35 | |
36 | is |
37 | Create returns mutable DocumentRetrievalDriver from XmlLDrivers; |
38 | -- Constructor |
39 | |
40 | SchemaName (me) |
41 | returns ExtendedString from TCollection is redefined virtual; |
42 | -- pure virtual method definition |
43 | |
44 | Make (me : mutable; PD : Document from PCDM; |
45 | TD : Document from CDM) |
46 | is redefined virtual; |
47 | -- pure virtual method definition |
48 | |
49 | CreateDocument (me : mutable) |
50 | returns Document from CDM is redefined virtual; |
51 | -- pure virtual method definition |
52 | |
53 | Read(me:mutable; theFileName: ExtendedString from TCollection; |
54 | theNewDocument: Document from CDM; |
55 | theApplication: Application from CDM) is redefined virtual; |
56 | -- |
57 | |
58 | ReadFromDomDocument (me : mutable; theDomElement: Element from XmlObjMgt; |
59 | theNewDocument: Document from CDM; |
60 | theApplication: Application from CDM) |
61 | is virtual protected; |
62 | |
63 | MakeDocument (me : mutable; thePDoc: Element from XmlObjMgt; |
64 | theTDoc: Document from CDM) |
65 | returns Boolean from Standard |
66 | is virtual protected; |
67 | |
68 | AttributeDrivers (me : mutable; theMsgDriver: MessageDriver from CDM) |
69 | returns ADriverTable from XmlMDF |
70 | is virtual; |
71 | |
72 | ReadShapeSection (me:mutable; thePDoc : Element from XmlObjMgt; |
73 | theMsgDriver : MessageDriver from CDM) |
74 | returns ADriver from XmlMDF |
75 | is virtual protected; |
76 | |
77 | ShapeSetCleaning(me:mutable; theDriver : ADriver from XmlMDF) |
78 | is virtual protected; |
79 | |
80 | PropagateDocumentVersion(me:mutable; theDocVersion : Integer from Standard) |
81 | is virtual protected; |
82 | |
83 | fields |
84 | myDrivers : ADriverTable from XmlMDF is protected; |
85 | myRelocTable: RRelocationTable from XmlObjMgt is protected; |
86 | myFileName : ExtendedString from TCollection is protected; |
87 | |
88 | end DocumentRetrievalDriver; |