fw4spl
DicomSRCodeNode.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_DICOMSRCODENODE_HPP__
8 #define __FWGDCMIO_CONTAINER_SR_DICOMSRCODENODE_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 DicomSRCodeNode(const DicomCodedAttribute& codedAttribute, const std::string& relationship,
32  const DicomCodedAttribute& codedEntry);
33 
35  FWGDCMIO_API virtual ~DicomSRCodeNode();
36 
41  FWGDCMIO_API virtual void write(::gdcm::DataSet& dataset) const;
42 
45  {
46  return m_codedEntry;
47  }
48 
50  void setCodedEntry(const DicomCodedAttribute& codedEntry)
51  {
52  m_codedEntry = codedEntry;
53  }
54 
55 protected:
56 
58  virtual void print(std::ostream& os) const;
59 
62 
63 };
64 
65 } //namespace sr
66 } //namespace container
67 } //namespace fwGdcmIO
68 
69 #endif /* __FWGDCMIO_CONTAINER_SR_DICOMSRCODENODE_HPP__ */
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
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...
void setCodedEntry(const DicomCodedAttribute &codedEntry)
Set Coded Entry.
This class defines a CODE node in a SR document.
DicomCodedAttribute m_codedEntry
Coded Entry.
const DicomCodedAttribute & getCodedEntry() const
Get Coded Entry.