7 #include "fwData/registry/macros.hpp" 8 #include "fwData/Exception.hpp" 9 #include "fwData/Port.hpp" 18 m_type(
"TypeNotDefined")
32 Port::csptr other = Port::dynamicConstCast(_source);
34 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
46 Port::csptr other = Port::dynamicConstCast(_source);
48 "Unable to copy" + (_source ? _source->getClassname() : std::string(
"<NULL>"))
FWDATA_API Port(::fwData::Object::Key key)
Constructor.
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_API void shallowCopy(const Object::csptr &_source) override
Retrieve the input data.
FWDATA_API void fieldDeepCopy(const ::fwData::Object::csptr &source)
A deep copy of fields (objects in m_children)
std::string m_type
port type
A port is defined by an identifier and a type.
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)
std::string m_identifier
port identifier
virtual FWDATA_API ~Port()
Destructor.
virtual const std::string & getClassname() const override
return full object's classname with its namespace, i.e. fwCore::BaseObject