summaryrefslogtreecommitdiff
path: root/src/logTypes.hpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2026-04-15 12:27:28 +0100
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2026-04-15 12:27:28 +0100
commit0f7854926477eb8d0971de6c1ea88dd21071e028 (patch)
treeaaac559e0832b23876df0aad1edcbf2204677176 /src/logTypes.hpp
parent5b2166496e5f3ff2c4276e0b5b28f109c70673d5 (diff)
downloadwebstat-0f7854926477eb8d0971de6c1ea88dd21071e028.tar.bz2
webstat-0f7854926477eb8d0971de6c1ea88dd21071e028.tar.xz
webstat-0f7854926477eb8d0971de6c1ea88dd21071e028.zip
4 fields is more than enough for Entity to be a fully-fledged type
Diffstat (limited to 'src/logTypes.hpp')
-rw-r--r--src/logTypes.hpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/logTypes.hpp b/src/logTypes.hpp
index fb66867..7f0473e 100644
--- a/src/logTypes.hpp
+++ b/src/logTypes.hpp
@@ -37,7 +37,13 @@ namespace WebStat {
using EntityId = int32_t;
using EntityHash = std::array<uint8_t, MD5_DIGEST_LENGTH>;
- using Entity = std::tuple<EntityHash, std::optional<EntityId>, EntityType, std::string_view>;
+
+ struct Entity {
+ EntityHash hash;
+ std::optional<EntityId> id;
+ EntityType type;
+ std::string_view value;
+ };
}
namespace scn {