fw4spl
DicomSRTextNode.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_DICOMSRTEXTNODE_HPP__
8 #define __FWGDCMIO_CONTAINER_SR_DICOMSRTEXTNODE_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 DicomSRTextNode(const DicomCodedAttribute& codedAttribute,
32  const std::string& relationship, const std::string textValue);
33 
35  FWGDCMIO_API virtual ~DicomSRTextNode();
36 
41  FWGDCMIO_API virtual void write(::gdcm::DataSet& dataset) const;
42 
44  const std::string& getTextValue() const
45  {
46  return m_textValue;
47  }
48 
50  void setTextValue(const std::string& textValue)
51  {
52  m_textValue = textValue;
53  }
54 
55 protected:
56 
58  virtual void print(std::ostream& os) const;
59 
61  std::string m_textValue;
62 };
63 
64 } //namespace sr
65 } //namespace container
66 } //namespace fwGdcmIO
67 
68 #endif /* __FWGDCMIO_CONTAINER_SR_DICOMSRTEXTNODE_HPP__ */
This class defines a TEXT node in a SR document.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
This class defines a node in a SR document.
Definition: DicomSRNode.hpp:27
std::string m_textValue
Text Value (0040, a160)
This class represents a DICOM basic coded entry. It stores the four mains attributes : Code Value...
void setTextValue(const std::string &textValue)
Set Text value.
const std::string & getTextValue() const
Get Text value.