fw4spl
fwAtomsPatch::helper Namespace Reference

Contains functions to facilitate object patching. More...

Classes

class  Object
 Object helper. More...
 

Functions

FWATOMSPATCH_API std::string getClassname (const ::fwAtoms::Object::sptr &obj)
 Get classname of an object.
 
FWATOMSPATCH_API void setClassname (const ::fwAtoms::Object::sptr &obj, const std::string &newClassname)
 Set classname of an object.
 
FWATOMSPATCH_API std::string getVersion (const ::fwAtoms::Object::sptr &obj)
 Get version of an object.
 
FWATOMSPATCH_API void setVersion (const ::fwAtoms::Object::sptr &obj, const std::string &newVersion)
 Set version of an object.
 
FWATOMSPATCH_API void generateID (const ::fwAtoms::Object::sptr &obj)
 Generates new id for the object (also creates it if it is missing )
 
FWATOMSPATCH_API void cleanFields (const ::fwAtoms::Object::sptr &obj)
 Cleans object fields (also creates them if they are missing)
 
FWATOMSPATCH_API void changeUID (const ::fwAtoms::Object::sptr &obj)
 Generates new UUID for object and child objects.
 
FWATOMSPATCH_API void changeMapUID (const ::fwAtoms::Map::sptr &map)
 Generates new UUID for map objects and child objects.
 
FWATOMSPATCH_API void changeSeqUID (const ::fwAtoms::Sequence::sptr &seq)
 Generates new UUID for seq objects and child objects.
 

Detailed Description

Contains functions to facilitate object patching.