fw4spl
SImageSeriesReader.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 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 "ioVTK/config.hpp"
10 
11 #include <fwIO/IReader.hpp>
12 
13 #include <boost/filesystem/path.hpp>
14 
15 #include <string>
16 
17 namespace fwJobs
18 {
19 class IJob;
20 }
21 
22 namespace ioVTK
23 {
24 
46 class IOVTK_CLASS_API SImageSeriesReader : public ::fwIO::IReader
47 {
48 
49 public:
50 
51  typedef ::fwCom::Signal< void ( SPTR(::fwJobs::IJob) ) > JobCreatedSignalType;
52 
56  IOVTK_API SImageSeriesReader() noexcept;
57 
58  ~SImageSeriesReader() noexcept override
59  {
60  }
61 
63 
67  IOVTK_API virtual void configureWithIHM() override;
68 
69 protected:
70 
71  IOVTK_API virtual ::fwIO::IOPathType getIOPathType() const override;
72 
78  IOVTK_API virtual void starting() override;
79 
85  IOVTK_API virtual void stopping() override;
86 
92  IOVTK_API virtual void configuring() override;
93 
100  IOVTK_API void updating() override;
101 
107  IOVTK_API void info(std::ostream& _sstream ) override;
108 
109 private:
110 
112  void notificationOfDBUpdate();
113 
115  ::boost::filesystem::path m_fsImgPath;
116 
117  SPTR(JobCreatedSignalType) m_sigJobCreated;
118 };
119 
120 } // namespace ioVTK
#define SPTR(_cls_)
Reader service API. It manages extension points definition and extension configuration.
Definition: IReader.hpp:34
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
This namespace fwJobs provides jobs management.
The namespace ioVTK contains reader, writer and helper using the fwVtkIO lib for output and input act...
VTK ImageSeries Reader.