fw4spl
DicomSRContainerNode.cpp
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 #include "fwGdcmIO/container/sr/DicomSRContainerNode.hpp"
8 
9 #include "fwGdcmIO/helper/DicomDataWriter.hxx"
10 
11 namespace fwGdcmIO
12 {
13 namespace container
14 {
15 namespace sr
16 {
17 
18 //------------------------------------------------------------------------------
19 
20 DicomSRContainerNode::DicomSRContainerNode(const DicomCodedAttribute& codedAttribute, const std::string& relationship) :
21  ::fwGdcmIO::container::sr::DicomSRNode(codedAttribute, "CONTAINER", relationship)
22 {
23 }
24 
25 //------------------------------------------------------------------------------
26 
28 {
29 }
30 
31 //------------------------------------------------------------------------------
32 
33 void DicomSRContainerNode::write(::gdcm::DataSet& dataset) const
34 {
36 
37  // Continuity of content - Type 1 - See PS 3.3 C.18.8 (Only for type CONTAINER)
38  // NOTE : Continuity is fixed to SEPARATE because it provides a better compatibility.
39  ::fwGdcmIO::helper::DicomDataWriter::setTagValue< 0x0040, 0xa050 >("SEPARATE", dataset);
40 }
41 
42 //------------------------------------------------------------------------------
43 
44 } //namespace sr
45 } //namespace container
46 } //namespace fwGdcmIO
virtual FWGDCMIO_API ~DicomSRContainerNode()
Destructor.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
virtual FWGDCMIO_API void write(::gdcm::DataSet &dataset) const
Write the SR node in the dataset.
This class defines a node in a SR document.
Definition: DicomSRNode.hpp:27
FWGDCMIO_API DicomSRContainerNode(const DicomCodedAttribute &codedAttribute, const std::string &relationship="")
Constructor.
This class represents a DICOM basic coded entry. It stores the four mains attributes : Code Value...
virtual FWGDCMIO_API void write(::gdcm::DataSet &dataset) const
Write the SR node in the dataset.
Definition: DicomSRNode.cpp:44