fw4spl
io/fwGdcmIO/include/fwGdcmIO/reader/ie/Patient.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
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 #pragma once
8 
9 #include "fwGdcmIO/reader/ie/InformationEntity.hpp"
10 
11 #include <fwMedData/Patient.hpp>
12 
13 namespace fwGdcmIO
14 {
15 namespace reader
16 {
17 namespace ie
18 {
19 
23 class FWGDCMIO_CLASS_API Patient : public ::fwGdcmIO::reader::ie::InformationEntity< ::fwMedData::Patient >
24 {
25 
26 public:
37  FWGDCMIO_API Patient(const CSPTR(::fwMedData::DicomSeries)& dicomSeries,
38  const SPTR(::gdcm::Reader)& reader,
39  const SPTR(::fwGdcmIO::container::DicomInstance)& instance,
40  const ::fwMedData::Patient::sptr& patient,
41  const ::fwLog::Logger::sptr& logger = nullptr,
42  ProgressCallback progress = nullptr,
43  CancelRequestedCallback cancel = nullptr);
44 
46  FWGDCMIO_API virtual ~Patient();
47 
52  FWGDCMIO_API virtual void readPatientModule();
53 };
54 
55 } // namespace ie
56 } // namespace reader
57 } // namespace fwGdcmIO
#define SPTR(_cls_)
#define CSPTR(_cls_)
InformationEntity base class used to read modules.
This class defines a DICOM SOP instance. It is useful during the whole writing process. This class allows to share data between module writers.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.