7 #ifndef __FWDATA_EDGE_HPP__ 8 #define __FWDATA_EDGE_HPP__ 10 #include "fwData/config.hpp" 11 #include "fwData/factory/new.hpp" 12 #include "fwData/Object.hpp" 16 fwCampAutoDeclareDataMacro((
fwData)(Edge), FWDATA_API);
31 FWDATA_API
static std::string NATURE_FLOW;
32 FWDATA_API
static std::string NATURE_DATA;
40 FWDATA_API
virtual ~
Edge();
43 FWDATA_API
void shallowCopy(
const Object::csptr& _source )
override;
46 FWDATA_API
void cachedDeepCopy(
const Object::csptr& _source, DeepCopyCacheType& cache)
override;
53 FWDATA_API
void setIdentifiers(
const std::string& _fromPortIndentifier,
const std::string& _toPortIndentifier);
60 FWDATA_API std::pair<std::string, std::string> getIdentifiers()
const;
63 FWDATA_API std::string getFromPortID()
const;
66 FWDATA_API std::string getToPortID()
const;
69 FWDATA_API std::string getPortID(
bool upStream)
const;
72 FWDATA_API
void setNature(std::string nature);
75 FWDATA_API
const std::string& getNature()
const;
79 std::string m_fromPortIdentifier;
80 std::string m_toPortIdentifier;
86 #endif // __FWDATA_EDGE_HPP__ Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Base class for each data object.
Contains the representation of the data objects used in the framework.
This class defines an edge object.