summaryrefslogtreecommitdiff
path: root/include/erebos/storage.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/erebos/storage.h')
-rw-r--r--include/erebos/storage.h29
1 files changed, 3 insertions, 26 deletions
diff --git a/include/erebos/storage.h b/include/erebos/storage.h
index 4d7c691..d5ae45a 100644
--- a/include/erebos/storage.h
+++ b/include/erebos/storage.h
@@ -1,8 +1,10 @@
#pragma once
+#include <erebos/time.h>
+#include <erebos/uuid.h>
+
#include <algorithm>
#include <array>
-#include <chrono>
#include <cstring>
#include <filesystem>
#include <memory>
@@ -11,8 +13,6 @@
#include <variant>
#include <vector>
-#include <uuid/uuid.h>
-
namespace erebos {
class Storage;
@@ -162,29 +162,6 @@ protected:
Ref(const std::shared_ptr<const Priv> p): PartialRef(p) {}
};
-struct ZonedTime
-{
- explicit ZonedTime(std::string);
- ZonedTime(std::chrono::system_clock::time_point t): time(t), zone(0) {}
- explicit operator std::string() const;
-
- static ZonedTime now();
-
- std::chrono::system_clock::time_point time;
- std::chrono::minutes zone; // zone offset
-};
-
-struct UUID
-{
- explicit UUID(std::string);
- explicit operator std::string() const;
-
- bool operator==(const UUID &) const;
- bool operator!=(const UUID &) const;
-
- uuid_t uuid;
-};
-
template<class S>
class RecordT
{