Maze Builder Docs 6.0.1
Loading...
Searching...
No Matches
writer.h
Go to the documentation of this file.
1#ifndef WRITER_H
2#define WRITER_H
3
4#include <string>
5
6namespace mazes {
7
10
13class writer {
14public:
15
22 bool write(const std::string& filename, const std::string& data, unsigned int w = 1, unsigned int h = 1) const noexcept;
23
28 bool write(std::ostream& oss, const std::string& data) const noexcept;
29
30private:
31 bool write_jpeg(const std::string& filename, const std::string& data, unsigned int w = 1, unsigned int h = 1) const noexcept;
32 bool write_png(const std::string& filename, const std::string& data, unsigned int w = 1, unsigned int h = 1) const noexcept;
33 bool write_file(const std::string& filename, const std::string& data) const noexcept;
34}; // writer
35
36}
37
38#endif // WRITER_H
Handles file writing for text, stdout, images, and object files.
Definition writer.h:13
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.
Namespace for the maze builder.
Definition algo_interface.h:9