fw4spl
Equipment1.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2015.
3  * Distributed under the terms of the GNU Lesser General Public License (LGPL) as
4  * published by the Free Software Foundation.
5  * ****** END LICENSE BLOCK ****** */
6 
7 #include <fwAtoms/Numeric.hpp>
8 #include <fwAtoms/String.hpp>
9 #include <fwAtoms/Map.hpp>
10 
11 #include <fwAtomsPatch/helper/Object.hpp>
12 
13 #include "fwStructuralPatch/creator/fwMedData/Equipment1.hpp"
14 
15 namespace fwStructuralPatch
16 {
17 namespace creator
18 {
19 namespace fwMedData
20 {
21 
22 // ----------------------------------------------------------------------------
23 
25 {
26  m_classname = "::fwMedData::Equipment";
27  m_version = "1";
28 }
29 
30 // ----------------------------------------------------------------------------
31 
33 {
34 }
35 
36 // ----------------------------------------------------------------------------
37 
39 {
40 }
41 
42 // ----------------------------------------------------------------------------
43 
44 ::fwAtoms::Object::sptr Equipment1::create()
45 {
46  ::fwAtoms::Object::sptr equipment = this->createObjBase();
47  ::fwAtomsPatch::helper::Object helper(equipment);
48 
49  helper.addAttribute("institution_name", ::fwAtoms::String::New(""));
50 
51  return equipment;
52 }
53 
54 // ----------------------------------------------------------------------------
55 
56 } // namespace fwMedData
57 } // namespace creator
58 } // namespace fwStructuralPatch
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.
Definition: Abstract.hpp:16
FWSTRUCTURALPATCH_API ~Equipment1()
Destructor.
Definition: Equipment1.cpp:32
FWSTRUCTURALPATCH_API Equipment1()
Constructor.
Definition: Equipment1.cpp:24
Contains creators and structural patches.
Definition: Landmarks1.hpp:13
virtual FWSTRUCTURALPATCH_API::fwAtoms::Object::sptr create() override
Create the specified object (sets &#39;institution_name&#39; attribute).
Definition: Equipment1.cpp:44
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.
Structural creator for fwMedData::Equipment version &#39;1&#39;.
Definition: Equipment1.hpp:21
FWATOMSPATCH_API IStructuralCreator()
Constructor.
std::string m_classname
Object classname.