fw4spl
ArrayWriter.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_ARRAYWRITER_HPP__
8 #define __FWDATAIO_WRITER_ARRAYWRITER_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 
27 class FWDATAIO_CLASS_API ArrayWriter : public GenericObjectWriter< ::fwData::Array >,
28  public ::fwData::location::enableSingleFile< ::fwDataIO::writer::IObjectWriter >
29 {
30 
31 public:
32 
34  (()),
35  ::fwDataIO::writer::factory::New< ArrayWriter >
36  )
37 
38 
39  FWDATAIO_API ArrayWriter(::fwDataIO::writer::IObjectWriter::Key key);
40 
42  FWDATAIO_API virtual ~ArrayWriter();
43 
45  FWDATAIO_API virtual void write() override;
46 
48  FWDATAIO_API virtual std::string extension() override;
49 
50 };
51 
52 } // namespace writer
53 } // namespace fwDataIO
54 
55 #endif // __FWDATAIO_WRITER_ARRAYWRITER_HPP__
Array Writer. Write file format .raw.
Definition: ArrayWriter.hpp:27
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.
#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.