fw4spl
reader/iod/InformationObjectDefinition.cpp
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 #include "fwGdcmIO/reader/iod/InformationObjectDefinition.hpp"
8 
9 namespace fwGdcmIO
10 {
11 namespace reader
12 {
13 namespace iod
14 {
15 
16 //------------------------------------------------------------------------------
17 
18 InformationObjectDefinition::InformationObjectDefinition(const ::fwMedData::DicomSeries::csptr& dicomSeries,
19  const SPTR(::fwGdcmIO::container::DicomInstance)& instance,
20  const ::fwLog::Logger::sptr& logger,
21  ProgressCallback progress,
22  CancelRequestedCallback cancel) :
23  m_instance(instance),
24  m_dicomSeries(dicomSeries),
25  m_logger(logger),
26  m_progressCallback(progress),
27  m_cancelRequestedCallback(cancel)
28 {
29  SLM_ASSERT("DicomSeries should not be null.", dicomSeries);
30  SLM_ASSERT("Instance should not be null.", instance);
31  SLM_ASSERT("Logger should not be null.", logger);
32 }
33 
34 //------------------------------------------------------------------------------
35 
37 {
38 }
39 
40 //------------------------------------------------------------------------------
41 
42 } // namespace iod
43 } // namespace reader
44 } // namespace fwGdcmIO
#define SPTR(_cls_)
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.
FWGDCMIO_API InformationObjectDefinition(const ::fwMedData::DicomSeries::csptr &dicomSeries, const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > &instance, const ::fwLog::Logger::sptr &logger=nullptr, ProgressCallback progress=nullptr, CancelRequestedCallback cancel=nullptr)
Constructor.
#define SLM_ASSERT(message, cond)
work like &#39;assert&#39; from &#39;cassert&#39;, with in addition a message logged by spylog (with FATAL loglevel) ...
Definition: spyLog.hpp:308