7 #ifndef __FWATOMSPATCH_PATCHER_IPATCHER_HPP__ 8 #define __FWATOMSPATCH_PATCHER_IPATCHER_HPP__ 12 #include <fwTools/Object.hpp> 13 #include <fwAtoms/Object.hpp> 15 #include "fwAtomsPatch/patcher/factory/new.hpp" 16 #include "fwAtomsPatch/patcher/registry/detail.hpp" 18 #include "fwAtomsPatch/helper/Object.hpp" 19 #include "fwAtomsPatch/VersionDescriptor.hpp" 20 #include "fwAtomsPatch/VersionsGraph.hpp" 22 #include "fwAtomsPatch/patcher/registry/detail.hpp" 23 #include "fwAtomsPatch/patcher/factory/new.hpp" 27 #include "fwAtomsPatch/config.hpp" 46 typedef ::fwAtomsPatch::patcher::factory::Key
Key;
60 ::fwAtomsPatch::patcher::registry::get()->addFactory(functorKey, &::fwAtomsPatch::patcher::factory::New<T>);
74 FWATOMSPATCH_API
virtual ~
IPatcher();
77 FWATOMSPATCH_API virtual ::fwAtoms::Object::sptr transformObject(::fwAtoms::Object::sptr
object,
78 const std::string &context,
79 const std::string ¤tVersion,
80 const std::string &targetVersion) = 0;
#define fwCoreNonInstanciableClassDefinitionsMacro(_classinfo_)
Generate common code for Non Instanciable classes (Interfaces, Abstract classes, ...)
Contains base functionalities used to transform objects from a version to another.
::fwAtomsPatch::patcher::factory::Key Key
Factory key used by IPatcher implementations.
Class used to register a class factory in factory registry. This class defines also the object factor...
Base class of all patchers.
#define fwCoreAllowSharedFromThis()
Generate getSptr and getConstSptr methods.