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);
1353 template <
class charT ,
class Traits = std::
char_traits<
charT> >
1431 std::basic_ostream<charT, Traits>(0),
1432 buf(stream, manage, converter) {
1512 {buf.attach_stream(stream, manage, converter); this->clear();}
1532 void close() {
if (!buf.close_stream()) this->setstate(std::ios_base::failbit);}
1635 template <
class charT ,
class Traits = std::
char_traits<
charT> >
1711 std::basic_istream<charT, Traits>(0),
1712 buf(stream, manage, converter) {
1792 {buf.attach_stream(stream, manage, converter); this->clear();}
1812 void close() {
if (!buf.close_stream()) this->setstate(std::ios_base::failbit);}
1910 template <
class charT ,
class Traits = std::
char_traits<
charT> >
1994 std::basic_iostream<charT, Traits>(0),
1995 buf(stream, manage, input_converter, output_converter) {
2085 {buf.attach_stream(stream, manage, input_converter, output_converter); this->clear();}
2105 void close() {
if (!buf.close_stream()) this->setstate(std::ios_base::failbit);}
2417 #include <c++-gtk-utils/gstream.tpp>
2420 #warning gstreams are not available: glib >= 2.16.0 is required