450 #ifndef CGU_GSTREAM_H
451 #define CGU_GSTREAM_H
455 #if defined(DOXYGEN_PARSING) || GLIB_CHECK_VERSION(2,16,0)
468 #include <glib-object.h>
510 template <
class charT ,
class Traits = std::
char_traits<
charT> >
530 static const int output_buf_size = 1024;
531 static const int putback_size = 4;
532 static const int input_buf_size = 1024;
534 #if defined(CGU_USE_GLIB_MEMORY_SLICES_COMPAT) || defined(CGU_USE_GLIB_MEMORY_SLICES_NO_COMPAT)
547 void reset_input_buffer_pointers();
549 bool wind_back_input_buffer();
550 bool is_input_stored();
551 bool is_output_stored();
552 void set_input_error(GError*);
553 void set_output_error(GError*);
589 #ifndef CGU_GSTREAM_USE_STD_N_READ_WRITE
679 std::ios_base::seekdir way,
680 std::ios_base::openmode m = std::ios_base::in | std::ios_base::out);
727 std::ios_base::openmode m = std::ios_base::in | std::ios_base::out);
1354 template <
class charT ,
class Traits = std::
char_traits<
charT> >
1433 std::basic_ostream<charT, Traits>(0),
1434 buf(stream, manage, converter) {
1514 {buf.attach_stream(stream, manage, converter); this->clear();}
1534 void close() {
if (!buf.close_stream()) this->setstate(std::ios_base::failbit);}
1637 template <
class charT ,
class Traits = std::
char_traits<
charT> >
1714 std::basic_istream<charT, Traits>(0),
1715 buf(stream, manage, converter) {
1795 {buf.attach_stream(stream, manage, converter); this->clear();}
1815 void close() {
if (!buf.close_stream()) this->setstate(std::ios_base::failbit);}
1913 template <
class charT ,
class Traits = std::
char_traits<
charT> >
1998 std::basic_iostream<charT, Traits>(0),
1999 buf(stream, manage, input_converter, output_converter) {
2089 {buf.attach_stream(stream, manage, input_converter, output_converter); this->clear();}
2109 void close() {
if (!buf.close_stream()) this->setstate(std::ios_base::failbit);}
2421 #include <c++-gtk-utils/gstream.tpp>
2424 #warning gstreams are not available: glib >= 2.16.0 is required