/* ***** BEGIN LICENSE BLOCK *****
 * FW4SPL - Copyright (C) IRCAD, 2009-2012.
 * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
 * published by the Free Software Foundation.
 * ****** END LICENSE BLOCK ****** */

#include <fwMemory/camp/mapper.hpp>
#include <fwMemory/BufferObject.hpp>

#include <fwCamp/UserObject.hpp>

#include "fwDataCamp/Array.hpp"

//------------------------------------------------------------------------------

fwCampImplementDataMacro((fwData)(Array))
{
    builder.base< ::fwData::Object>()
        .tag("object_version", "1")
        .tag("lib_name", "fwData")
        .property("strides", &::fwData::Array::m_strides)
        .property("size", &::fwData::Array::m_size)
        .property("type", &::fwData::Array::m_type)
        .property("nb_of_components", &::fwData::Array::m_nbOfComponents)
        .property("buffer", &::fwData::Array::m_attrBufferObject)
        .property("isOwner", &::fwData::Array::m_isBufferOwner)
        ;
}
