7 #include "fwStructuralPatch/fwData/Material/V2ToV3.hpp" 9 #include <fwAtoms/String.hpp> 10 #include <fwAtomsPatch/StructuralCreatorDB.hpp> 45 const ::fwAtoms::Object::sptr& previous,
46 const ::fwAtoms::Object::sptr& current,
47 ::fwAtomsPatch::IPatch::NewVersionsType& newVersions)
49 IStructuralPatch::apply(previous, current, newVersions);
FWSTRUCTURALPATCH_API ~V2ToV3()
Destructor.
FWATOMSPATCH_API void updateVersion(std::shared_ptr< ::fwAtoms::Object > current)
Updates the version of the patched object.
Contains base functionalities used to transform objects from a version to another.
std::string m_targetClassname
Target type.
Structural patch to convert a fwData::Image from version '1' to version '2'.
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.
std::string m_targetVersion
Target version.
Contains the representation of the data objects used in the framework.
virtual FWSTRUCTURALPATCH_API void apply(const ::fwAtoms::Object::sptr &previous, const ::fwAtoms::Object::sptr ¤t,::fwAtomsPatch::IPatch::NewVersionsType &newVersions) override
Applies patch.
FWSTRUCTURALPATCH_API V2ToV3()
Constructor.
static FWATOMS_API Boolean::sptr New(std::string value)
Construct an object storing a bool value.