read config file

Signed-off-by: map-per <map-per@gmx.de>
This commit is contained in:
map-per
2025-12-09 17:14:40 +01:00
parent f24e92fa57
commit c3eb79d413
2 changed files with 13 additions and 0 deletions

View File

@@ -22,3 +22,9 @@ UNIT_TEST(testIfTestRuns)
TEST_EQUAL(result.key, "amenity", ());
TEST_EQUAL(result.value, "restaurant", ());
}
UNIT_TEST(loadConfigFile)
{
FeatureTypeToOSM typeToOsm;
typeToOsm.loadConfigFile();
}

View File

@@ -2,11 +2,18 @@
#include "base/logging.hpp"
#include "indexer/classificator.hpp"
#include "platform/platform.hpp"
namespace editor
{
void FeatureTypeToOSM::loadConfigFile() {
LOG(LINFO, ("Hello from loadConfigFile"));
Platform & p = GetPlatform();
std::unique_ptr<ModelReader> reader = p.GetReader("mapcss-mapping.csv");
LOG(LINFO, ("File has size ", reader->Size()));
}
std::vector<OSMTag> FeatureTypeToOSM::typeToOSM(uint32_t type)