5175e540398eec647531383c249f4f2b69b69a10
[occt.git] / src / MXCAFDoc / MXCAFDoc_LayerToolRetrievalDriver.cxx
1 // Created on: 2000-08-15
2 // Created by: data exchange team
3 // Copyright (c) 2000-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_RRelocationTable.hxx>
17 #include <MXCAFDoc_LayerToolRetrievalDriver.ixx>
18 #include <PXCAFDoc_LayerTool.hxx>
19 #include <XCAFDoc_LayerTool.hxx>
20
21
22 //=======================================================================
23 //function : Constructor
24 //purpose  : 
25 //=======================================================================
26
27 MXCAFDoc_LayerToolRetrievalDriver::MXCAFDoc_LayerToolRetrievalDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ARDriver (theMsgDriver)
28 {
29 }
30
31 //=======================================================================
32 //function : VersionNumber
33 //purpose  : 
34 //=======================================================================
35
36  Standard_Integer MXCAFDoc_LayerToolRetrievalDriver::VersionNumber() const
37 {
38   return 0;
39 }
40
41 //=======================================================================
42 //function : SourceType
43 //purpose  : 
44 //=======================================================================
45
46  Handle(Standard_Type) MXCAFDoc_LayerToolRetrievalDriver::SourceType() const
47 {
48   static Handle(Standard_Type) sourceType = STANDARD_TYPE(PXCAFDoc_LayerTool);
49   return sourceType;
50 }
51
52 //=======================================================================
53 //function : NewEmpty
54 //purpose  : 
55 //=======================================================================
56
57  Handle(TDF_Attribute) MXCAFDoc_LayerToolRetrievalDriver::NewEmpty() const
58 {
59   return new XCAFDoc_LayerTool();
60 }
61
62 //=======================================================================
63 //function : Paste
64 //purpose  : 
65 //=======================================================================
66
67 void MXCAFDoc_LayerToolRetrievalDriver::Paste (const Handle(PDF_Attribute)& /* Source */,
68                                                const Handle(TDF_Attribute)& /* Target */,
69                                                const Handle(MDF_RRelocationTable)& /*RelocTable*/) const
70 {
71 }
72