aboutsummaryrefslogtreecommitdiff
path: root/core/src/Utils/IO/Archive.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2021-08-22 13:46:36 -0700
committerrtk0c <[email protected]>2021-08-22 13:46:36 -0700
commit44d166181eae8727dddbdaf8462098802af6e8c1 (patch)
treeee330909e586597b8aa129bdec7219ade95c1a6d /core/src/Utils/IO/Archive.hpp
parentf7abb9021e071abee27b0fba2c1ffe989be2003e (diff)
Split DataStream into InputDataStream and OutputDataStream
Diffstat (limited to 'core/src/Utils/IO/Archive.hpp')
-rw-r--r--core/src/Utils/IO/Archive.hpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/core/src/Utils/IO/Archive.hpp b/core/src/Utils/IO/Archive.hpp
index 72f79c6..28e7c99 100644
--- a/core/src/Utils/IO/Archive.hpp
+++ b/core/src/Utils/IO/Archive.hpp
@@ -7,16 +7,8 @@
class DataArchive
{
-private:
- DataStream mStream;
-
public:
- static std::optional<DataArchive> SaveFile(const std::filesystem::path& path);
- static std::optional<DataArchive> LoadFile(const std::filesystem::path& path);
-
- const DataStream& GetStream()const;
- DataStream& GetStream();
-
-private:
- DataArchive(DataStream stream);
+ // TODO more complete impl
+ static std::optional<InputDataStream> LoadFile(const std::filesystem::path& path);
+ static std::optional<OutputDataStream> SaveFile(const std::filesystem::path& path);
};