fw4spl
fwAtomsPatch::IPatch Class Referenceabstract

Base class of all patches. More...

#include <IPatch.hpp>

+ Inheritance diagram for fwAtomsPatch::IPatch:
+ Collaboration diagram for fwAtomsPatch::IPatch:

Public Types

Typedefs
typedef std::map< ::fwAtoms::Object::sptr,::fwAtoms::Object::sptr > NewVersionsType
 

Public Member Functions

virtual bool isA (const std::string &type) const override
 
FWATOMSPATCH_API IPatch ()
 Constructor. Does nothing.
 
FWATOMSPATCH_API IPatch (const IPatch &cpy)
 Copy constructor.
 
virtual FWATOMSPATCH_API ~IPatch ()
 Destructor. Does nothing.
 
virtual FWATOMSPATCH_API void apply (const ::fwAtoms::Object::sptr &previous, const ::fwAtoms::Object::sptr &current,::fwAtomsPatch::IPatch::NewVersionsType &newVersions)=0
 Applies the patch to the specified object.
 
virtual FWATOMSPATCH_API const std::string & getOriginClassname () const
 Returns the origin classname of the object.
 
virtual FWATOMSPATCH_API const std::string & getOriginVersion () const
 Returns the origin version of the 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 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 Attributes

std::string m_originClassname
 Origin classname of the object.
 
std::string m_originVersion
 Origin version of the object.
 

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
 

Detailed Description

Base class of all patches.

Definition at line 27 of file IPatch.hpp.


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