Base class of all patchers.
More...
#include <IPatcher.hpp>
|
class | Registrar |
| Class used to register a class factory in factory registry. This class defines also the object factory ( 'create' ) More...
|
|
|
virtual bool | isA (const std::string &type) const override |
|
FWATOMSPATCH_API | IPatcher () |
| Constructor.
|
|
virtual FWATOMSPATCH_API | ~IPatcher () |
| Destructor.
|
|
virtual FWATOMSPATCH_API::fwAtoms::Object::sptr | transformObject (::fwAtoms::Object::sptr object, const std::string &context, const std::string ¤tVersion, const std::string &targetVersion)=0 |
| Transform the specified object.
|
|
virtual const std::string & | getLeafClassname () const |
| return object's classname without its namespace, i.e. BaseObject
|
|
|
static bool | isTypeOf (const std::string &type) |
|
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 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
|
|
|
enum | Policy { EMPTY = 1,
GENERATE,
MUST_EXIST
} |
|
typedef std::string | IDType |
|
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.
|
|
virtual const std::string & | getLeafClassname () const |
| return object's classname without its namespace, i.e. BaseObject
|
|
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
|
|
std::shared_ptr< ::fwTools::UUID > | m_uuid |
| UUID used to identify the object, notably for serialization.
|
|
Base class of all patchers.
Definition at line 40 of file IPatcher.hpp.
The documentation for this class was generated from the following files: