24 lines
445 B
C++
24 lines
445 B
C++
#ifndef PPM_IMAGE_HPP
|
|
#define PPM_IMAGE_HPP
|
|
|
|
#include "Image.hpp"
|
|
#include <cstdint>
|
|
#include <vector>
|
|
|
|
namespace image_writers {
|
|
|
|
class PpmImage : public Image {
|
|
public:
|
|
PpmImage(const std::vector<std::vector<std::uint8_t>> &imageData);
|
|
~PpmImage() = default;
|
|
|
|
bool writeToFile(const std::filesystem::path &filePath) override;
|
|
|
|
private:
|
|
const std::vector<std::vector<std::uint8_t>> &imageData_;
|
|
};
|
|
|
|
} // namespace image_writers
|
|
|
|
#endif
|