1 // Created on: 2008-12-10
2 // Created by: Pavel TELKOV
3 // Copyright (c) 2008-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 #include <MDF_SRelocationTable.hxx>
17 #include <MXCAFDoc_MaterialToolStorageDriver.ixx>
18 #include <PXCAFDoc_MaterialTool.hxx>
19 #include <XCAFDoc_MaterialTool.hxx>
21 //=======================================================================
22 //function : Constructor
24 //=======================================================================
26 MXCAFDoc_MaterialToolStorageDriver::MXCAFDoc_MaterialToolStorageDriver
27 (const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ASDriver (theMsgDriver)
31 //=======================================================================
32 //function : VersionNumber
34 //=======================================================================
36 Standard_Integer MXCAFDoc_MaterialToolStorageDriver::VersionNumber() const
39 //=======================================================================
40 //function : SourceType
42 //=======================================================================
44 Handle(Standard_Type) MXCAFDoc_MaterialToolStorageDriver::SourceType() const
46 static Handle(Standard_Type) sourceType = STANDARD_TYPE(XCAFDoc_MaterialTool);
50 //=======================================================================
53 //=======================================================================
55 Handle(PDF_Attribute) MXCAFDoc_MaterialToolStorageDriver::NewEmpty() const
57 return new PXCAFDoc_MaterialTool();
60 //=======================================================================
63 //=======================================================================
65 void MXCAFDoc_MaterialToolStorageDriver::Paste
66 (const Handle(TDF_Attribute)& /* Source */,
67 const Handle(PDF_Attribute)& /* Target */,
68 const Handle(MDF_SRelocationTable)& /*RelocTable*/) const