send card defs timestamp in 6xB4x46

This commit is contained in:
Martin Michelsen
2023-02-21 09:37:00 -08:00
parent 43395492b2
commit 79b0e82c50
5 changed files with 44 additions and 10 deletions
+2
View File
@@ -892,6 +892,7 @@ public:
std::shared_ptr<const CardEntry> definition_for_card_name(
const std::string& name) const;
std::set<uint32_t> all_card_ids() const;
uint64_t card_definitions_mtime() const;
const std::string& get_compressed_map_list() const;
std::shared_ptr<const MapEntry> definition_for_map_number(uint32_t id) const;
@@ -910,6 +911,7 @@ private:
std::string compressed_card_definitions;
std::unordered_map<uint32_t, std::shared_ptr<CardEntry>> card_definitions;
std::unordered_map<std::string, std::shared_ptr<CardEntry>> card_definitions_by_name;
uint64_t mtime_for_card_definitions;
// The compressed map list is generated on demand from the maps map below.
// It's marked mutable because the logical consistency of the DataIndex object