19 #ifndef HEADER_FAVORITE_STATUS_HPP
20 #define HEADER_FAVORITE_STATUS_HPP
22 #include "utils/leak_check.hpp"
24 #include <irrString.h>
28 #include <unordered_map>
47 std::string m_parse_type;
50 std::unordered_map<std::string, std::set<std::string> >
m_favorite;
53 static const std::string DEFAULT_FAVORITE_GROUP_NAME;
60 bool isFavorite(std::string ident);
62 void addFavorite(std::string ident, std::string group = DEFAULT_FAVORITE_GROUP_NAME);
64 void removeFavorite(std::string ident, std::string group = DEFAULT_FAVORITE_GROUP_NAME);
66 const std::unordered_map<std::string, std::set<std::string> >& getAllFavorites()
const
67 {
return m_favorite; }
Class for storing the current favorites/custom groups of karts and tracks.
Definition: favorite_status.hpp:43
std::unordered_map< std::string, std::set< std::string > > m_favorite
unordered_map<Group Name, set<Track Name> > .
Definition: favorite_status.hpp:50
Definition: kart_properties_manager.hpp:42
Simple class to load and manage track data, track names and such.
Definition: track_manager.hpp:35
utility class used to write wide (UTF-16 or UTF-32, depending of size of wchar_t) XML files
Definition: utf_writer.hpp:35
utility class used to parse XML files
Definition: xml_node.hpp:48