fw4spl
SrcLib/core/fwDataCamp/src/fwDataCamp/Object.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
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 <fwCamp/UserObject.hpp>
8 
9 #include <fwData/Object.hpp>
10 
11 fwCampImplementDataMacro((fwData)(Object))
12 {
13  builder
14  .property("fields", &::fwData::Object::m_fields)
15  .function("classname", (const std::string& (fwData::Object::*)() const) &::fwData::Object::getClassname)
16  .function("is_a", (bool (fwData::Object::*)(const std::string&) const) &::fwData::Object::isA)
17  ;
18 }
virtual const std::string & getClassname() const override
return full object&#39;s classname with its namespace, i.e. fwCore::BaseObject
Base class for each data object.
Contains the representation of the data objects used in the framework.