fw4spl
DicomSRUIDRefNode.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 __FWGDCMIO_CONTAINER_SR_DICOMSRUIDREFNODE_HPP__
8 #define __FWGDCMIO_CONTAINER_SR_DICOMSRUIDREFNODE_HPP__
9 
10 #include "fwGdcmIO/config.hpp"
11 #include "fwGdcmIO/container/DicomCodedAttribute.hpp"
12 #include "fwGdcmIO/container/sr/DicomSRNode.hpp"
13 
14 #include <gdcmDataSet.h>
15 
16 namespace fwGdcmIO
17 {
18 namespace container
19 {
20 namespace sr
21 {
22 
27 {
28 public:
29 
31  FWGDCMIO_API DicomSRUIDRefNode(const DicomCodedAttribute& codedAttribute,
32  const std::string& relationship, const std::string uidValue);
33 
35  FWGDCMIO_API virtual ~DicomSRUIDRefNode();
36 
41  FWGDCMIO_API virtual void write(::gdcm::DataSet& dataset) const;
42 
44  const std::string& getUIDValue() const
45  {
46  return m_uidValue;
47  }
48 
50  void setUIDValue(const std::string& uidValue)
51  {
52  m_uidValue = uidValue;
53  }
54 
55 protected:
56 
58  virtual void print(std::ostream& os) const;
59 
61  std::string m_uidValue;
62 };
63 
64 } //namespace sr
65 } //namespace container
66 } //namespace fwGdcmIO
67 
68 #endif /* __FWGDCMIO_CONTAINER_SR_DICOMSRUIDREFNODE_HPP__ */
std::string m_uidValue
Text Value (0040, a124)
This class defines a UIDREF node in a SR document.
const std::string & getUIDValue() const
Get UID value.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
void setUIDValue(const std::string &uidValue)
Set UID value.
This class defines a node in a SR document.
Definition: DicomSRNode.hpp:27
This class represents a DICOM basic coded entry. It stores the four mains attributes : Code Value...