fw4spl
GzArrayWriter.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_WRITER_GZARRAYWRITER_HPP__
8 #define __FWDATAIO_WRITER_GZARRAYWRITER_HPP__
9 
10 #include "fwDataIO/config.hpp"
11 #include "fwDataIO/writer/GenericObjectWriter.hpp"
12 
13 #include <fwData/Array.hpp>
14 #include <fwData/location/SingleFile.hpp>
15 
16 namespace fwDataIO
17 {
18 namespace writer
19 {
20 
28 class FWDATAIO_CLASS_API GzArrayWriter : public GenericObjectWriter< ::fwData::Array >,
29  public ::fwData::location::enableSingleFile< ::fwDataIO::writer::IObjectWriter >
30 {
31 
32 public:
33 
35  (()),
36  ::fwDataIO::writer::factory::New< GzArrayWriter >
37  )
38 
39 
40  FWDATAIO_API GzArrayWriter(::fwDataIO::writer::IObjectWriter::Key key);
41 
43  FWDATAIO_API virtual ~GzArrayWriter();
44 
46  FWDATAIO_API virtual void write() override;
47 
49  FWDATAIO_API virtual std::string extension() override;
50 
51 };
52 
53 } // namespace writer
54 } // namespace fwDataIO
55 
56 #endif // __FWDATAIO_WRITER_GZARRAYWRITER_HPP__
This namespace fwDataIO contains reader and writer for several framework&#39;s data.
STL namespace.
Key class used to restrict access to Object construction. See http://www.drdobbs.com/184402053.
Array Writer. Write file format .raw.gz.
#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
Base class for all object writers.
generic class for all object writers.