|
Claw
1.7.3
|
This class is made to help writing in ostreams with a buffer. More...
#include <buffered_ostream.hpp>
Public Member Functions | |
| buffered_ostream (stream_type &f, unsigned int buffer_size=1024) | |
| Constructor. | |
| ~buffered_ostream () | |
| Destructor. | |
| template<typename T > | |
| void | write (T v) |
| Write somethnig in the buffer. | |
| void | write (const char *p, unsigned int n) |
| Write a range of data in the buffer. | |
| void | flush () |
| Write the data from the buffer in the stream. | |
This class is made to help writing in ostreams with a buffer.
Definition at line 40 of file buffered_ostream.hpp.
| claw::buffered_ostream< Stream >::buffered_ostream | ( | stream_type & | f, |
| unsigned int | buffer_size = 1024 |
||
| ) |
Constructor.
| f | The file associated to the stream. |
| buffer_size | The size of the buffer. |
Definition at line 40 of file buffered_ostream.tpp.
| void claw::buffered_ostream< Stream >::write | ( | T | v | ) |
Write somethnig in the buffer.
| v | The value to write. |
Definition at line 65 of file buffered_ostream.tpp.
| void claw::buffered_ostream< Stream >::write | ( | const char * | p, |
| unsigned int | n | ||
| ) |
Write a range of data in the buffer.
| p | The begining of the range to write. |
| n | The length of the buffer pointed by p. |
Definition at line 77 of file buffered_ostream.tpp.
1.8.1.2