fw4spl
fwMedData/include/fwMedData/ActivitySeries.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
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 #ifndef __FWMEDDATA_ACTIVITYSERIES_HPP__
8 #define __FWMEDDATA_ACTIVITYSERIES_HPP__
9 
10 #include "fwMedData/config.hpp"
11 #include "fwMedData/Series.hpp"
12 
13 #include <fwData/factory/new.hpp>
14 
15 fwCampAutoDeclareDataMacro((fwMedData)(ActivitySeries), FWMEDDATA_API);
16 
17 namespace fwData
18 {
19 class Composite;
20 }
21 
22 namespace fwMedData
23 {
24 
25 class Series;
26 
30 class FWMEDDATA_CLASS_API ActivitySeries : public ::fwMedData::Series
31 {
32 
33 public:
35  (()),
36  ::fwData::factory::New< ActivitySeries >);
37 
38  fwCampMakeFriendDataMacro((fwMedData)(ActivitySeries));
39 
40  typedef std::string ConfigIdType;
41 
46  FWMEDDATA_API ActivitySeries(::fwData::Object::Key key);
47 
49  FWMEDDATA_API virtual ~ActivitySeries();
50 
52  FWMEDDATA_API void shallowCopy( const ::fwData::Object::csptr& _source ) override;
53 
55  FWMEDDATA_API void cachedDeepCopy( const ::fwData::Object::csptr& _source, DeepCopyCacheType& cache ) override;
56 
64  SPTR(::fwData::Composite) getData() const;
65  void setData(const SPTR(::fwData::Composite)& val);
71  const ConfigIdType& getActivityConfigId () const;
72  void setActivityConfigId (const ConfigIdType& val);
77 protected:
78 
80  ConfigIdType m_activityConfigId;
81 
83  SPTR(::fwData::Composite) m_data;
84 
85 };
86 
87 //-----------------------------------------------------------------------------
88 
89 inline SPTR(::fwData::Composite) ActivitySeries::getData() const
90 {
91  return m_data;
92 }
93 
94 //-----------------------------------------------------------------------------
95 
96 inline void ActivitySeries::setData(const SPTR(::fwData::Composite)& val)
97 {
98  m_data = val;
99 }
100 
101 //-----------------------------------------------------------------------------
102 
103 inline const ActivitySeries::ConfigIdType& ActivitySeries::getActivityConfigId () const
104 {
105  return m_activityConfigId;
106 }
107 
108 //-----------------------------------------------------------------------------
109 
110 inline void ActivitySeries::setActivityConfigId (const ActivitySeries::ConfigIdType& val)
111 {
112  m_activityConfigId = val;
113 }
114 
115 //-----------------------------------------------------------------------------
116 
117 } //end namespace fwMedData
118 
119 #endif // __FWMEDDATA_ACTIVITYSERIES_HPP__
120 
#define SPTR(_cls_)
Namespace containing medical data.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
Contains the representation of the data objects used in the framework.
This class defines a composite object.