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_RRelocationTable.hxx>
17 #include <MXCAFDoc_DimTolToolRetrievalDriver.ixx>
18 #include <PXCAFDoc_DimTolTool.hxx>
19 #include <XCAFDoc_DimTolTool.hxx>
22 //=======================================================================
23 //function : Constructor
25 //=======================================================================
27 MXCAFDoc_DimTolToolRetrievalDriver::MXCAFDoc_DimTolToolRetrievalDriver
28 (const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ARDriver (theMsgDriver)
32 //=======================================================================
33 //function : VersionNumber
35 //=======================================================================
37 Standard_Integer MXCAFDoc_DimTolToolRetrievalDriver::VersionNumber() const
42 //=======================================================================
43 //function : SourceType
45 //=======================================================================
47 Handle(Standard_Type) MXCAFDoc_DimTolToolRetrievalDriver::SourceType() const
49 static Handle(Standard_Type) sourceType = STANDARD_TYPE(PXCAFDoc_DimTolTool);
53 //=======================================================================
56 //=======================================================================
58 Handle(TDF_Attribute) MXCAFDoc_DimTolToolRetrievalDriver::NewEmpty() const
60 return new XCAFDoc_DimTolTool();
63 //=======================================================================
66 //=======================================================================
68 void MXCAFDoc_DimTolToolRetrievalDriver::Paste
69 (const Handle(PDF_Attribute)& /* Source */,
70 const Handle(TDF_Attribute)& /* Target */,
71 const Handle(MDF_RRelocationTable)& /*RelocTable*/) const