1 // 2 // Copyright 2012 Christian Henning 3 // 4 // Distributed under the Boost Software License, Version 1.0 5 // See accompanying file LICENSE_1_0.txt or copy at 6 // http://www.boost.org/LICENSE_1_0.txt 7 // 8 #ifndef BOOST_GIL_EXTENSION_IO_PNM_DETAIL_WRITER_BACKEND_HPP 9 #define BOOST_GIL_EXTENSION_IO_PNM_DETAIL_WRITER_BACKEND_HPP 10 11 #include <boost/gil/extension/io/pnm/tags.hpp> 12 13 namespace boost { namespace gil { 14 15 #if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) 16 #pragma warning(push) 17 #pragma warning(disable:4512) //assignment operator could not be generated 18 #endif 19 20 /// 21 /// PNM Writer Backend 22 /// 23 template< typename Device > 24 struct writer_backend< Device 25 , pnm_tag 26 > 27 { 28 public: 29 30 using format_tag_t = pnm_tag; 31 32 public: 33 writer_backendboost::gil::writer_backend34 writer_backend( const Device& io_dev 35 , const image_write_info< pnm_tag >& info 36 ) 37 : _io_dev( io_dev ) 38 , _info( info ) 39 {} 40 41 public: 42 43 Device _io_dev; 44 45 image_write_info< pnm_tag > _info; 46 }; 47 48 #if BOOST_WORKAROUND(BOOST_MSVC, >= 1400) 49 #pragma warning(pop) 50 #endif 51 52 } // namespace gil 53 } // namespace boost 54 55 #endif 56