0024927: Getting rid of "Persistent" functionality -- Code
[occt.git] / src / MXCAFDoc / MXCAFDoc_MaterialToolStorageDriver.cxx
1 // Created on: 2008-12-10
2 // Created by: Pavel TELKOV
3 // Copyright (c) 2008-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #include <MDF_SRelocationTable.hxx>
17 #include <MXCAFDoc_MaterialToolStorageDriver.ixx>
18 #include <PXCAFDoc_MaterialTool.hxx>
19 #include <XCAFDoc_MaterialTool.hxx>
20
21 //=======================================================================
22 //function : Constructor
23 //purpose  : 
24 //=======================================================================
25
26 MXCAFDoc_MaterialToolStorageDriver::MXCAFDoc_MaterialToolStorageDriver
27   (const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ASDriver (theMsgDriver)
28 {
29 }
30
31 //=======================================================================
32 //function : VersionNumber
33 //purpose  : 
34 //=======================================================================
35
36 Standard_Integer MXCAFDoc_MaterialToolStorageDriver::VersionNumber() const
37 {  return 0; }
38
39 //=======================================================================
40 //function : SourceType
41 //purpose  : 
42 //=======================================================================
43
44 Handle(Standard_Type) MXCAFDoc_MaterialToolStorageDriver::SourceType() const
45 {
46   static Handle(Standard_Type) sourceType = STANDARD_TYPE(XCAFDoc_MaterialTool);
47   return sourceType;
48 }
49
50 //=======================================================================
51 //function : NewEmpty
52 //purpose  : 
53 //=======================================================================
54
55 Handle(PDF_Attribute) MXCAFDoc_MaterialToolStorageDriver::NewEmpty() const
56 {
57   return new PXCAFDoc_MaterialTool();
58 }
59
60 //=======================================================================
61 //function : Paste
62 //purpose  : 
63 //=======================================================================
64
65 void MXCAFDoc_MaterialToolStorageDriver::Paste 
66   (const Handle(TDF_Attribute)& /* Source */,
67    const Handle(PDF_Attribute)& /* Target */,
68    const Handle(MDF_SRelocationTable)& /*RelocTable*/) const
69 {
70 }