9 #include "fwGdcmIO/config.hpp" 10 #include "fwGdcmIO/container/DicomInstance.hpp" 12 #include <fwData/Object.hpp> 14 #include <fwLog/Logger.hpp> 16 #include <gdcmReader.h> 28 template<
class DATATYPE >
42 const SPTR(::gdcm::Reader)& reader,
44 const SPTR(DATATYPE)&
object,
45 const ::fwLog::Logger::sptr& logger);
48 FWGDCMIO_API
virtual ~TemplateID();
56 SPTR(::gdcm::Reader) m_reader;
70 template< class DATATYPE >
71 TemplateID<DATATYPE>::TemplateID(const
CSPTR(::
fwMedData::DicomSeries)& dicomSeries,
72 const
SPTR(::gdcm::Reader)& reader,
73 const
SPTR(::
fwGdcmIO::container::DicomInstance)& instance,
74 const
SPTR(DATATYPE)&
object,
75 const ::
fwLog::Logger::sptr& logger) :
76 m_dicomSeries(dicomSeries),
82 SLM_ASSERT(
"DicomSeries should not be null.", dicomSeries);
83 SLM_ASSERT(
"Reader should not be null.", reader);
84 SLM_ASSERT(
"Instance should not be null.", instance);
85 SLM_ASSERT(
"Object should not be null.",
object);
86 SLM_ASSERT(
"Logger should not be null.", logger);
91 template<
class DATATYPE >
Namespace containing medical data.
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.
fwLog contains classes used to manage logs.
#define SLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...
virtual FWGDCMIO_API ~TemplateID()
Destructor.
TemplateID base class used to write templates.