Representation of a buffer.
More...
#include <Blob.hpp>
|
virtual bool | isA (const std::string &type) const override |
|
| Blob (::fwAtoms::Base::Key key) |
| Constructor. More...
|
|
virtual | ~Blob () |
| Destructor.
|
|
virtual FWATOMS_API Base::sptr | clone () const override |
| Returns a clone object.
|
|
::fwAtoms::Base::AtomType | type () const override |
| returns Atom type
|
|
|
FWATOMS_API::fwMemory::BufferObject::sptr | getBufferObject () const |
| buffer accessor. More...
|
|
FWATOMS_API void | setBufferObject (const ::fwMemory::BufferObject::sptr &bo) |
| buffer accessor. More...
|
|
bool | isValue () const |
| Test if the current base is a value or not (Value = {string;numeric;boolean}) More...
|
|
bool | isBoolean () const |
| Test if the current base is a boolean. More...
|
|
bool | isNumeric () const |
| Test if the current base is a Numeric (real or integer) More...
|
|
bool | isString () const |
| Test if the current base is a string. More...
|
|
bool | isSequence () const |
| Test if the current base is a sequence. More...
|
|
bool | isMapping () const |
| Test if the current base is a mapping. More...
|
|
bool | isBlob () const |
| Test if the current base is a blob (a object with a buffer) More...
|
|
bool | isObject () const |
| Test if the current base is an object (representation of fwData) More...
|
|
virtual FWATOMS_API std::string | getString () const |
| Return the string representation of a value. More...
|
|
|
static bool | isTypeOf (const std::string &type) |
|
static FWATOMS_API Blob::sptr | New (::fwMemory::BufferObject::sptr buffer) |
| create a new Blob shared ptr. More...
|
|
static FWATOMS_API Blob::sptr | New (void *buffer, unsigned int size) |
| create a new Blob shared ptr. More...
|
|
static bool | isTypeOf (const std::string &type) |
|
static const std::string & | classname () |
| return full object's classname with its namespace, i.e. fwCore::BaseObject
|
|
static bool | isTypeOf (const std::string &type) |
|
static const std::string & | leafClassname () |
| return object's classname without its namespace, i.e. BaseObject
|
|
static const std::string & | classname () |
| return object's classname without its namespace, i.e. BaseObject
|
|
|
::fwMemory::BufferObject::sptr | m_bufferObject |
|
|
template<class , class , class > |
class | ::fwTools::ClassFactory |
|
class | ::fwTools::Factory |
|
|
virtual const std::string & | getLeafClassname () const override |
| return object's classname without its namespace, i.e. BaseObject
|
|
virtual const std::string & | getClassname () const override |
| return full object's classname with its namespace, i.e. fwCore::BaseObject
|
|
static const std::string & | leafClassname () |
| return object's classname without its namespace, i.e. BaseObject
|
|
static const std::string & | classname () |
| return object's classname without its namespace, i.e. BaseObject
|
|
|
enum | AtomType {
BOOLEAN = 1,
NUMERIC,
STRING,
OBJECT,
SEQUENCE,
MAP,
BLOB
} |
|
typedef ::fwAtoms::factory::Key | Key |
|
static FWATOMS_API const std::string | s_VERSION = "1" |
| Defines fwAtoms version.
|
|
| Base () |
| Constructor.
|
|
Representation of a buffer.
A blob wraps a buffer
Definition at line 23 of file Blob.hpp.
Constructor.
- Parameters
-
key | Private construction key |
Definition at line 32 of file Blob.hpp.
fwMemory::BufferObject::sptr fwAtoms::Blob::getBufferObject |
( |
| ) |
const |
buffer accessor.
- Returns
- the a pointer to the first buffer element.
Definition at line 37 of file Blob.cpp.
Blob::sptr fwAtoms::Blob::New |
( |
::fwMemory::BufferObject::sptr |
buffer | ) |
|
|
static |
Blob::sptr fwAtoms::Blob::New |
( |
void * |
buffer, |
|
|
unsigned int |
size |
|
) |
| |
|
static |
create a new Blob shared ptr.
- Parameters
-
buffer | the buffer |
size | the buffer size |
Definition at line 27 of file Blob.cpp.
References New().
void fwAtoms::Blob::setBufferObject |
( |
const ::fwMemory::BufferObject::sptr & |
bo | ) |
|
buffer accessor.
- Returns
- the a pointer to the first buffer element.
Definition at line 44 of file Blob.cpp.
The documentation for this class was generated from the following files: