9 #include "fwGdcmIO/config.hpp" 10 #include "fwGdcmIO/container/DicomInstance.hpp" 12 #include <fwData/Object.hpp> 14 #include <gdcmWriter.h> 26 template<
class DATATYPE >
39 const CSPTR(DATATYPE)&
object);
42 FWGDCMIO_API
virtual ~TemplateID();
47 SPTR(::gdcm::Writer) m_writer;
58 template< class DATATYPE >
59 TemplateID<DATATYPE>::TemplateID(const
SPTR(::gdcm::Writer)& writer,
60 const
SPTR(::
fwGdcmIO::container::DicomInstance)& instance,
61 const
CSPTR(DATATYPE)&
object) :
66 SLM_ASSERT(
"Writer should not be null.", writer);
67 SLM_ASSERT(
"Instance should not be null.", instance);
68 SLM_ASSERT(
"Object should not be null.",
object);
73 template<
class DATATYPE >
This class defines a DICOM SOP instance. It is useful during the whole writing process. This class allows to share data between module writers.
virtual FWGDCMIO_API ~TemplateID()
Destructor.
TemplateID base class used to write templates.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
#define SLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...