7 #include <fwAtoms/String.hpp> 8 #include <fwAtoms/Object.hpp> 9 #include <fwAtoms/Sequence.hpp> 11 #include <fwAtomsPatch/StructuralCreatorDB.hpp> 12 #include <fwAtomsPatch/helper/Object.hpp> 14 #include "fwStructuralPatch/creator/fwMedData/Series1.hpp" 49 helper.
addAttribute(
"patient", creators->create(
"::fwMedData::Patient",
"1") );
50 helper.
addAttribute(
"study", creators->create(
"::fwMedData::Study",
"1") );
51 helper.
addAttribute(
"equipment", creators->create(
"::fwMedData::Equipment",
"1") );
57 helper.
addAttribute(
"performing_physicians_name", ::fwAtoms::Sequence::New());
virtual FWSTRUCTURALPATCH_API::fwAtoms::Object::sptr create() override
Creates the specified object.
Namespace containing medical data.
std::string m_version
Object version.
static FWATOMS_API String::sptr New(std::string value)
Construct a new Object represented a string.
Contains base functionalities used to transform objects from a version to another.
FWSTRUCTURALPATCH_API Series1()
Constructor.
FWSTRUCTURALPATCH_API ~Series1()
Destructor.
Contains creators and structural patches.
Structural creator for fwMedData::Series version 1.
FWATOMSPATCH_API::fwAtoms::Object::sptr createObjBase() const
Create the object base : create meta infos : classname, version and id.
FWATOMSPATCH_API void addAttribute(const std::string &name,::fwAtoms::Base::sptr value, conditions::Abstract::sptr condition=conditions::Abstract::New())
Adds a new attribute in the current object.
static StructuralCreatorDB::sptr getDefault()
Returns the default instance of StructuralCreatorDB.
FWATOMSPATCH_API IStructuralCreator()
Constructor.
std::string m_classname
Object classname.