fw4spl
fwAtomsPatch::PatchingManager Class Reference

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::Objectm_object
 Object that we want to patch.
 

Detailed Description

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.

Member Function Documentation

fwAtoms::Object::sptr fwAtomsPatch::PatchingManager::transformTo ( const std::string &  newVersion)

Transforms the object to the given version.

Precondition
Given version must be known by the VersionsManager
Exceptions
fwAtomsPatch::exceptions::MissingInformationif an information about patching is missing
fwAtomsPatch::exceptions::ImpossibleConversionif 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:


The documentation for this class was generated from the following files: