fw4spl
NeverDump.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 
8 #include "fwMemory/policy/registry/macros.hpp"
9 #include "fwMemory/policy/NeverDump.hpp"
10 
11 
12 namespace fwMemory
13 {
14 
15 namespace policy
16 {
17 
18 fwMemoryPolicyRegisterMacro(::fwMemory::policy::NeverDump);
19 
20 //------------------------------------------------------------------------------
21 
22 void NeverDump::allocationRequest( BufferInfo &info, ::fwMemory::BufferManager::ConstBufferPtrType buffer,
23  BufferInfo::SizeType size )
24 {
25  FwCoreNotUsedMacro(info);
26  FwCoreNotUsedMacro(buffer);
27  FwCoreNotUsedMacro(size);
28 }
29 
30 //------------------------------------------------------------------------------
31 
32 
33 void NeverDump::setRequest( BufferInfo &info, ::fwMemory::BufferManager::ConstBufferPtrType buffer,
34  BufferInfo::SizeType size )
35 {
36  FwCoreNotUsedMacro(info);
37  FwCoreNotUsedMacro(buffer);
38  FwCoreNotUsedMacro(size);
39 }
40 
41 //------------------------------------------------------------------------------
42 
43 
44 void NeverDump::reallocateRequest( BufferInfo &info, ::fwMemory::BufferManager::ConstBufferPtrType buffer,
45  BufferInfo::SizeType newSize )
46 {
47  FwCoreNotUsedMacro(info);
48  FwCoreNotUsedMacro(buffer);
49  FwCoreNotUsedMacro(newSize);
50 }
51 
52 //------------------------------------------------------------------------------
53 
54 
55 void NeverDump::destroyRequest( BufferInfo &info, ::fwMemory::BufferManager::ConstBufferPtrType buffer )
56 {
57  FwCoreNotUsedMacro(info);
58  FwCoreNotUsedMacro(buffer);
59 }
60 
61 //------------------------------------------------------------------------------
62 
63 
64 void NeverDump::lockRequest( BufferInfo &info, ::fwMemory::BufferManager::ConstBufferPtrType buffer )
65 {
66  FwCoreNotUsedMacro(info);
67  FwCoreNotUsedMacro(buffer);
68 }
69 
70 //------------------------------------------------------------------------------
71 
72 
73 void NeverDump::unlockRequest( BufferInfo &info, ::fwMemory::BufferManager::ConstBufferPtrType buffer )
74 {
75  FwCoreNotUsedMacro(info);
76  FwCoreNotUsedMacro(buffer);
77 }
78 
79 //------------------------------------------------------------------------------
80 
81 void NeverDump::dumpSuccess( BufferInfo &info, ::fwMemory::BufferManager::ConstBufferPtrType buffer )
82 {
83  FwCoreNotUsedMacro(info);
84  FwCoreNotUsedMacro(buffer);
85 }
86 
87 //------------------------------------------------------------------------------
88 
89 void NeverDump::restoreSuccess( BufferInfo &info, ::fwMemory::BufferManager::ConstBufferPtrType buffer )
90 {
91  FwCoreNotUsedMacro(info);
92  FwCoreNotUsedMacro(buffer);
93 }
94 
95 //------------------------------------------------------------------------------
96 
97 void NeverDump::refresh()
98 {
99 }
100 
101 //------------------------------------------------------------------------------
102 
103 std::string NeverDump::getParam(const std::string &name, bool *ok) const
104 {
105  FwCoreNotUsedMacro(name);
106  if (ok)
107  {
108  *ok = false;
109  }
110  return "";
111 }
112 
113 //------------------------------------------------------------------------------
114 
115 
116 
117 } // namespace policy
118 
119 } //namespace fwMemory
Never dump policy.
Definition: NeverDump.hpp:30
The namespace fwMemory contains tools to manage memory. Use for dump.
Definition: SReader.hpp:20