1 // Created on: 2017-08-22
2 // Created by: Benjamin BIHLER
3 // Copyright (c) 2017 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 <BinObjMgt_RRelocationTable.hxx>
18 //=======================================================================
19 //function : GetHeaderData
20 //purpose : getter for the file header data
21 //=======================================================================
23 const Handle(Storage_HeaderData)& BinObjMgt_RRelocationTable::GetHeaderData() const
28 //=======================================================================
29 //function : SetHeaderData
30 //purpose : setter for the file header data
31 //=======================================================================
33 void BinObjMgt_RRelocationTable::SetHeaderData(
34 const Handle(Storage_HeaderData)& theHeaderData)
36 myHeaderData = theHeaderData;
39 //=======================================================================
41 //purpose : The relocation table is cleared before/after reading in a document.
42 // : In this case the reference to the file header data should also be
43 // : cleared, because it is specific to the document.
44 //=======================================================================
45 void BinObjMgt_RRelocationTable::Clear(const Standard_Boolean doReleaseMemory)
47 myHeaderData.Nullify();
48 TColStd_DataMapOfIntegerTransient::Clear(doReleaseMemory);