a4815d55 |
1 | // Copyright (c) 2019 OPEN CASCADE SAS |
2 | // |
3 | // This file is part of Open CASCADE Technology software library. |
4 | // |
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. |
10 | // |
11 | // Alternatively, this file may be used under the terms of Open CASCADE |
12 | // commercial license or contractual agreement. |
13 | |
14 | #ifndef _BinMXCAFDoc_VisMaterialToolDriver_HeaderFile |
15 | #define _BinMXCAFDoc_VisMaterialToolDriver_HeaderFile |
16 | |
17 | #include <BinMDF_ADriver.hxx> |
18 | |
19 | DEFINE_STANDARD_HANDLE(BinMXCAFDoc_VisMaterialToolDriver, BinMDF_ADriver) |
20 | |
21 | //! Binary persistence driver for XCAFDoc_VisMaterialTool attribute. |
22 | class BinMXCAFDoc_VisMaterialToolDriver : public BinMDF_ADriver |
23 | { |
24 | DEFINE_STANDARD_RTTIEXT(BinMXCAFDoc_VisMaterialToolDriver, BinMDF_ADriver) |
25 | public: |
26 | |
27 | //! Main constructor. |
28 | Standard_EXPORT BinMXCAFDoc_VisMaterialToolDriver (const Handle(Message_Messenger)& theMsgDriver); |
29 | |
30 | //! Create new instance of XCAFDoc_VisMaterialTool. |
31 | Standard_EXPORT virtual Handle(TDF_Attribute) NewEmpty() const Standard_OVERRIDE; |
32 | |
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; |
37 | |
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; |
42 | |
43 | }; |
44 | |
45 | #endif // _BinMXCAFDoc_VisMaterialToolDriver_HeaderFile |