438 #ifndef CGU_GSTREAM_H
439 #define CGU_GSTREAM_H
443 #if defined(DOXYGEN_PARSING) || GLIB_CHECK_VERSION(2,16,0)
456 #include <glib-object.h>
498 template <
class charT ,
class Traits = std::
char_traits<
charT> >
518 static const int output_buf_size = 1024;
519 static const int putback_size = 4;
520 static const int input_buf_size = 1024;
522 #if defined(CGU_USE_GLIB_MEMORY_SLICES_COMPAT) || defined(CGU_USE_GLIB_MEMORY_SLICES_NO_COMPAT)
535 void reset_input_buffer_pointers();
537 bool wind_back_input_buffer();
538 bool is_input_stored();
539 bool is_output_stored();
540 void set_input_error(GError*);
541 void set_output_error(GError*);
577 #ifndef CGU_GSTREAM_USE_STD_N_READ_WRITE
667 std::ios_base::seekdir way,
668 std::ios_base::openmode m = std::ios_base::in | std::ios_base::out);
715 std::ios_base::openmode m = std::ios_base::in | std::ios_base::out);
1341 template <
class charT ,
class Traits = std::
char_traits<
charT> >
1419 std::basic_ostream<charT, Traits>(0),
1420 buf(stream, manage, converter) {
1500 {buf.attach_stream(stream, manage, converter); this->clear();}
1520 void close() {
if (!buf.close_stream()) this->setstate(std::ios_base::failbit);}
1623 template <
class charT ,
class Traits = std::
char_traits<
charT> >
1699 std::basic_istream<charT, Traits>(0),
1700 buf(stream, manage, converter) {
1780 {buf.attach_stream(stream, manage, converter); this->clear();}
1800 void close() {
if (!buf.close_stream()) this->setstate(std::ios_base::failbit);}
1898 template <
class charT ,
class Traits = std::
char_traits<
charT> >
1982 std::basic_iostream<charT, Traits>(0),
1983 buf(stream, manage, input_converter, output_converter) {
2073 {buf.attach_stream(stream, manage, input_converter, output_converter); this->clear();}
2093 void close() {
if (!buf.close_stream()) this->setstate(std::ios_base::failbit);}
2405 #include <c++-gtk-utils/gstream.tpp>
2408 #warning gstreams are not available: glib >= 2.16.0 is required