1 // Copyright (c) 2019 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
14 #ifndef _BinMXCAFDoc_VisMaterialToolDriver_HeaderFile
15 #define _BinMXCAFDoc_VisMaterialToolDriver_HeaderFile
17 #include <BinMDF_ADriver.hxx>
19 DEFINE_STANDARD_HANDLE(BinMXCAFDoc_VisMaterialToolDriver, BinMDF_ADriver)
21 //! Binary persistence driver for XCAFDoc_VisMaterialTool attribute.
22 class BinMXCAFDoc_VisMaterialToolDriver : public BinMDF_ADriver
24 DEFINE_STANDARD_RTTIEXT(BinMXCAFDoc_VisMaterialToolDriver, BinMDF_ADriver)
28 Standard_EXPORT BinMXCAFDoc_VisMaterialToolDriver (const Handle(Message_Messenger)& theMsgDriver);
30 //! Create new instance of XCAFDoc_VisMaterialTool.
31 Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE;
33 //! Paste attribute from persistence into document.
34 Standard_EXPORT virtual Standard_Boolean Paste (const BinObjMgt_Persistent& theSource,
35 const Handle(TDF_Attribute)& theTarget,
36 BinObjMgt_RRelocationTable& theRelocTable) const Standard_OVERRIDE;
38 //! Paste attribute from document into persistence.
39 Standard_EXPORT virtual void Paste (const Handle(TDF_Attribute)& theSource,
40 BinObjMgt_Persistent& theTarget,
41 BinObjMgt_SRelocationTable& theRelocTable) const Standard_OVERRIDE;
45 #endif // _BinMXCAFDoc_VisMaterialToolDriver_HeaderFile