writer_backend.hpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. #include <boost/gil/extension/io/pnm/tags.hpp>
  11. namespace boost { namespace gil {
  12. #if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
  13. #pragma warning(push)
  14. #pragma warning(disable:4512) //assignment operator could not be generated
  15. #endif
  16. ///
  17. /// PNM Writer Backend
  18. ///
  19. template< typename Device >
  20. struct writer_backend< Device
  21. , pnm_tag
  22. >
  23. {
  24. public:
  25. using format_tag_t = pnm_tag;
  26. public:
  27. writer_backend( const Device& io_dev
  28. , const image_write_info< pnm_tag >& info
  29. )
  30. : _io_dev( io_dev )
  31. , _info( info )
  32. {}
  33. public:
  34. Device _io_dev;
  35. image_write_info< pnm_tag > _info;
  36. };
  37. #if BOOST_WORKAROUND(BOOST_MSVC, >= 1400)
  38. #pragma warning(pop)
  39. #endif
  40. } // namespace gil
  41. } // namespace boost
  42. #endif