From a93b0d8f268fbf04c09ee73e5b2923a610667fcf Mon Sep 17 00:00:00 2001 From: Spartan322 Date: Mon, 9 Oct 2023 12:02:14 -0400 Subject: Add Bookmark Loading --- src/openvic-simulation/history/HistoryManager.hpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/openvic-simulation/history/HistoryManager.hpp (limited to 'src/openvic-simulation/history/HistoryManager.hpp') diff --git a/src/openvic-simulation/history/HistoryManager.hpp b/src/openvic-simulation/history/HistoryManager.hpp new file mode 100644 index 0000000..bec5359 --- /dev/null +++ b/src/openvic-simulation/history/HistoryManager.hpp @@ -0,0 +1,18 @@ +#pragma once + +#include "openvic-simulation/history/Bookmark.hpp" +#include "openvic-simulation/types/IdentifierRegistry.hpp" + +namespace OpenVic { + struct HistoryManager { + private: + BookmarkManager bookmark_manager; + + public: + REF_GETTERS(bookmark_manager) + + inline bool load_bookmark_file(ast::NodeCPtr root) { + return bookmark_manager.load_bookmark_file(root); + } + }; +} -- cgit v1.2.3-56-ga3b1