fw4spl
GzArrayReader.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 __FWDATAIO_READER_GZARRAYREADER_HPP__
8 #define __FWDATAIO_READER_GZARRAYREADER_HPP__
9 
10 #include "fwDataIO/config.hpp"
11 #include "fwDataIO/reader/GenericObjectReader.hpp"
12 
13 #include <fwData/Array.hpp>
14 #include <fwData/location/SingleFile.hpp>
15 
16 #include <boost/filesystem/path.hpp>
17 
18 namespace fwDataIO
19 {
20 namespace reader
21 {
22 
30 class FWDATAIO_CLASS_API GzArrayReader : public GenericObjectReader< ::fwData::Array >,
31  public ::fwData::location::enableSingleFile< IObjectReader >
32 {
33 
34 public:
35 
37  (()),
38  ::fwDataIO::reader::factory::New< GzArrayReader >
39  );
40 
43 
45  FWDATAIO_API virtual ~GzArrayReader();
46 
48  FWDATAIO_API virtual void read() override;
49 
51  FWDATAIO_API std::string extension() override;
52 
53 };
54 
55 } // namespace reader
56 } // namespace fwDataIO
57 
58 #endif // __FWDATAIO_READER_GZARRAYREADER_HPP__
This namespace fwDataIO contains reader and writer for several framework&#39;s data.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
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
Array Reader. Read file format .raw.gz.