fw4spl
io/fwGdcmIO/include/fwGdcmIO/writer/SeriesDB.hpp
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 #pragma once
8 
9 #include "fwGdcmIO/config.hpp"
10 #include "fwGdcmIO/writer/Series.hpp"
11 
12 #include <fwData/location/Folder.hpp>
13 
14 #include <fwDataIO/writer/GenericObjectWriter.hpp>
15 
16 #include <fwMedData/Series.hpp>
17 #include <fwMedData/SeriesDB.hpp>
18 
19 #include <fwTools/ProgressAdviser.hpp>
20 
21 namespace fwGdcmIO
22 {
23 
24 namespace writer
25 {
26 
30 class SeriesDB : public ::fwDataIO::writer::GenericObjectWriter< ::fwMedData::SeriesDB >,
31  public ::fwData::location::enableFolder< ::fwDataIO::writer::IObjectWriter >,
33 {
34 
35 public:
36 
39  (()), ::fwDataIO::writer::factory::New< SeriesDB >);
40 
43 
45  FWGDCMIO_API ~SeriesDB();
46 
50  FWGDCMIO_API void write() override;
51 
56  FWGDCMIO_API std::string extension() override;
57 
59  const ::fwGdcmIO::writer::Series::FiducialsExportMode& getFiducialsExportMode() const
60  {
61  return m_fiducialsExportMode;
62  }
63 
65  void setFiducialsExportMode(const ::fwGdcmIO::writer::Series::FiducialsExportMode& fiducialsExportMode)
66  {
67  m_fiducialsExportMode = fiducialsExportMode;
68  }
69 
70 protected:
76  static bool seriesComparator(const ::fwMedData::Series::csptr& a,
77  const ::fwMedData::Series::csptr& b);
78 
81 };
82 
83 } // namespace writer
84 
85 } // namespace fwGdcmIO
FWGDCMIO_API SeriesDB(::fwDataIO::writer::IObjectWriter::Key key)
Constructor.
const ::fwGdcmIO::writer::Series::FiducialsExportMode & getFiducialsExportMode() const
Get Fiducials Export Mode.
Subclasses Inherited from ProgressAdviser can notify progression This class is used as base class to ...
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
::fwGdcmIO::writer::Series::FiducialsExportMode m_fiducialsExportMode
Fiducials Export Mode.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
FWGDCMIO_API std::string extension() override
Do nothing.
static bool seriesComparator(const ::fwMedData::Series::csptr &a, const ::fwMedData::Series::csptr &b)
Function used to sort Series.
This class is derived by reader/writer.
Definition: Folder.hpp:80
FWGDCMIO_API void write() override
Manage writing tools to save every series.
This class manages patient writing, in DICOM file format.
generic class for all object writers.
void setFiducialsExportMode(const ::fwGdcmIO::writer::Series::FiducialsExportMode &fiducialsExportMode)
Set Fiducials Export Mode.