fw4spl
BufferInfo.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #include "fwMemory/BufferInfo.hpp"
8 
9 namespace fwMemory
10 {
11 
12 BufferInfo::BufferInfo() :
13  size(0),
14  loaded(true),
15  userStreamFactory(false),
16  fileFormat(::fwMemory::OTHER)
17 {
18  this->lastAccess.modified();
19 }
20 
21 
22 //-----------------------------------------------------------------------------
23 
24 void BufferInfo::clear()
25 {
26  size = 0;
27  loaded = true;
28  userStreamFactory = false;
29  fsFile.clear();
30  fileFormat = ::fwMemory::OTHER;
31  lockCounter.reset();
32  lastAccess = ::fwCore::LogicStamp();
33  bufferPolicy.reset();
34  istreamFactory.reset();
35 }
36 
37 } // namespace fwMemory
38 
The namespace fwMemory contains tools to manage memory. Use for dump.
Definition: SReader.hpp:20
Provides a Logical timestamp system.
Definition: LogicStamp.hpp:22