Source manager that allow us to read from a std::istream. More...
#include <png.hpp>
Public Member Functions | |
source_manager (std::istream &is) | |
Constructor. | |
void | read (png_bytep data, png_size_t length) |
Read data from the input stream. | |
Private Attributes | |
std::istream & | m_input |
The stream from which we get data. |
Source manager that allow us to read from a std::istream.
Definition at line 64 of file png.hpp.
claw::graphic::png::reader::source_manager::source_manager | ( | std::istream & | is | ) |
Constructor.
is | The stream we read from. |
Definition at line 61 of file png_reader.cpp.
References CLAW_PRECOND.
00062 : m_input(is) 00063 { 00064 CLAW_PRECOND( !!is ); 00065 } // png::reader::source_manager::source_manager()
void claw::graphic::png::reader::source_manager::read | ( | png_bytep | data, | |
png_size_t | length | |||
) |
Read data from the input stream.
data | (out) Array of the bytes we have read. | |
length | Number of bytes to read. |
Definition at line 74 of file png_reader.cpp.
00075 { 00076 m_input.read( (char*)data, length * sizeof(png_byte) ); 00077 } // png::reader::source_manager::read()
std::istream& claw::graphic::png::reader::source_manager::m_input [private] |