fw4spl
core/fwDataIO/include/fwDataIO/reader/MeshReader.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_MESHREADER_HPP__
8 #define __FWDATAIO_READER_MESHREADER_HPP__
9 
10 #include "fwDataIO/config.hpp"
11 #include "fwDataIO/reader/GenericObjectReader.hpp"
12 
13 #include <fwData/location/SingleFile.hpp>
14 #include <fwData/Mesh.hpp>
15 
16 #include <boost/filesystem/path.hpp>
17 
18 namespace fwData
19 {
20 class Mesh;
21 }
22 
23 namespace fwDataIO
24 {
25 
26 namespace reader
27 {
28 
35 class FWDATAIO_CLASS_API MeshReader :
36  public GenericObjectReader< ::fwData::Mesh>,
37  public ::fwData::location::enableSingleFile< IObjectReader >
38 {
39 
40 public:
41 
43  (()),
44  ::fwDataIO::reader::factory::New< MeshReader >
45  );
46 
49 
51  FWDATAIO_API virtual ~MeshReader();
52 
54  FWDATAIO_API virtual void read() override;
55 
56  FWDATAIO_API std::string extension() override;
57 
58 };
59 
60 } // namespace reader
61 
62 } // namespace fwDataIO
63 
64 #endif // __FWDATAIO_READER_MESHREADER_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
Contains the representation of the data objects used in the framework.