refactor: libs/feature_helpers merged in libs/indexer

Signed-off-by: Séverin Lemaignan <severin@guakamole.org>
This commit is contained in:
Séverin Lemaignan
2025-10-05 21:02:50 +02:00
committed by x7z4w
parent 00be9a536d
commit 2217db002a
11 changed files with 8 additions and 35 deletions

View File

@@ -251,7 +251,6 @@ target_link_libraries(${PROJECT_NAME}
storage storage
descriptions descriptions
indexer indexer
feature_helpers
cppjansson cppjansson
expat::expat expat::expat
tess2 tess2

View File

@@ -1,8 +1,8 @@
#pragma once #pragma once
#include "indexer/feature_charge_sockets.hpp"
#include "indexer/feature_data.hpp" #include "indexer/feature_data.hpp"
#include "indexer/validate_and_format_contacts.hpp" #include "indexer/validate_and_format_contacts.hpp"
#include "feature_helpers/feature_charge_sockets.hpp"
#include <string> #include <string>
@@ -46,7 +46,6 @@ struct MetadataTagProcessorImpl
static std::string ValidateAndFormat_outdoor_seating(std::string v); static std::string ValidateAndFormat_outdoor_seating(std::string v);
protected: protected:
// stores information about charge sockets in charging stations. // stores information about charge sockets in charging stations.
ChargeSocketsHelper m_chargeSockets; ChargeSocketsHelper m_chargeSockets;

View File

@@ -4,7 +4,6 @@ add_subdirectory(descriptions)
add_subdirectory(drape) add_subdirectory(drape)
add_subdirectory(drape_frontend) add_subdirectory(drape_frontend)
add_subdirectory(editor) add_subdirectory(editor)
add_subdirectory(feature_helpers)
add_subdirectory(ge0) add_subdirectory(ge0)
add_subdirectory(mwm_diff) add_subdirectory(mwm_diff)
add_subdirectory(geometry) add_subdirectory(geometry)

View File

@@ -1,14 +0,0 @@
project(feature_helpers)
set(SRC
feature_charge_sockets.cpp
feature_charge_sockets.hpp
)
omim_add_library(${PROJECT_NAME} ${SRC})
target_link_libraries(${PROJECT_NAME}
PRIVATE
base
)
omim_add_test_subdirectory(feature_helpers_tests)

View File

@@ -1,11 +0,0 @@
project(feature_helpers_tests)
set(SRC
feature_charge_sockets_test.cpp
)
omim_add_test(${PROJECT_NAME} ${SRC})
target_link_libraries(${PROJECT_NAME}
feature_helpers
)

View File

@@ -60,6 +60,8 @@ set(SRC
feature_algo.cpp feature_algo.cpp
feature_algo.hpp feature_algo.hpp
feature_altitude.hpp feature_altitude.hpp
feature_charge_sockets.cpp
feature_charge_sockets.hpp
feature_covering.cpp feature_covering.cpp
feature_covering.hpp feature_covering.hpp
feature_data.cpp feature_data.cpp
@@ -158,7 +160,6 @@ target_link_libraries(${PROJECT_NAME}
geometry geometry
protobuf protobuf
coding coding
feature_helpers
) )
omim_add_test_subdirectory(indexer_tests) omim_add_test_subdirectory(indexer_tests)

View File

@@ -1,5 +1,5 @@
#include "feature_helpers/feature_charge_sockets.hpp" #include "indexer/feature_charge_sockets.hpp"
#include "base/logging.hpp" #include "base/logging.hpp"
#include "base/string_utils.hpp" #include "base/string_utils.hpp"

View File

@@ -16,6 +16,7 @@ set(SRC
data_source_test.cpp data_source_test.cpp
drules_selector_parser_test.cpp drules_selector_parser_test.cpp
editable_map_object_test.cpp editable_map_object_test.cpp
feature_charge_sockets_test.cpp
feature_metadata_test.cpp feature_metadata_test.cpp
feature_names_test.cpp feature_names_test.cpp
feature_to_osm_tests.cpp feature_to_osm_tests.cpp

View File

@@ -1,6 +1,6 @@
#include "testing/testing.hpp" #include "indexer/feature_charge_sockets.hpp"
#include "feature_helpers/feature_charge_sockets.hpp" #include "testing/testing.hpp"
namespace feature_charge_sockets_test namespace feature_charge_sockets_test
{ {

View File

@@ -1,5 +1,6 @@
#pragma once #pragma once
#include "indexer/feature_charge_sockets.hpp"
#include "indexer/feature_data.hpp" #include "indexer/feature_data.hpp"
#include "indexer/feature_decl.hpp" #include "indexer/feature_decl.hpp"
#include "indexer/feature_meta.hpp" #include "indexer/feature_meta.hpp"
@@ -10,8 +11,6 @@
#include "coding/string_utf8_multilang.hpp" #include "coding/string_utf8_multilang.hpp"
#include "feature_helpers/feature_charge_sockets.hpp"
#include <string> #include <string>
#include <vector> #include <vector>