#ifndef PPM_IMAGE_H___ #define PPM_IMAGE_H___ #include class ppmImage { private: int imageW, imageH; // image dimensions unsigned char *pixels; // buffer of pixel data public: ppmImage(); ~ppmImage(); bool readFile(const std::string &filename); bool writeFile(const std::string & filename); inline const unsigned char * const getPixels() const {return pixels;} inline const int & GetWidth() { return imageW; }; inline const int & GetHeight() { return imageH; }; }; #endif //PPM_IMAGE_H___