New cpp folder structure

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk
2025-07-17 22:35:52 +03:00
committed by Konstantin Pastbin
parent c9cbb64f12
commit 76ffc99abd
2390 changed files with 345 additions and 339 deletions

View File

@@ -0,0 +1,42 @@
#include "search/displayed_categories.hpp"
#include "base/macros.hpp"
#include <algorithm>
namespace search
{
DisplayedCategories::DisplayedCategories(CategoriesHolder const & holder) : m_holder(holder)
{
m_keys = {"category_eat",
"category_hotel",
"category_food",
"category_tourism",
"category_wifi",
"category_transport",
"category_fuel",
"category_parking",
"category_shopping",
"category_secondhand",
"category_atm",
"category_nightlife",
"category_children",
"category_bank",
"category_entertainment",
"category_water",
"category_hospital",
"category_pharmacy",
"category_recycling",
"category_rv",
"category_police",
"category_toilet",
"category_post"};
}
void DisplayedCategories::Modify(CategoriesModifier & modifier)
{
modifier.Modify(m_keys);
}
std::vector<std::string> const & DisplayedCategories::GetKeys() const { return m_keys; }
} // namespace search