7 #include <fwTools/UUID.hpp> 9 #include <fwAtoms/Map.hpp> 11 #include <fwAtomsPatch/types.hpp> 13 #include "fwAtomsPatch/IStructuralCreator.hpp" 14 #include "fwAtomsPatch/helper/functions.hpp" 55 ::fwAtoms::Object::sptr obj = ::fwAtoms::Object::New();
57 ::fwAtomsPatch::helper::setClassname(obj,
m_classname);
58 ::fwAtomsPatch::helper::setVersion(obj,
m_version);
59 ::fwAtomsPatch::helper::generateID( obj );
Base class of all structural creators. Creates a new atom object with the default values correspondin...
FWATOMSPATCH_API void cleanFields(const ::fwAtoms::Object::sptr &obj)
Cleans object fields (also creates them if they are missing)
std::string m_version
Object version.
virtual FWATOMSPATCH_API ~IStructuralCreator()
Destructor.
Contains base functionalities used to transform objects from a version to another.
virtual FWATOMSPATCH_API const std::string & getObjectClassname() const
Returns the classname of the object.
virtual FWATOMSPATCH_API const std::string & getObjectVersion() const
Returns the version of the object.
FWATOMSPATCH_API::fwAtoms::Object::sptr createObjBase() const
Create the object base : create meta infos : classname, version and id.
FWATOMSPATCH_API IStructuralCreator()
Constructor.
std::string m_classname
Object classname.