1 // Created on: 2000-08-15
2 // Created by: data exchange team
3 // Copyright (c) 2000-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_ColorToolStorageDriver.ixx>
18 #include <MgtTopLoc.hxx>
19 #include <PTColStd_TransientPersistentMap.hxx>
20 #include <PXCAFDoc_ColorTool.hxx>
21 #include <XCAFDoc_ColorTool.hxx>
23 //=======================================================================
24 //function : Constructor
26 //=======================================================================
28 MXCAFDoc_ColorToolStorageDriver::MXCAFDoc_ColorToolStorageDriver(const Handle(CDM_MessageDriver)& theMsgDriver) : MDF_ASDriver (theMsgDriver)
32 //=======================================================================
33 //function : VersionNumber
35 //=======================================================================
37 Standard_Integer MXCAFDoc_ColorToolStorageDriver::VersionNumber() const
40 //=======================================================================
41 //function : SourceType
43 //=======================================================================
45 Handle(Standard_Type) MXCAFDoc_ColorToolStorageDriver::SourceType() const
47 static Handle(Standard_Type) sourceType = STANDARD_TYPE(XCAFDoc_ColorTool);
51 //=======================================================================
54 //=======================================================================
56 Handle(PDF_Attribute) MXCAFDoc_ColorToolStorageDriver::NewEmpty() const
58 return new PXCAFDoc_ColorTool();
61 //=======================================================================
64 //=======================================================================
66 void MXCAFDoc_ColorToolStorageDriver::Paste (const Handle(TDF_Attribute)& /* Source */,
67 const Handle(PDF_Attribute)& /* Target */,
68 const Handle(MDF_SRelocationTable)& /*RelocTable*/) const