7 #ifndef __FWATOMSPATCH_SEMANTICPATCHDB_HPP__ 8 #define __FWATOMSPATCH_SEMANTICPATCHDB_HPP__ 15 #include <fwCore/base.hpp> 16 #include <fwCore/mt/types.hpp> 18 #include "fwAtomsPatch/config.hpp" 40 typedef std::map< VersionIDType, PatchVectorType >
PatchesType;
56 const
std::
string& context,
57 const
std::
string& originVersion,
58 const
std::
string& targetVersion,
59 const
std::
string& objOriginClassname,
60 const
std::
string& objOriginVersion) const;
63 FWATOMSPATCH_API
size_t size() const;
72 FWATOMSPATCH_API virtual ~SemanticPatchDB();
77 FWATOMSPATCH_API SemanticPatchDB( const SemanticPatchDB &cpy );
80 mutable ::
fwCore::mt::ReadWriteMutex m_mutex;
83 PatchesType m_patches;
86 static SemanticPatchDB::sptr s_default;
Contextual patch database. All contextual patches are stored in this database.
Contains base functionalities used to transform objects from a version to another.
This namespace fwCore provides common foundations for FW4SPL.
std::vector< std::shared_ptr< ::fwAtomsPatch::ISemanticPatch > > PatchVectorType
Typedef used to store a list of contextual patches applicable on an object.
std::pair< std::string, std::string > VersionIDType
Typedef used to store the pair type/version of a data structure.
Base class of contextual patches.
std::map< VersionIDType, PatchVectorType > PatchesType
Typedef used to store all the contextual patches.