fw4spl
ActivitySeries1.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/String.hpp>
8 #include <fwAtoms/Object.hpp>
9 
10 #include <fwAtomsPatch/helper/Object.hpp>
11 
12 #include "fwStructuralPatch/creator/fwMedData/ActivitySeries1.hpp"
13 
14 namespace fwStructuralPatch
15 {
16 namespace creator
17 {
18 namespace fwMedData
19 {
20 
22 {
23  m_classname = "::fwMedData::ActivitySeries";
24  m_version = "1";
25 }
26 
27 // ----------------------------------------------------------------------------
28 
30 {
31 }
32 
33 // ----------------------------------------------------------------------------
34 
36 {
37 }
38 
39 // ----------------------------------------------------------------------------
40 
41 ::fwAtoms::Object::sptr ActivitySeries1::create()
42 {
43  ::fwAtoms::Object::sptr series = this->Series1::create();
44  ::fwAtomsPatch::helper::Object helper(series);
45 
46  helper.addAttribute("activity_config_id", ::fwAtoms::String::New(""));
47  helper.addAttribute("data", ::fwAtoms::Object::New());
48 
49  return series;
50 }
51 
52 } // namespace fwMedData
53 } // namespace creator
54 } // namespace fwStructuralPatch
55 
FWSTRUCTURALPATCH_API ActivitySeries1()
Constructor.
virtual FWSTRUCTURALPATCH_API::fwAtoms::Object::sptr create() override
Creates the specified object.
Definition: Series1.cpp:43
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.
virtual FWSTRUCTURALPATCH_API::fwAtoms::Object::sptr create() override
Creates the specified object.
Contains creators and structural patches.
Definition: Landmarks1.hpp:13
Structural creator for fwMedData::ActivitySeries version 1.
Structural creator for fwMedData::Series version 1.
Definition: Series1.hpp:21
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.
std::string m_classname
Object classname.
FWSTRUCTURALPATCH_API ~ActivitySeries1()
Destructor.