X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fbuffered.h;h=da917e0c5a6585027a469ad4fa5dc814db517c29;hp=1de54d202456546cecf9604c01d9a766b061648d;hb=ea8bf8f588310b0d7fd3297d74907602705bba1d;hpb=31e72f50fbb34d86877e5110401c49ce3fefd4bb diff --git a/source/io/buffered.h b/source/io/buffered.h index 1de54d2..da917e0 100644 --- a/source/io/buffered.h +++ b/source/io/buffered.h @@ -1,12 +1,13 @@ #ifndef MSP_IO_BUFFERED_H_ #define MSP_IO_BUFFERED_H_ +#include #include "base.h" namespace Msp { namespace IO { -class Buffered: public Base +class Buffered: public Base, public sigc::trackable { private: Base &below; @@ -20,6 +21,9 @@ public: Buffered(Base &, unsigned =8192); ~Buffered(); + virtual void set_block(bool); + virtual void set_inherit(bool); + void flush(); protected: @@ -31,13 +35,13 @@ public: bool getline(std::string &); int get(); + virtual const Handle &get_handle(Mode); + private: void set_op(Mode); public: Mode get_current_op() const { return cur_op; } unsigned get_current_size() const; - - virtual const Handle &get_event_handle(); }; } // namespace IO