451 #ifndef CGU_GSTREAM_H
452 #define CGU_GSTREAM_H
456 #if defined(DOXYGEN_PARSING) || GLIB_CHECK_VERSION(2,16,0)
469 #include <glib-object.h>
511 template <
class charT ,
class Traits = std::
char_traits<
charT> >
531 static const int output_buf_size = 1024;
532 static const int putback_size = 4;
533 static const int input_buf_size = 1024;
535 #if defined(CGU_USE_GLIB_MEMORY_SLICES_COMPAT) || defined(CGU_USE_GLIB_MEMORY_SLICES_NO_COMPAT)
548 void reset_input_buffer_pointers();
550 bool wind_back_input_buffer();
551 bool is_input_stored();
552 bool is_output_stored();
553 void set_input_error(GError*);
554 void set_output_error(GError*);
590 #ifndef CGU_GSTREAM_USE_STD_N_READ_WRITE
680 std::ios_base::seekdir way,
681 std::ios_base::openmode m = std::ios_base::in | std::ios_base::out);
728 std::ios_base::openmode m = std::ios_base::in | std::ios_base::out);
1355 template <
class charT ,
class Traits = std::
char_traits<
charT> >
1434 std::basic_ostream<charT, Traits>(0),
1435 buf(stream, manage, converter) {
1515 {buf.attach_stream(stream, manage, converter); this->clear();}
1535 void close() {
if (!buf.close_stream()) this->setstate(std::ios_base::failbit);}
1638 template <
class charT ,
class Traits = std::
char_traits<
charT> >
1715 std::basic_istream<charT, Traits>(0),
1716 buf(stream, manage, converter) {
1796 {buf.attach_stream(stream, manage, converter); this->clear();}
1816 void close() {
if (!buf.close_stream()) this->setstate(std::ios_base::failbit);}
1914 template <
class charT ,
class Traits = std::
char_traits<
charT> >
1999 std::basic_iostream<charT, Traits>(0),
2000 buf(stream, manage, input_converter, output_converter) {
2090 {buf.attach_stream(stream, manage, input_converter, output_converter); this->clear();}
2110 void close() {
if (!buf.close_stream()) this->setstate(std::ios_base::failbit);}
2422 #include <c++-gtk-utils/gstream.tpp>
2425 #warning gstreams are not available: glib >= 2.16.0 is required