Horizon Official Technical Documentation
MapCache.hpp
Go to the documentation of this file.
1/***************************************************
2 * _ _ _ *
3 * | | | | (_) *
4 * | |_| | ___ _ __ _ _______ _ __ *
5 * | _ |/ _ \| '__| |_ / _ \| '_ \ *
6 * | | | | (_) | | | |/ / (_) | | | | *
7 * \_| |_/\___/|_| |_/___\___/|_| |_| *
8 ***************************************************
9 * This file is part of Horizon (c).
10 *
11 * Copyright (c) 2019 Sagun K. (sagunxp@gmail.com).
12 * Copyright (c) 2019 Horizon Dev Team.
13 *
14 * Base Author - Sagun K. (sagunxp@gmail.com)
15 *
16 * This library is free software; you can redistribute it and/or modify
17 * it under the terms of the GNU General Public License as published by
18 * the Free Software Foundation, either version 3 of the License, or
19 * (at your option) any later version.
20 *
21 * This library is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * You should have received a copy of the GNU General Public License
27 * along with this library. If not, see <http://www.gnu.org/licenses/>.
28 **************************************************/
29
30#ifndef HORIZON_TOOLS_MAPCACHE_HPP
31#define HORIZON_TOOLS_MAPCACHE_HPP
32
34#include "Libraries/GRF/GRF.hpp"
35
36#include <cstdint>
37#include <map>
38#include <boost/optional.hpp>
39
40namespace Horizon
41{
42namespace Tools
43{
44// Used internally, this structure contains the physical map cells
46{
47public:
48 MapCache();
49 ~MapCache();
50
51 void parse_exec_args(int argc, const char *argv[]);
52
54
55 bool ParseGRFLoadResult(std::pair<uint8_t, grf_load_result_type> result);
56
58
60private:
62};
63}
64}
65
66#endif // HORIZON_TOOLS_MAPCACHE_HPP
mcache_import_error_type
Definition: MapCache.hpp:142
mcache_error_type
Definition: MapCache.hpp:116
Definition: MapCache.hpp:164
Definition: MapCache.hpp:46
Horizon::Libraries::MapCache & getLibrary()
Definition: MapCache.hpp:59
~MapCache()
Definition: MapCache.cpp:40
bool ParseGRFLoadResult(std::pair< uint8_t, grf_load_result_type > result)
Definition: MapCache.cpp:98
bool ParseMapCacheImportResult(mcache_import_error_type type)
Definition: MapCache.cpp:152
Horizon::Libraries::MapCache _cache
Definition: MapCache.hpp:61
void parse_exec_args(int argc, const char *argv[])
Definition: MapCache.cpp:45
MapCache()
Definition: MapCache.cpp:35
bool ParseInitializeResult(mcache_error_type type)
Definition: MapCache.cpp:73
Definition: Element.hpp:7