fw4spl
core/fwDataIO/include/fwDataIO/writer/MeshWriter.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_MESHWRITER_HPP__
8 #define __FWDATAIO_WRITER_MESHWRITER_HPP__
9 
10 #include "fwDataIO/config.hpp"
11 #include "fwDataIO/writer/GenericObjectWriter.hpp"
12 
13 #include <fwData/location/SingleFile.hpp>
14 #include <fwData/Mesh.hpp>
15 
16 #include <boost/filesystem/path.hpp>
17 
18 namespace fwDataIO
19 {
20 
21 namespace writer
22 {
23 
35 class FWDATAIO_CLASS_API MeshWriter :
36  public GenericObjectWriter< ::fwData::Mesh>,
37  public ::fwData::location::enableSingleFile< ::fwDataIO::writer::IObjectWriter >
38 {
39 
40 public:
41 
43  (()),
44  ::fwDataIO::writer::factory::New< MeshWriter >
45  )
47  FWDATAIO_API MeshWriter(::fwDataIO::writer::IObjectWriter::Key key);
48 
50  FWDATAIO_API virtual ~MeshWriter();
51 
56  FWDATAIO_API virtual void write() override;
57 
59  FWDATAIO_API virtual std::string extension() override;
60 
61 };
62 
63 } // namespace writer
64 
65 } // namespace fwDataIO
66 
67 #endif // __FWDATAIO_WRITER_MESHWRITER_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.
#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.