7 #ifndef __FWMEMORY_POLICY_VALVEDUMP_HPP__ 8 #define __FWMEMORY_POLICY_VALVEDUMP_HPP__ 10 #include "fwMemory/BufferInfo.hpp" 11 #include "fwMemory/BufferManager.hpp" 12 #include "fwMemory/config.hpp" 13 #include "fwMemory/IPolicy.hpp" 14 #include "fwMemory/policy/factory/new.hpp" 16 #include <fwCore/base.hpp> 40 ::fwMemory::policy::factory::New< ValveDump >)
44 FWMEMORY_API virtual
void allocationRequest(
BufferInfo& info,
47 FWMEMORY_API virtual
void setRequest(
BufferInfo& info,
50 FWMEMORY_API virtual
void reallocateRequest(
BufferInfo& info,
54 FWMEMORY_API virtual
void destroyRequest(
BufferInfo& info,
57 FWMEMORY_API virtual
void lockRequest(
BufferInfo& info,
59 FWMEMORY_API virtual
void unlockRequest(
BufferInfo& info,
62 FWMEMORY_API virtual
void dumpSuccess(
BufferInfo& info,
64 FWMEMORY_API virtual
void restoreSuccess(
BufferInfo& info,
67 FWMEMORY_API virtual
void refresh() override;
69 FWMEMORY_API
bool setParam(const
std::
string& name, const
std::
string& value) override;
70 FWMEMORY_API virtual
std::
string getParam(const
std::
string& name,
bool* ok = NULL ) const override;
71 FWMEMORY_API const ::
fwMemory::
IPolicy::ParamNamesType& getParamNames() const override;
75 FWMEMORY_API
bool needDump(
size_t supplement) const;
77 FWMEMORY_API
size_t dump(
size_t nbOfBytes);
79 FWMEMORY_API
void apply(
size_t supplement = 0);
82 size_t m_hysteresisOffset;
89 #endif // __FWMEMORY_POLICY_VALVEDUMP_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.