fw4spl
InrImageWriterService.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 "ioITK/config.hpp"
10 
11 #include <fwIO/IWriter.hpp>
12 
13 #include <boost/filesystem/path.hpp>
14 
15 namespace fwData
16 {
17 class Image;
18 }
19 
20 namespace ioITK
21 {
22 
40 class IOITK_CLASS_API InrImageWriterService : public ::fwIO::IWriter
41 {
42 
43 public:
45 
46  IOITK_API InrImageWriterService() noexcept;
47 
48  IOITK_API virtual ~InrImageWriterService() noexcept;
49 
50  IOITK_API static void saveImage( const ::boost::filesystem::path& inrFile, const CSPTR(::fwData::Image)& image );
51 
52 protected:
53 
55  IOITK_API virtual void starting() override;
56 
58  IOITK_API virtual void stopping() override;
59 
61  IOITK_API virtual void configuring() override;
62 
64  IOITK_API void updating() override;
65 
67  IOITK_API void info(std::ostream& _sstream ) override;
68 
70  IOITK_API virtual void configureWithIHM() override;
71 
73  IOITK_API ::fwIO::IOPathType getIOPathType() const override;
74 
75 };
76 
77 } // namespace ioITK
#define CSPTR(_cls_)
STL namespace.
#define fwCoreServiceClassDefinitionsMacro(_classinfo_)
Generate common code for services classes.
Writer service API. It manages extension points definition and extension configuration.
Definition: IWriter.hpp:33
The namespace fwIO contains the base interface for reader and writer services.
Definition: ioTypes.hpp:16
Contains the representation of the data objects used in the framework.
Writer for .inr.gz image.
The namespace ioITK contains services for reader, writer and helper for itk image.