aboutsummaryrefslogtreecommitdiff
path: root/src/BMPImage.h
diff options
context:
space:
mode:
authorDylan <boss@tehbox.org>2025-10-07 18:45:28 +1300
committerDylan <boss@tehbox.org>2025-10-07 19:31:32 +1300
commit328e2464c81b0dfce623d4fbe9617ef79d6ed3c1 (patch)
treeecccb3c6583640af4792efa93ff280f17b4f707a /src/BMPImage.h
parent308b65134bd9d185741a612bfad3cca80ddddc48 (diff)
downloadtehimage-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.h21
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;
+ };
+
+}