fw4spl
TagReader.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_TAGREADER_HPP__
8 #define __FWDATAIO_READER_TAGREADER_HPP__
9 
10 #include "fwDataIO/config.hpp"
11 #include "fwDataIO/reader/GenericObjectReader.hpp"
12 
13 #include <fwData/location/SingleFile.hpp>
14 
15 #include <boost/filesystem/path.hpp>
16 
17 namespace fwData
18 {
19 class Tag;
20 }
21 
22 namespace fwDataIO
23 {
24 
25 namespace reader
26 {
27 
35 class FWDATAIO_CLASS_API TagReader :
36  public GenericObjectReader< ::fwData::Tag >,
37  public ::fwData::location::enableSingleFile< IObjectReader >
38 {
39 
40 public:
42  (()),
43  ::fwDataIO::reader::factory::New< TagReader >
44  );
47 
49  FWDATAIO_API virtual ~TagReader();
50 
52  FWDATAIO_API virtual void read() override;
53 
55  FWDATAIO_API std::string extension() override;
56 
57 };
58 
59 } // namespace reader
60 
61 } // namespace fwDataIO
62 
63 #endif // __FWDATAIO_READER_TAGREADER_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.
Tag Reader. Read file format .tag.
Definition: TagReader.hpp:35