1 -- Created on: 2001-07-09
2 -- Created by: Julia DOROVSKIKH
3 -- Copyright (c) 2001-2014 OPEN CASCADE SAS
5 -- This file is part of Open CASCADE Technology software library.
7 -- This library is free software; you can redistribute it and/or modify it under
8 -- the terms of the GNU Lesser General Public License version 2.1 as published
9 -- by the Free Software Foundation, with special exception defined in the file
10 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 -- distribution for complete text of the license and disclaimer of any warranty.
13 -- Alternatively, this file may be used under the terms of Open CASCADE
14 -- commercial license or contractual agreement.
16 deferred class ADriver from XmlMDF inherits TShared from MMgt
18 ---Purpose: Attribute Storage/Retrieval Driver.
21 AsciiString from TCollection,
22 ExtendedString from TCollection,
24 MessageDriver from CDM,
25 RRelocationTable from XmlObjMgt,
26 SRelocationTable from XmlObjMgt,
27 Persistent from XmlObjMgt,
28 Element from XmlObjMgt
31 Initialize (theMessageDriver : MessageDriver from CDM;
32 theNamespace : CString from Standard;
33 theName : CString from Standard = NULL);
35 VersionNumber(me) returns Integer from Standard
37 ---Purpose: Returns the version number from which the driver
41 returns Attribute from TDF
43 ---Purpose: Creates a new attribute from TDF.
45 SourceType (me) returns Type from Standard;
46 ---Purpose: Returns the type of source object,
47 -- inheriting from Attribute from TDF.
50 returns AsciiString from TCollection
52 ---C++: return const &
53 ---Purpose: Returns the full XML tag name (including NS prefix)
55 Paste (me; aSource : Persistent from XmlObjMgt;
56 aTarget : Attribute from TDF;
57 aRelocTable : out RRelocationTable from XmlObjMgt)
58 returns Boolean from Standard
60 ---Purpose: Translate the contents of <aSource> and put it
61 -- into <aTarget>, using the relocation table
62 -- <aRelocTable> to keep the sharings.
64 Paste (me; aSource : Attribute from TDF;
65 aTarget : in out Persistent from XmlObjMgt;
66 aRelocTable : out SRelocationTable from XmlObjMgt)
68 ---Purpose: Translate the contents of <aSource> and put it
69 -- into <aTarget>, using the relocation table
70 -- <aRelocTable> to keep the sharings.
72 WriteMessage (me; theMessage : ExtendedString from TCollection);
73 ---Purpose: Send message to Application (usually when error occurres)
77 myMessageDriver : MessageDriver from CDM;
78 myTypeName : AsciiString from TCollection is protected;