fw4spl
|
This patcher adds required meta infos on composites describing a 'Medical workspace'. More...
#include <MedicalWorkspacePatcher.hpp>
Public Member Functions | |
virtual bool | isA (const std::string &type) const override |
FWMDSEMANTICPATCH_API | MedicalWorkspacePatcher (::fwAtomsPatch::patcher::IPatcher::Key key) |
Constructor. | |
virtual FWMDSEMANTICPATCH_API | ~MedicalWorkspacePatcher () |
Destructor. | |
virtual FWMDSEMANTICPATCH_API::fwAtoms::Object::sptr | transformObject (::fwAtoms::Object::sptr object, const std::string &context, const std::string ¤tVersion, const std::string &targetVersion) override |
Applies the patch to the specified object. More... | |
Public Member Functions inherited from fwAtomsPatch::patcher::DefaultPatcher | |
FWATOMSPATCH_API | DefaultPatcher (::fwAtomsPatch::patcher::IPatcher::Key key) |
Constructor. | |
virtual FWATOMSPATCH_API | ~DefaultPatcher () |
Destructor. | |
Public Member Functions inherited from fwAtomsPatch::patcher::IPatcher | |
FWATOMSPATCH_API | IPatcher () |
Constructor. | |
virtual FWATOMSPATCH_API | ~IPatcher () |
Destructor. | |
Public Member Functions inherited from fwTools::Object | |
Public Member Functions inherited from fwCore::BaseObject |
Static Public Member Functions | |
static bool | isTypeOf (const std::string &type) |
Static Public Member Functions inherited from fwAtomsPatch::patcher::DefaultPatcher | |
static bool | isTypeOf (const std::string &type) |
static const std::string & | leafClassname () |
return object's classname without its namespace, i.e. BaseObject | |
static const std::string & | classname () |
return object's classname without its namespace, i.e. BaseObject | |
Static Public Member Functions inherited from fwAtomsPatch::patcher::IPatcher | |
static bool | isTypeOf (const std::string &type) |
static const std::string & | classname () |
return full object's classname with its namespace, i.e. fwCore::BaseObject | |
Static Public Member Functions inherited from fwTools::Object | |
static bool | isTypeOf (const std::string &type) |
static const std::string & | classname () |
return full object's classname with its namespace, i.e. fwCore::BaseObject | |
Static Public Member Functions inherited from fwCore::BaseObject | |
static bool | isTypeOf (const std::string &type) |
static const std::string & | leafClassname () |
return object's classname without its namespace, i.e. BaseObject | |
static const std::string & | classname () |
return object's classname without its namespace, i.e. BaseObject | |
Protected Member Functions | |
FWMDSEMANTICPATCH_API void | addCompositeTypes (::fwAtoms::Object::sptr object) |
Adds a meta info "compositeType" if the object is a composite with a special type. | |
Protected Member Functions inherited from fwAtomsPatch::patcher::DefaultPatcher | |
virtual FWATOMSPATCH_API::fwAtoms::Object::sptr | processStructuralObject (::fwAtoms::Object::sptr current) |
Process structural atom object. | |
virtual FWATOMSPATCH_API::fwAtoms::Object::sptr | processContextualObject (::fwAtoms::Object::sptr current) |
Process contextual atom object. | |
virtual FWATOMSPATCH_API::fwAtoms::Base::sptr | processBase (::fwAtoms::Base::sptr base) |
Process atom base. | |
virtual FWATOMSPATCH_API::fwAtoms::Map::sptr | processMapping (::fwAtoms::Map::sptr map) |
Process atom mapping. | |
virtual FWATOMSPATCH_API::fwAtoms::Sequence::sptr | processSequence (::fwAtoms::Sequence::sptr seq) |
Process atom sequence. | |
virtual FWATOMSPATCH_API::fwAtoms::Object::sptr | applyStructuralPatch (::fwAtoms::Object::sptr previous,::fwAtoms::Object::sptr current) |
Apply structural patch. | |
virtual FWATOMSPATCH_API::fwAtoms::Object::sptr | applyContextualPatch (::fwAtoms::Object::sptr previous,::fwAtoms::Object::sptr current) |
Apply contextual patch. | |
FWATOMSPATCH_API bool | isKnown (const ::fwAtoms::Base::sptr &base) |
Return true if the object is known in the target version. | |
Protected Member Functions inherited from fwTools::fwID | |
FWTOOLS_API bool | hasID () const |
Return true if the object has an id set. More... | |
FWTOOLS_API IDType | getID (Policy policy=GENERATE) const |
Returns the id of the object. If it is not set and the policy value is. More... | |
virtual FWTOOLS_API void | setID (IDType newID) |
Set a newID for the object, (newID must not exist in fwID), the oldest one is released. More... | |
FWTOOLS_API void | resetID () |
Release the id for the object. More... | |
fwID () | |
Constructor : does nothing. | |
Friends | |
template<class , class , class > | |
class | ::fwTools::ClassFactory |
class | ::fwTools::Factory |
Demangling methods | |
virtual const std::string & | getLeafClassname () const override |
return object's classname without its namespace, i.e. BaseObject | |
virtual const std::string & | getClassname () const override |
return full object's classname with its namespace, i.e. fwCore::BaseObject | |
static const std::string & | leafClassname () |
return object's classname without its namespace, i.e. BaseObject | |
static const std::string & | classname () |
return object's classname without its namespace, i.e. BaseObject | |
Additional Inherited Members | |
Public Types inherited from fwAtomsPatch::patcher::IPatcher | |
typedef ::fwAtomsPatch::patcher::factory::Key | Key |
Factory key used by IPatcher implementations. | |
Protected Types inherited from fwAtomsPatch::patcher::DefaultPatcher | |
enum | PassType { Structural, Contextual } |
Type of the pass. | |
typedef std::map< std::string,::fwAtoms::Object::sptr > | CacheType |
typedef std::map< ::fwAtoms::Object::sptr,::fwAtoms::Object::sptr > | NewVersionsType |
Protected Types inherited from fwTools::fwID | |
enum | Policy { EMPTY = 1, GENERATE, MUST_EXIST } |
typedef std::string | IDType |
Static Protected Member Functions inherited from fwTools::fwID | |
static bool | isTypeOf (const std::string &type) |
static FWTOOLS_API bool | exist (IDType _id) |
static FWTOOLS_API std::shared_ptr< ::fwTools::Object > | getObject (IDType requestID) |
Retrieve the object attached to the given id. Return a null sptr if no correspondence exist. More... | |
static const std::string & | leafClassname () |
return object's classname without its namespace, i.e. BaseObject | |
static const std::string & | classname () |
return object's classname without its namespace, i.e. BaseObject | |
Protected Attributes inherited from fwAtomsPatch::patcher::DefaultPatcher | |
PassType | m_pass |
Current type of pass during patching. | |
CacheType | m_cache |
Cache used to store objects which have already been patched (in order to avoid patching the same object twice). | |
NewVersionsType | m_newVersions |
Map used to store the correspondence between an old object and a new one. | |
::fwAtoms::Object::sptr | m_object |
Current object being patched. | |
std::string | m_context |
Context where the object is patched. | |
::fwAtomsPatch::VersionsGraph::NodeIDType | m_currentVersion |
Current object version. | |
::fwAtomsPatch::VersionsGraph::NodeIDType | m_targetVersion |
Target version for current object. | |
::fwAtomsPatch::VersionsGraph::sptr | m_versionsGraph |
Versions graph. | |
Protected Attributes inherited from fwTools::Object | |
std::shared_ptr< ::fwTools::UUID > | m_uuid |
UUID used to identify the object, notably for serialization. | |
This patcher adds required meta infos on composites describing a 'Medical workspace'.
Composite describing a 'Medical workspace' contains childs designated by keys 'patientDB', 'planningDB' and 'processingDB'.
Definition at line 40 of file MedicalWorkspacePatcher.hpp.
|
overridevirtual |
Applies the patch to the specified object.
Adds meta info 'compositeType' with value 'MedicalWorkspace' if current object has childs designated with keys 'patientDB', 'planningDB' and 'processingDB', and applies patcher 'DefaultPatcher'.
Reimplemented from fwAtomsPatch::patcher::DefaultPatcher.
Definition at line 41 of file MedicalWorkspacePatcher.cpp.
References addCompositeTypes().