7 #ifndef __FWMEMORY_POLICY_ALWAYSDUMP_HPP__ 8 #define __FWMEMORY_POLICY_ALWAYSDUMP_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> 33 ::fwMemory::policy::factory::New< AlwaysDump >)
35 FWMEMORY_API virtual
void allocationRequest(
BufferInfo& info,
39 FWMEMORY_API virtual
void setRequest(
BufferInfo& info,
43 FWMEMORY_API virtual
void reallocateRequest(
BufferInfo& info,
47 FWMEMORY_API virtual
void destroyRequest(
BufferInfo& info,
50 FWMEMORY_API virtual
void lockRequest(
BufferInfo& info,
52 FWMEMORY_API virtual
void unlockRequest(
BufferInfo& info,
55 FWMEMORY_API virtual
void dumpSuccess(
BufferInfo& info,
57 FWMEMORY_API virtual
void restoreSuccess(
BufferInfo& info,
60 FWMEMORY_API virtual
void refresh() override;
64 bool setParam(const
std::
string& name, const
std::
string& value)
override 66 FwCoreNotUsedMacro(name);
67 FwCoreNotUsedMacro(value);
71 FWMEMORY_API
virtual std::string getParam(
const std::string& name,
bool* ok = NULL )
const override;
73 const ::fwMemory::IPolicy::ParamNamesType& getParamNames()
const override 75 static ::fwMemory::IPolicy::ParamNamesType names;
81 FWMEMORY_API
size_t dump();
82 FWMEMORY_API
void apply();
89 #endif // __FWMEMORY_POLICY_ALWAYSDUMP_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.