7 #include "fwStructuralPatch/fwMedData/ImageSeries/V2ToV1.hpp" 9 #include <fwAtoms/Object.hpp> 10 #include <fwAtoms/Object.hxx> 44 const ::fwAtoms::Object::sptr& current,
45 ::fwAtomsPatch::IPatch::NewVersionsType& newVersions)
47 IStructuralPatch::apply(previous, current, newVersions);
Structural patch to convert a fwMedData::ImageSeries from version '2' to version '1'.
Namespace containing medical data.
FWATOMSPATCH_API void updateVersion(std::shared_ptr< ::fwAtoms::Object > current)
Updates the version of the patched object.
virtual FWSTRUCTURALPATCH_API void apply(const ::fwAtoms::Object::sptr &previous, const ::fwAtoms::Object::sptr ¤t,::fwAtomsPatch::IPatch::NewVersionsType &newVersions) override
Applies patch.
FWATOMSPATCH_API void removeAttribute(const std::string &name, conditions::Abstract::sptr condition=conditions::Abstract::New())
Removes an attribute.
Contains base functionalities used to transform objects from a version to another.
std::string m_targetClassname
Target type.
FWATOMSPATCH_API IStructuralPatch()
Constructor.
std::string m_originClassname
Origin classname of the object.
Contains creators and structural patches.
std::string m_originVersion
Origin version of the object.
FWSTRUCTURALPATCH_API ~V2ToV1()
Destructor.
std::string m_targetVersion
Target version.
FWSTRUCTURALPATCH_API V2ToV1()
Constructor.