fw4spl
writer/iod/InformationObjectDefinition.cpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2016.
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/writer/iod/InformationObjectDefinition.hpp"
8 
9 #include <fwCore/spyLog.hpp>
10 
11 namespace fwGdcmIO
12 {
13 namespace writer
14 {
15 namespace iod
16 {
17 
18 //------------------------------------------------------------------------------
19 
21  const ::boost::filesystem::path& destinationPath,
22  const ::fwLog::Logger::sptr& logger,
23  ProgressCallback progress,
24  CancelRequestedCallback cancel) :
25  m_instance(instance),
26  m_destinationPath(destinationPath),
27  m_logger(logger),
28  m_progressCallback(progress),
29  m_cancelRequestedCallback(cancel)
30 {
31  SLM_ASSERT("Instance should not be null.", instance);
32 }
33 
34 //------------------------------------------------------------------------------
35 
37 {
38 }
39 
40 //------------------------------------------------------------------------------
41 } // namespace iod
42 } // namespace writer
43 } // 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.
#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
FWGDCMIO_API InformationObjectDefinition(const std::shared_ptr< ::fwGdcmIO::container::DicomInstance > &instance, const ::boost::filesystem::path &destinationPath, const ::fwLog::Logger::sptr &logger=nullptr, ProgressCallback progress=nullptr, CancelRequestedCallback cancel=nullptr)
Constructor.
This file defines SpyLog macros. These macros are used to log messages to a file or to the console du...