1 #ifndef MSP_IO_BUFFERED_H_
2 #define MSP_IO_BUFFERED_H_
4 #include <sigc++/trackable.h>
10 class Buffered: public Base, public sigc::trackable
21 Buffered(Base &, unsigned =8192);
24 virtual void set_block(bool);
25 virtual void set_inherit(bool);
30 unsigned do_write(const char *, unsigned);
31 unsigned do_read(char *, unsigned);
35 bool getline(std::string &);
38 virtual const Handle &get_handle(Mode);
43 Mode get_current_op() const { return cur_op; }
44 unsigned get_current_size() const;