fw4spl
ArrayReader.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_ARRAYREADER_HPP__
8 #define __FWDATAIO_READER_ARRAYREADER_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 
29 class FWDATAIO_CLASS_API ArrayReader : public GenericObjectReader< ::fwData::Array >,
30  public ::fwData::location::enableSingleFile< IObjectReader >
31 {
32 
33 public:
34 
36  (()),
37  ::fwDataIO::reader::factory::New<ArrayReader>
38  );
39 
42 
44  FWDATAIO_API virtual ~ArrayReader();
45 
47  FWDATAIO_API virtual void read() override;
48 
50  FWDATAIO_API std::string extension() override;
51 
52 };
53 
54 } // namespace reader
55 } // namespace fwDataIO
56 
57 #endif // __FWDATAIO_READER_ARRAYREADER_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.
Array Reader. Read file format .raw.
Definition: ArrayReader.hpp:29
#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