|
fw4spl
|
Manages object patching. More...
#include <PatchingManager.hpp>
Public Member Functions | |
| FWATOMSPATCH_API | PatchingManager (std::shared_ptr< ::fwAtoms::Object >object) |
| Default constructor. | |
| FWATOMSPATCH_API | ~PatchingManager () |
| Default destructor. | |
| FWATOMSPATCH_API::fwAtoms::Object::sptr | transformTo (const std::string &newVersion) |
| Transforms the object to the given version. More... | |
Protected Attributes | |
| std::shared_ptr< ::fwAtoms::Object > | m_object |
| Object that we want to patch. | |
Manages object patching.
To be used, PatchingManager requires that available contexts and versions are loaded into the graph of versions through the VersionsManager.
Definition at line 31 of file PatchingManager.hpp.
| fwAtoms::Object::sptr fwAtomsPatch::PatchingManager::transformTo | ( | const std::string & | newVersion | ) |
Transforms the object to the given version.
| fwAtomsPatch::exceptions::MissingInformation | if an information about patching is missing |
| fwAtomsPatch::exceptions::ImpossibleConversion | if there is no patch available to transform an object |
Definition at line 33 of file PatchingManager.cpp.
References fwAtomsPatch::VersionsManager::getDefault(), m_object, OSLM_ASSERT, OSLM_TRACE, OSLM_WARN, and SLM_TRACE.
Referenced by ioAtoms::SWriter::updating().
Here is the call graph for this function:
Here is the caller graph for this function: