7 #include "fwStructuralPatch/fwMedData/ModelSeries/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);
Namespace containing medical data.
Structural patch to convert a fwMedData::ModelSeries from version '2' to version '1'.
FWATOMSPATCH_API void updateVersion(std::shared_ptr< ::fwAtoms::Object > current)
Updates the version of the patched object.
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.
FWSTRUCTURALPATCH_API V2ToV1()
Constructor.
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.
std::string m_targetVersion
Target version.
virtual FWSTRUCTURALPATCH_API void apply(const ::fwAtoms::Object::sptr &previous, const ::fwAtoms::Object::sptr ¤t,::fwAtomsPatch::IPatch::NewVersionsType &newVersions) override
Applies patch.
FWSTRUCTURALPATCH_API ~V2ToV1()
Destructor.