445 #ifndef CGU_GSTREAM_H
446 #define CGU_GSTREAM_H
450 #if defined(DOXYGEN_PARSING) || GLIB_CHECK_VERSION(2,16,0)
463 #include <glib-object.h>
505 template <
class charT ,
class Traits = std::
char_traits<
charT> >
525 static const int output_buf_size = 1024;
526 static const int putback_size = 4;
527 static const int input_buf_size = 1024;
529 #if defined(CGU_USE_GLIB_MEMORY_SLICES_COMPAT) || defined(CGU_USE_GLIB_MEMORY_SLICES_NO_COMPAT)
542 void reset_input_buffer_pointers();
544 bool wind_back_input_buffer();
545 bool is_input_stored();
546 bool is_output_stored();
547 void set_input_error(GError*);
548 void set_output_error(GError*);
584 #ifndef CGU_GSTREAM_USE_STD_N_READ_WRITE
674 std::ios_base::seekdir way,
675 std::ios_base::openmode m = std::ios_base::in | std::ios_base::out);
722 std::ios_base::openmode m = std::ios_base::in | std::ios_base::out);
1348 template <
class charT ,
class Traits = std::
char_traits<
charT> >
1426 std::basic_ostream<charT, Traits>(0),
1427 buf(stream, manage, converter) {
1507 {buf.attach_stream(stream, manage, converter); this->clear();}
1527 void close() {
if (!buf.close_stream()) this->setstate(std::ios_base::failbit);}
1630 template <
class charT ,
class Traits = std::
char_traits<
charT> >
1706 std::basic_istream<charT, Traits>(0),
1707 buf(stream, manage, converter) {
1787 {buf.attach_stream(stream, manage, converter); this->clear();}
1807 void close() {
if (!buf.close_stream()) this->setstate(std::ios_base::failbit);}
1905 template <
class charT ,
class Traits = std::
char_traits<
charT> >
1989 std::basic_iostream<charT, Traits>(0),
1990 buf(stream, manage, input_converter, output_converter) {
2080 {buf.attach_stream(stream, manage, input_converter, output_converter); this->clear();}
2100 void close() {
if (!buf.close_stream()) this->setstate(std::ios_base::failbit);}
2412 #include <c++-gtk-utils/gstream.tpp>
2415 #warning gstreams are not available: glib >= 2.16.0 is required