diff options
| author | Dylan <boss@tehbox.org> | 2025-10-07 18:45:28 +1300 |
|---|---|---|
| committer | Dylan <boss@tehbox.org> | 2025-10-07 19:31:32 +1300 |
| commit | 328e2464c81b0dfce623d4fbe9617ef79d6ed3c1 (patch) | |
| tree | ecccb3c6583640af4792efa93ff280f17b4f707a /src/BMPImage.h | |
| parent | 308b65134bd9d185741a612bfad3cca80ddddc48 (diff) | |
| download | tehimage-328e2464c81b0dfce623d4fbe9617ef79d6ed3c1.tar.gz tehimage-328e2464c81b0dfce623d4fbe9617ef79d6ed3c1.zip | |
feat: Added cpp namespacev0.0.2
All functions and classes are now behind the cpp namespace `TehImage`
Diffstat (limited to 'src/BMPImage.h')
| -rw-r--r-- | src/BMPImage.h | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/BMPImage.h b/src/BMPImage.h index 52db0b1..651192b 100644 --- a/src/BMPImage.h +++ b/src/BMPImage.h @@ -4,13 +4,18 @@ #include <cstdint> #include <cstring> -class BMPImage : public Image +namespace TehImage { -private: -public: - // template<std::derived_from<Image> T> BMPImage(const T& other) : Image(other) { } - BMPImage(const Image& other) : Image(other) {} + + class BMPImage : public Image + { + private: + public: + // template<std::derived_from<Image> T> BMPImage(const T& other) : Image(other) { } + BMPImage(const Image& other) : Image(other) {} - int readFromFile(std::string filename) override; - int writeToFile(std::string filename) override; -}; + int readFromFile(std::string filename) override; + int writeToFile(std::string filename) override; + }; + +} |
