claw 1.9.0
 
Loading...
Searching...
No Matches
claw::graphic::png::writer::target_manager Struct Reference

Target manager that allow us to write in a std::ostream. More...

#include <png.hpp>

Public Member Functions

 target_manager (std::ostream &os)
 Constructor.
 
void write (png_bytep data, png_size_t length)
 Write data in the ouput stream.
 
void flush ()
 Flush the output stream.
 

Detailed Description

Target manager that allow us to write in a std::ostream.

Author
Julien Jorge

Definition at line 161 of file png.hpp.

Constructor & Destructor Documentation

◆ target_manager()

claw::graphic::png::writer::target_manager::target_manager ( std::ostream & os)

Constructor.

Parameters
osThe stream in which we write.

Definition at line 67 of file png_writer.cpp.

Member Function Documentation

◆ flush()

void claw::graphic::png::writer::target_manager::flush ( )

Flush the output stream.

Definition at line 87 of file png_writer.cpp.

◆ write()

void claw::graphic::png::writer::target_manager::write ( png_bytep data,
png_size_t length )

Write data in the ouput stream.

Parameters
data(out) Array of the bytes to write.
lengthNumber of bytes to write.

Definition at line 78 of file png_writer.cpp.


The documentation for this struct was generated from the following files: