30#ifndef __CLAW_BUFFERED_ISTREAM_HPP__
31#define __CLAW_BUFFERED_ISTREAM_HPP__
41 template<
typename Stream >
46 typedef Stream stream_type;
52 unsigned int remaining()
const;
53 bool read_more(
unsigned int n );
55 const char* get_buffer()
const;
57 bool read(
char* buf,
unsigned int n );
59 void move(
unsigned int n );
63 operator bool()
const;
67 stream_type& m_stream;
80 unsigned int m_buffer_size;
85#include <claw/impl/buffered_istream.tpp>
This class is made to help reading istreams with a buffer.
This is the main namespace.