fw4spl
amp/src/fwDataCamp/Array.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #include <fwMemory/camp/mapper.hpp>
8 #include <fwMemory/BufferObject.hpp>
9 
10 #include <fwCamp/UserObject.hpp>
11 
12 #include "fwDataCamp/Array.hpp"
13 
14 //------------------------------------------------------------------------------
15 
16 fwCampImplementDataMacro((fwData)(Array))
17 {
18  builder.base< ::fwData::Object>()
19  .tag("object_version", "1")
20  .tag("lib_name", "fwData")
21  .property("strides", &::fwData::Array::m_strides)
22  .property("size", &::fwData::Array::m_size)
23  .property("type", &::fwData::Array::m_type)
24  .property("nb_of_components", &::fwData::Array::m_nbOfComponents)
25  .property("buffer", &::fwData::Array::m_bufferObject)
26  .property("isOwner", &::fwData::Array::m_isBufferOwner)
27  ;
28 }
Base class for each data object.
Contains the representation of the data objects used in the framework.