0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / BinObjMgt / BinObjMgt_RRelocationTable.cxx
CommitLineData
fe21f796
BB
1// Created on: 2017-08-22
2// Created by: Benjamin BIHLER
3// Copyright (c) 2017 OPEN CASCADE SAS
4//
5// This file is part of Open CASCADE Technology software library.
6//
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.
12//
13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
15
16#include <BinObjMgt_RRelocationTable.hxx>
17
18//=======================================================================
19//function : GetHeaderData
20//purpose : getter for the file header data
21//=======================================================================
22
23const Handle(Storage_HeaderData)& BinObjMgt_RRelocationTable::GetHeaderData() const
24{
25 return myHeaderData;
26}
27
28//=======================================================================
29//function : SetHeaderData
30//purpose : setter for the file header data
31//=======================================================================
32
33void BinObjMgt_RRelocationTable::SetHeaderData(
34 const Handle(Storage_HeaderData)& theHeaderData)
35{
36 myHeaderData = theHeaderData;
37}
38
39//=======================================================================
40//function : Clear
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//=======================================================================
45void BinObjMgt_RRelocationTable::Clear(const Standard_Boolean doReleaseMemory)
46{
47 myHeaderData.Nullify();
48 TColStd_DataMapOfIntegerTransient::Clear(doReleaseMemory);
49}