9 #include "fwData/config.hpp" 10 #include "fwData/factory/new.hpp" 11 #include "fwData/Object.hpp" 13 fwCampAutoDeclareDataMacro((
fwData)(Port), FWDATA_API);
32 FWDATA_API
virtual ~
Port();
38 std::string& getIdentifier ();
39 const std::string& getIdentifier ()
const;
40 void setIdentifier (
const std::string& _identifier);
48 std::string& getType ();
49 const std::string& getType ()
const;
50 void setType (
const std::string& _type);
61 FWDATA_API
void shallowCopy(
const Object::csptr& _source )
override;
64 FWDATA_API
void cachedDeepCopy(
const Object::csptr& _source, DeepCopyCacheType& cache)
override;
78 return this->m_identifier;
85 return this->m_identifier;
92 this->m_identifier = _identifier;
113 this->m_type = _type;
void setIdentifier(const std::string &_identifier)
Retrieve the identifier.
std::string & getIdentifier()
Retrieve the identifier.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
std::string & getType()
Retrieve the type.
std::string m_type
port type
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
A port is defined by an identifier and a type.
Base class for each data object.
void setType(const std::string &_type)
Retrieve the type.
Contains the representation of the data objects used in the framework.
std::string m_identifier
port identifier