fw4spl
ExternalDataReaderService.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2018.
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 #pragma once
8 
9 #include "ioTuto/config.hpp"
10 
11 #include <fwIO/IReader.hpp>
12 
13 #include <boost/filesystem/path.hpp>
14 
15 namespace ioTuto
16 {
17 
21 class IOTUTO_CLASS_API ExternalDataReaderService : public ::fwIO::IReader
22 {
23 
24 public:
29  IOTUTO_API ExternalDataReaderService();
30 
34  IOTUTO_API ~ExternalDataReaderService() noexcept;
35 
39  IOTUTO_API virtual std::vector< std::string > getSupportedExtensions() override;
40 
41 protected:
42 
52  IOTUTO_API virtual void starting() override
53  {
54  FW_DEPRECATED_MSG("This service is deprecated", "18.0");
55  }
56 
62  IOTUTO_API virtual void stopping() override
63  {
64  }
65 
77  IOTUTO_API virtual void configuring( ) override;
78 
85  IOTUTO_API void configureWithIHM() override;
86 
92  IOTUTO_API void updating() override;
93 
102  IOTUTO_API virtual void info(std::ostream& _sstream ) override;
104 
106  IOTUTO_API ::fwIO::IOPathType getIOPathType() const override;
107 };
108 }
virtual IOTUTO_API void stopping() override
Stopping method : default does nothing.
STL namespace.
#define FW_DEPRECATED_MSG(message, version)
Use this macro when deprecating a function to warn the developer.
Definition: spyLog.hpp:360
Reader service API. It manages extension points definition and extension configuration.
Definition: IReader.hpp:34
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.