7 #ifndef __FWATOMSPATCH_HELPER_OBJECT_HPP__ 8 #define __FWATOMSPATCH_HELPER_OBJECT_HPP__ 10 #include <fwAtoms/Object.hpp> 12 #include "fwAtomsPatch/conditions/Abstract.hpp" 13 #include "fwAtomsPatch/config.hpp" 20 namespace conditions = ::fwAtomsPatch::conditions;
31 FWATOMSPATCH_API
Object(::fwAtoms::Object::sptr metaObject );
34 FWATOMSPATCH_API ~Object();
37 FWATOMSPATCH_API
void addAttribute(
const std::string& name,
38 ::fwAtoms::Base::sptr value,
39 conditions::Abstract::sptr condition = conditions::Abstract::New());
42 FWATOMSPATCH_API
void addOrReplaceAttribute(
const std::string& name,
43 ::fwAtoms::Base::sptr value,
44 conditions::Abstract::sptr condition = conditions::Abstract::New());
47 FWATOMSPATCH_API
void removeAttribute(
const std::string& name,
48 conditions::Abstract::sptr condition = conditions::Abstract::New());
51 FWATOMSPATCH_API
void replaceAttribute(
const std::string& name,
52 ::fwAtoms::Base::sptr newValue,
53 conditions::Abstract::sptr condition = conditions::Abstract::New());
56 FWATOMSPATCH_API
void renameAttribute(
const std::string& name,
const std::string& newName,
57 conditions::Abstract::sptr condition = conditions::Abstract::New()
61 FWATOMSPATCH_API ::fwAtoms::Object::sptr getObject()
const;
66 ::fwAtoms::Object::sptr m_object;
Contains functions used to control patching process by defining conditions on objects.
Contains base functionalities used to transform objects from a version to another.