7 #ifndef __FWATOMS_BLOB_HPP__ 8 #define __FWATOMS_BLOB_HPP__ 10 #include "fwAtoms/Base.hpp" 11 #include "fwAtoms/config.hpp" 12 #include "fwAtoms/factory/new.hpp" 14 #include <fwMemory/BufferObject.hpp> 47 FWATOMS_API
static Blob::sptr New(::fwMemory::BufferObject::sptr buffer);
54 FWATOMS_API
static Blob::sptr New(
void* buffer,
unsigned int size);
61 FWATOMS_API ::fwMemory::BufferObject::sptr getBufferObject()
const;
62 FWATOMS_API
void setBufferObject(const ::fwMemory::BufferObject::sptr& bo);
68 FWATOMS_API
virtual Base::sptr clone()
const override;
73 ::fwAtoms::Base::AtomType
type()
const override 75 return ::fwAtoms::Base::BLOB;
80 ::fwMemory::BufferObject::sptr m_bufferObject;
virtual ~Blob()
Destructor.
fwAtoms contains basic objects to represent any other kind of object
::fwAtoms::Base::AtomType type() const override
returns Atom type
Blob(::fwAtoms::Base::Key key)
Constructor.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Base class for all Atom classes.
Representation of a buffer.