/usr/include/boost/gil/io
NameSizeModeActions
base.hpp27990644editdlrm
bit_operations.hpp37640644editdlrm
conversion_policies.hpp29580644editdlrm
device.hpp166890644editdlrm
dynamic_io_new.hpp30790644editdlrm
error.hpp5790644editdlrm
get_reader.hpp39320644editdlrm
get_read_device.hpp14030644editdlrm
get_writer.hpp24520644editdlrm
get_write_device.hpp13350644editdlrm
io.hpp36350644editdlrm
make_backend.hpp36060644editdlrm
make_dynamic_image_reader.hpp44360644editdlrm
make_dynamic_image_writer.hpp53760644editdlrm
make_reader.hpp56700644editdlrm
make_scanline_reader.hpp31080644editdlrm
make_writer.hpp45650644editdlrm
path_spec.hpp39400644editdlrm
reader_base.hpp33230644editdlrm
read_and_convert_image.hpp100300644editdlrm
read_and_convert_view.hpp100670644editdlrm
read_image.hpp100900644editdlrm
read_image_info.hpp38300644editdlrm
read_view.hpp59930644editdlrm
row_buffer_helper.hpp51720644editdlrm
scanline_read_iterator.hpp23330644editdlrm
typedefs.hpp29800644editdlrm
write_view.hpp70950644editdlrm
Edit: /usr/include/boost/gil/io/path_spec.hpp (3940B)
// // Copyright 2007-2008 Andreas Pokorny, Christian Henning // // Distributed under the Boost Software License, Version 1.0 // See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt // #ifndef BOOST_GIL_IO_PATH_SPEC_HPP #define BOOST_GIL_IO_PATH_SPEC_HPP #ifdef BOOST_GIL_IO_ADD_FS_PATH_SUPPORT // Disable warning: conversion to 'std::atomic::__integral_type {aka int}' from 'long int' may alter its value #if defined(BOOST_CLANG) #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wshorten-64-to-32" #endif #if defined(BOOST_GCC) && (BOOST_GCC >= 40900) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wconversion" #endif #define BOOST_FILESYSTEM_VERSION 3 #include #if defined(BOOST_CLANG) #pragma clang diagnostic pop #endif #if defined(BOOST_GCC) && (BOOST_GCC >= 40900) #pragma GCC diagnostic pop #endif #endif // BOOST_GIL_IO_ADD_FS_PATH_SUPPORT #include #include #include namespace boost { namespace gil { namespace detail { template struct is_supported_path_spec : std::false_type {}; template<> struct is_supported_path_spec< std::string > : std::true_type {}; template<> struct is_supported_path_spec< const std::string > : std::true_type {}; template<> struct is_supported_path_spec< std::wstring > : std::true_type {}; template<> struct is_supported_path_spec< const std::wstring > : std::true_type {}; template<> struct is_supported_path_spec< const char* > : std::true_type {}; template<> struct is_supported_path_spec< char* > : std::true_type {}; template<> struct is_supported_path_spec< const wchar_t* > : std::true_type {}; template<> struct is_supported_path_spec< wchar_t* > : std::true_type {}; template struct is_supported_path_spec : std::true_type {}; template struct is_supported_path_spec : std::true_type {}; template struct is_supported_path_spec : std::true_type {}; template struct is_supported_path_spec : std::true_type {}; #ifdef BOOST_GIL_IO_ADD_FS_PATH_SUPPORT template<> struct is_supported_path_spec< filesystem::path > : std::true_type {}; template<> struct is_supported_path_spec< const filesystem::path > : std::true_type {}; #endif // BOOST_GIL_IO_ADD_FS_PATH_SUPPORT /// /// convert_to_string /// inline std::string convert_to_string( std::string const& obj) { return obj; } inline std::string convert_to_string( std::wstring const& s ) { std::size_t len = wcslen( s.c_str() ); char* c = reinterpret_cast( alloca( len )); wcstombs( c, s.c_str(), len ); return std::string( c, c + len ); } inline std::string convert_to_string( const char* str ) { return std::string( str ); } inline std::string convert_to_string( char* str ) { return std::string( str ); } #ifdef BOOST_GIL_IO_ADD_FS_PATH_SUPPORT inline std::string convert_to_string( const filesystem::path& path ) { return convert_to_string( path.string() ); } #endif // BOOST_GIL_IO_ADD_FS_PATH_SUPPORT /// /// convert_to_native_string /// inline const char* convert_to_native_string( char* str ) { return str; } inline const char* convert_to_native_string( const char* str ) { return str; } inline const char* convert_to_native_string( const std::string& str ) { return str.c_str(); } inline const char* convert_to_native_string( const wchar_t* str ) { std::size_t len = wcslen( str ) + 1; char* c = new char[len]; wcstombs( c, str, len ); return c; } inline const char* convert_to_native_string( const std::wstring& str ) { std::size_t len = wcslen( str.c_str() ) + 1; char* c = new char[len]; wcstombs( c, str.c_str(), len ); return c; } } // namespace detail } // namespace gil } // namespace boost #endif