aboutsummaryrefslogtreecommitdiff
path: root/include/Path.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/Path.hpp')
-rw-r--r--include/Path.hpp26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/Path.hpp b/include/Path.hpp
new file mode 100644
index 0000000..351fd5d
--- /dev/null
+++ b/include/Path.hpp
@@ -0,0 +1,26 @@
+#pragma once
+
+#include <string>
+
+namespace QuickMedia {
+ class Path {
+ public:
+ Path() = default;
+ ~Path() = default;
+ Path(const Path &other) = default;
+ Path& operator=(const Path &other) = default;
+ Path(const char *path) : data(path) {}
+ Path(const std::string &path) : data(path) {}
+ Path(Path &&other) {
+ data = std::move(other.data);
+ }
+
+ Path& join(const Path &other) {
+ data += "/";
+ data += other.data;
+ return *this;
+ }
+
+ std::string data;
+ };
+} \ No newline at end of file