Maze Builder Docs 6.0.1
Loading...
Searching...
No Matches
mazes::writer Class Reference

Handles file writing for text, stdout, images, and object files. More...

#include <writer.h>

Public Member Functions

bool write (const std::string &filename, const std::string &data, unsigned int w=1, unsigned int h=1) const noexcept
 Handles writing to an image file.
 
bool write (std::ostream &oss, const std::string &data) const noexcept
 Handles writing to an output stream.
 

Detailed Description

Handles file writing for text, stdout, images, and object files.

Member Function Documentation

◆ write() [1/2]

bool mazes::writer::write ( const std::string & filename,
const std::string & data,
unsigned int w = 1,
unsigned int h = 1 ) const
noexcept

Handles writing to an image file.

Parameters
filename
datathe string to write to a file
w1 width in pixels
h1 height in pixels
Returns

◆ write() [2/2]

bool mazes::writer::write ( std::ostream & oss,
const std::string & data ) const
noexcept

Handles writing to an output stream.

Parameters
oss
data
Returns


The documentation for this class was generated from the following file: