7 #ifndef __FWMEMORY_POLICY_NEVERDUMP_HPP__ 8 #define __FWMEMORY_POLICY_NEVERDUMP_HPP__ 10 #include "fwMemory/BufferInfo.hpp" 11 #include "fwMemory/config.hpp" 12 #include "fwMemory/IPolicy.hpp" 13 #include "fwMemory/policy/factory/new.hpp" 15 #include <fwCore/base.hpp> 36 ::fwMemory::policy::factory::New< NeverDump >)
38 FWMEMORY_API virtual
void allocationRequest(
BufferInfo& info,
42 FWMEMORY_API virtual
void setRequest(
BufferInfo& info,
46 FWMEMORY_API virtual
void reallocateRequest(
BufferInfo& info,
50 FWMEMORY_API virtual
void destroyRequest(
BufferInfo& info,
53 FWMEMORY_API virtual
void lockRequest(
BufferInfo& info,
55 FWMEMORY_API virtual
void unlockRequest(
BufferInfo& info,
58 FWMEMORY_API virtual
void dumpSuccess(
BufferInfo& info,
60 FWMEMORY_API virtual
void restoreSuccess(
BufferInfo& info,
63 FWMEMORY_API virtual
void refresh() override;
67 bool setParam(const
std::
string& name, const
std::
string& value)
override 69 FwCoreNotUsedMacro(name);
70 FwCoreNotUsedMacro(value);
74 FWMEMORY_API
virtual std::string getParam(
const std::string& name,
bool* ok = NULL )
const override;
78 const fwMemory::IPolicy::ParamNamesType& getParamNames()
const override 80 static fwMemory::IPolicy::ParamNamesType names;
89 #endif // __FWMEMORY_POLICY_NEVERDUMP_HPP__
The namespace fwMemory contains tools to manage memory. Use for dump.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
BufferManager implementation.
Defines the memory dump policy interface.