1 // Created on: 2004-05-13
2 // Created by: Sergey ZARITCHNY
3 // Copyright (c) 2004-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.
17 #include <BinMDataStd_NoteBookDriver.hxx>
18 #include <BinMDF_ADriver.hxx>
19 #include <BinObjMgt_Persistent.hxx>
20 #include <BinObjMgt_RRelocationTable.hxx>
21 #include <BinObjMgt_SRelocationTable.hxx>
22 #include <Message_Messenger.hxx>
23 #include <Standard_Type.hxx>
24 #include <TDataStd_NoteBook.hxx>
25 #include <TDF_Attribute.hxx>
27 IMPLEMENT_STANDARD_RTTIEXT(BinMDataStd_NoteBookDriver,BinMDF_ADriver)
29 //=======================================================================
30 //function : BinMDataStd_NoteBookDriver
32 //=======================================================================
33 BinMDataStd_NoteBookDriver::BinMDataStd_NoteBookDriver
34 (const Handle(Message_Messenger)& theMsgDriver)
35 : BinMDF_ADriver (theMsgDriver, STANDARD_TYPE(TDataStd_NoteBook)->Name())
39 //=======================================================================
42 //=======================================================================
44 Handle(TDF_Attribute) BinMDataStd_NoteBookDriver::NewEmpty() const
46 return new TDataStd_NoteBook();
49 //=======================================================================
51 //purpose : persistent -> transient (retrieve)
52 //=======================================================================
54 Standard_Boolean BinMDataStd_NoteBookDriver::Paste
55 (const BinObjMgt_Persistent&,
56 const Handle(TDF_Attribute)&,
57 BinObjMgt_RRelocationTable& ) const
58 {return Standard_True;}
60 //=======================================================================
62 //purpose : transient -> persistent (store)
63 //=======================================================================
65 void BinMDataStd_NoteBookDriver::Paste (const Handle(TDF_Attribute)&,
66 BinObjMgt_Persistent&,
67 BinObjMgt_SRelocationTable& ) const