7 #ifndef __FWATOMSPATCH_LINKDESCRIPTOR_HPP__ 8 #define __FWATOMSPATCH_LINKDESCRIPTOR_HPP__ 12 #include "fwCore/BaseObject.hpp" 13 #include "fwAtomsPatch/config.hpp" 31 return (a.m_originVersion+a.m_targetVersion) < (b.m_originVersion+b.m_targetVersion);
39 typedef std::map< VersionIDType, VersionIDType >
LinksType;
45 LinkDescriptor(
const std::string& context,
const std::string& originVersion,
const std::string& targetVersion,
46 const std::string& patcher, LinksType links,
int weight = 1);
66 return m_originVersion;
72 return m_targetVersion;
95 std::string m_context;
98 std::string m_originVersion;
101 std::string m_targetVersion;
104 std::string m_patcher;
const std::string & getPatcher() const
Returns patcher classname.
const std::string & getOriginVersion() const
Returns origin version.
const std::string & getContext() const
Returns context name.
Contains base functionalities used to transform objects from a version to another.
Struct used to compare two LinkDescriptor.
const std::string & getTargetVersion() const
Returns target version.
Link descriptor used to identify a link between two versions.
Versions graph description.
int getWeight() const
Returns link weight.
std::pair< std::string, std::string > VersionIDType
VersionID used to link type and version.
std::map< VersionIDType, VersionIDType > LinksType
Links used to link two versions.
const LinksType & getLinks() const
Returns map of links between versions.