7 #include "fwStructuralPatch/fwMedData/ImageSeries/V1ToV2.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);
53 helper.
addAttribute(
"dicom_reference", ::fwAtoms::Object::sptr());
Namespace containing medical data.
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 updateVersion(std::shared_ptr< ::fwAtoms::Object > current)
Updates the version of the patched object.
FWSTRUCTURALPATCH_API V1ToV2()
Constructor.
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.
FWATOMSPATCH_API void addAttribute(const std::string &name,::fwAtoms::Base::sptr value, conditions::Abstract::sptr condition=conditions::Abstract::New())
Adds a new attribute in the current object.
Structural patch to convert a fwMedData::ImageSeries from version '1' to version '2'.
std::string m_targetVersion
Target version.
FWSTRUCTURALPATCH_API ~V1ToV2()
Destructor.