Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:36:59

0001 //
0002 // Copyright 2012 Christian Henning
0003 //
0004 // Distributed under the Boost Software License, Version 1.0
0005 // See accompanying file LICENSE_1_0.txt or copy at
0006 // http://www.boost.org/LICENSE_1_0.txt
0007 //
0008 #ifndef BOOST_GIL_EXTENSION_IO_TARGA_DETAIL_WRITER_BACKEND_HPP
0009 #define BOOST_GIL_EXTENSION_IO_TARGA_DETAIL_WRITER_BACKEND_HPP
0010 
0011 #include <boost/gil/extension/io/targa/tags.hpp>
0012 
0013 namespace boost { namespace gil {
0014 
0015 #if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
0016 #pragma warning(push)
0017 #pragma warning(disable:4512) //assignment operator could not be generated
0018 #endif
0019 
0020 ///
0021 /// TARGA Writer Backend
0022 ///
0023 template< typename Device >
0024 struct writer_backend< Device
0025                      , targa_tag
0026                      >
0027 {
0028 public:
0029 
0030     using format_tag_t = targa_tag;
0031 
0032 public:
0033 
0034     writer_backend( const Device&                        io_dev
0035                   , const image_write_info< targa_tag >& info
0036                   )
0037     : _io_dev( io_dev )
0038     , _info( info )
0039     {}
0040 
0041 public:
0042 
0043     Device _io_dev;
0044 
0045     image_write_info< targa_tag > _info;
0046 };
0047 
0048 #if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
0049 #pragma warning(pop)
0050 #endif
0051 
0052 } // namespace gil
0053 } // namespace boost
0054 
0055 #endif