fw4spl
core/fwMedData/include/fwMedData/Equipment.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_EQUIPMENT_HPP__
8 #define __FWMEDDATA_EQUIPMENT_HPP__
9 
10 #include "fwMedData/config.hpp"
11 #include "fwMedData/types.hpp"
12 
13 #include <fwData/factory/new.hpp>
14 #include <fwData/Object.hpp>
15 
16 fwCampAutoDeclareDataMacro((fwMedData)(Equipment), FWMEDDATA_API);
17 
18 namespace fwMedData
19 {
20 
24 class FWMEDDATA_CLASS_API Equipment : public ::fwData::Object
25 {
26 
27 public:
28  fwCoreClassDefinitionsWithFactoryMacro( (Equipment)(::fwData::Object), (()), ::fwData::factory::New< Equipment >);
29 
30  fwCampMakeFriendDataMacro((fwMedData)(Equipment));
31 
36  FWMEDDATA_API Equipment(::fwData::Object::Key key);
37 
39  FWMEDDATA_API virtual ~Equipment();
40 
42  FWMEDDATA_API void shallowCopy( const ::fwData::Object::csptr& _source ) override;
43 
45  FWMEDDATA_API void cachedDeepCopy( const ::fwData::Object::csptr& _source, DeepCopyCacheType& cache ) override;
46 
54  const DicomValueType& getInstitutionName() const;
55  void setInstitutionName(const DicomValueType& val);
60 protected:
61 
63  DicomValueType m_institutionName;
64 };
65 
66 //-----------------------------------------------------------------------------
67 
68 inline const DicomValueType& Equipment::getInstitutionName() const
69 {
70  return m_institutionName;
71 }
72 
73 //-----------------------------------------------------------------------------
74 
75 inline void Equipment::setInstitutionName(const DicomValueType& val)
76 {
77  m_institutionName = val;
78 }
79 
80 //-----------------------------------------------------------------------------
81 
82 } //end namespace fwMedData
83 
84 #endif // __FWMEDDATA_EQUIPMENT_HPP__
85 
Namespace containing medical data.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
DicomValueType m_institutionName
Institution name.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
void setInstitutionName(const DicomValueType &val)
Institution where the equipment that produced the composite instances is located (0008,0080)
Base class for each data object.
const DicomValueType & getInstitutionName() const
Institution where the equipment that produced the composite instances is located (0008,0080)