fw4spl
FileWriter.hpp
1 /* ***** BEGIN LICENSE BLOCK *****
2  * FW4SPL - Copyright (C) IRCAD, 2009-2016.
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 __FWGDCMIO_HELPER_FILEWRITER_HPP__
8 #define __FWGDCMIO_HELPER_FILEWRITER_HPP__
9 
10 #include "fwGdcmIO/config.hpp"
11 
12 #include <fwCore/macros.hpp>
13 
14 #include <gdcmDataSet.h>
15 #include <gdcmWriter.h>
16 #include <boost/filesystem/path.hpp>
17 
18 namespace fwGdcmIO
19 {
20 namespace helper
21 {
22 
26 class FWGDCMIO_CLASS_API FileWriter
27 {
28 
29 public:
35  FWGDCMIO_API static void write(const ::boost::filesystem::path& filename,
36  const SPTR(::gdcm::Writer)& writer);
37 };
38 
39 } // namespace helper
40 } // namespace fwGdcmIO
41 
42 #endif /* __FWGDCMIO_HELPER_FILEWRITER_HPP__ */
#define SPTR(_cls_)
This file defines fwCore base macros.
The namespace fwGdcmIO contains reader, writer and helper for dicom data.
Helper used to write a DICOM file.
Definition: FileWriter.hpp:26