1 // Created on: 2001-09-11
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.
17 #include <Message_Messenger.hxx>
18 #include <Standard_Type.hxx>
19 #include <TCollection_ExtendedString.hxx>
20 #include <XmlDrivers.hxx>
21 #include <XmlMDF_ADriverTable.hxx>
22 #include <XmlMXCAFDoc.hxx>
23 #include <XmlXCAFDrivers_DocumentStorageDriver.hxx>
25 IMPLEMENT_STANDARD_RTTIEXT(XmlXCAFDrivers_DocumentStorageDriver,XmlDrivers_DocumentStorageDriver)
27 //=======================================================================
28 //function : XmlXCAFDrivers_DocumentStorageDriver
30 //=======================================================================
31 XmlXCAFDrivers_DocumentStorageDriver::XmlXCAFDrivers_DocumentStorageDriver
32 (const TCollection_ExtendedString& theCopyright)
33 : XmlDrivers_DocumentStorageDriver (theCopyright)
35 AddNamespace ("xcaf","http://www.opencascade.org/OCAF/XML/XCAF");
38 //=======================================================================
39 //function : AttributeDrivers
41 //=======================================================================
42 Handle(XmlMDF_ADriverTable)
43 XmlXCAFDrivers_DocumentStorageDriver::AttributeDrivers
44 (const Handle(Message_Messenger)& theMsgDrv)
47 Handle(XmlMDF_ADriverTable) aTable = XmlDrivers::AttributeDrivers (theMsgDrv);
50 XmlMXCAFDoc::AddDrivers(aTable, theMsgDrv);