Repo created

This commit is contained in:
Fr4nz D13trich 2025-11-22 13:58:55 +01:00
parent 4af19165ec
commit 68073add76
12458 changed files with 12350765 additions and 2 deletions

View file

@ -0,0 +1,25 @@
#include "generator/generator_tests/common.hpp"
#include "platform/platform.hpp"
namespace generator_tests
{
OsmElement MakeOsmElement(uint64_t id, Tags const & tags, OsmElement::EntityType t)
{
OsmElement el;
el.m_id = id;
el.m_type = t;
for (auto const & t : tags)
el.AddTag(t.first, t.second);
return el;
}
std::string GetFileName(std::string const & filename)
{
auto & platform = GetPlatform();
return filename.empty() ? platform.TmpPathForFile() : platform.TmpPathForFile(filename);
}
} // namespace generator_tests