fw4spl
fwItkIO/include/fwItkIO/ImageReader.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2017.
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 #ifndef __FWITKIO_IMAGEREADER_HPP__
8 #define __FWITKIO_IMAGEREADER_HPP__
9 
10 #include "fwItkIO/config.hpp"
11 
12 #include <fwData/Image.hpp>
13 #include <fwData/location/SingleFile.hpp>
14 
15 #include <fwDataIO/reader/GenericObjectReader.hpp>
16 
17 #include <fwTools/ProgressAdviser.hpp>
18 
19 namespace fwItkIO
20 {
21 
22 class ImageReader : public ::fwDataIO::reader::GenericObjectReader< ::fwData::Image >,
23  public ::fwData::location::enableSingleFile< ::fwDataIO::reader::IObjectReader >,
25 {
26 
27 public:
28 
30  (()),
31  ::fwDataIO::reader::factory::New< ImageReader >
32  );
34 
36 
37  FWITKIO_API ~ImageReader();
38 
39  FWITKIO_API void read() override;
40 };
41 
42 } // namespace fwItkIO
43 
44 #endif // __FWITKIO_IMAGEREADER_HPP__
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.
FWITKIO_API void read() override
Defines an reader interface.
generic class for all object readers.
#define fwCoreClassDefinitionsWithFactoryMacro(_classinfo_, _parameters_, _factory_)
Generate common construction methods for classes with one factory.
This class is derived by reader/writer.
Definition: SingleFile.hpp:70
The namespace fwItkIO contains reader, writer and helper for itk image.
#define fwCoreAllowSharedFromThis()
Generate getSptr and getConstSptr methods.