7 #include "fwData/Tag.hpp" 9 #include "fwData/Exception.hpp" 10 #include "fwData/registry/macros.hpp" 12 #include <fwCore/base.hpp> 39 Tag::csptr other = Tag::dynamicConstCast(source);
41 "Unable to copy" + (source ? source->getClassname() : std::string(
"<NULL>"))
53 Tag::csptr other = Tag::dynamicConstCast(source);
55 "Unable to copy" + (source ? source->getClassname() : std::string(
"<NULL>"))
This class represent a tag. A tag contains a list of points.
FWDATA_API void cachedDeepCopy(const Object::csptr &source, DeepCopyCacheType &cache) override
Defines deep copy.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Implements data exception class.
::fwData::PointList::sptr m_pointList
list of points
virtual const std::string & getClassname() const override
return full object's classname with its namespace, i.e. fwCore::BaseObject
std::string m_sType
type of tag
FWDATA_API void fieldDeepCopy(const ::fwData::Object::csptr &source)
A deep copy of fields (objects in m_children)
virtual FWDATA_API ~Tag()
Destructor.
static FWDATA_API::fwData::Object::sptr copy(const ::fwData::Object::csptr &source)
return a copy of the source. if source is a null pointer, return a null pointer.
FWDATA_API Tag(::fwData::Object::Key key)
Constructor.
FWDATA_API void shallowCopy(const Object::csptr &source) override
Defines shallow copy.
Contains the representation of the data objects used in the framework.
FWDATA_API void fieldShallowCopy(const ::fwData::Object::csptr &source)
A shallow copy of fields (objects in m_children)