aboutsummaryrefslogtreecommitdiff
path: root/src/openvic-simulation/history/HistoryManager.hpp
blob: 5782e9721a2017c67800a56372f61a7736100e41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include "openvic-simulation/history/Bookmark.hpp"
#include "openvic-simulation/history/CountryHistory.hpp"
#include "openvic-simulation/history/ProvinceHistory.hpp"
#include "openvic-simulation/types/IdentifierRegistry.hpp"

namespace OpenVic {
   struct HistoryManager {
   private:
      BookmarkManager bookmark_manager;
      CountryHistoryManager country_manager;
      ProvinceHistoryManager province_manager;

   public:
      REF_GETTERS(bookmark_manager)
      REF_GETTERS(country_manager)
      REF_GETTERS(province_manager)

      inline bool load_bookmark_file(ast::NodeCPtr root) {
         return bookmark_manager.load_bookmark_file(root);
      }
   };
}