7 #ifndef __FWATOMSPATCH_HELPER_FUNCTIONS_HPP__ 8 #define __FWATOMSPATCH_HELPER_FUNCTIONS_HPP__ 10 #include <fwAtoms/Base.hpp> 11 #include <fwAtoms/Sequence.hpp> 12 #include <fwAtoms/Map.hpp> 13 #include <fwAtoms/Object.hpp> 15 #include "fwAtomsPatch/config.hpp" 22 FWATOMSPATCH_API std::string
getClassname( const ::fwAtoms::Object::sptr & obj );
25 FWATOMSPATCH_API
void setClassname( const ::fwAtoms::Object::sptr & obj,
const std::string & newClassname );
28 FWATOMSPATCH_API std::string
getVersion( const ::fwAtoms::Object::sptr & obj );
31 FWATOMSPATCH_API
void setVersion( const ::fwAtoms::Object::sptr & obj,
const std::string & newVersion );
34 FWATOMSPATCH_API
void generateID( const ::fwAtoms::Object::sptr & obj );
37 FWATOMSPATCH_API
void cleanFields( const ::fwAtoms::Object::sptr & obj );
40 FWATOMSPATCH_API
void changeUID( const ::fwAtoms::Object::sptr & obj );
43 FWATOMSPATCH_API
void changeMapUID( const ::fwAtoms::Map::sptr & map );
46 FWATOMSPATCH_API
void changeSeqUID( const ::fwAtoms::Sequence::sptr & seq );
51 #endif // __FWATOMSPATCH_HELPER_FUNCTIONS_HPP__ FWATOMSPATCH_API void setVersion(const ::fwAtoms::Object::sptr &obj, const std::string &newVersion)
Set version of an object.
FWATOMSPATCH_API std::string getClassname(const ::fwAtoms::Object::sptr &obj)
Get classname of an object.
FWATOMSPATCH_API void cleanFields(const ::fwAtoms::Object::sptr &obj)
Cleans object fields (also creates them if they are missing)
FWATOMSPATCH_API void changeSeqUID(const ::fwAtoms::Sequence::sptr &seq)
Generates new UUID for seq objects and child objects.
FWATOMSPATCH_API void generateID(const ::fwAtoms::Object::sptr &obj)
Generates new id for the object (also creates it if it is missing )
Contains base functionalities used to transform objects from a version to another.
FWATOMSPATCH_API void changeMapUID(const ::fwAtoms::Map::sptr &map)
Generates new UUID for map objects and child objects.
FWATOMSPATCH_API void changeUID(const ::fwAtoms::Object::sptr &obj)
Generates new UUID for object and child objects.
FWATOMSPATCH_API std::string getVersion(const ::fwAtoms::Object::sptr &obj)
Get version of an object.
FWATOMSPATCH_API void setClassname(const ::fwAtoms::Object::sptr &obj, const std::string &newClassname)
Set classname of an object.