9 #include "fwGdcmIO/config.hpp" 10 #include "fwGdcmIO/container/DicomInstance.hpp" 12 #include <fwData/Object.hpp> 14 #include <fwLog/Logger.hpp> 16 #include <gdcmWriter.h> 30 template<
class DATATYPE >
35 typedef std::function< void (std::uint64_t) > ProgressCallback;
36 typedef std::function< bool () > CancelRequestedCallback;
49 const CSPTR(DATATYPE)&
object,
50 const ::fwLog::Logger::sptr& logger =
nullptr,
51 ProgressCallback progress =
nullptr,
52 CancelRequestedCallback cancel =
nullptr);
55 FWGDCMIO_API
virtual ~InformationEntity();
60 SPTR(::gdcm::Writer) m_writer;
72 ProgressCallback m_progressCallback;
75 CancelRequestedCallback m_cancelRequestedCallback;
80 template< class DATATYPE >
81 InformationEntity<DATATYPE>::InformationEntity(const
SPTR(::gdcm::Writer)& writer,
82 const
SPTR(::
fwGdcmIO::container::DicomInstance)& instance,
83 const
CSPTR(DATATYPE)&
object,
84 const ::
fwLog::Logger::sptr& logger,
85 ProgressCallback progress,
86 CancelRequestedCallback cancel) :
91 m_progressCallback(progress),
92 m_cancelRequestedCallback(cancel)
94 SLM_ASSERT(
"Writer should not be null.", writer);
95 SLM_ASSERT(
"Instance should not be null.", instance);
96 SLM_ASSERT(
"Object should not be null.",
object);
101 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.
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) ...