mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-30 09:34:06 +00:00
Organic Maps sources as of 02.04.2025 (fad26bbf22ac3da75e01e62aa01e5c8e11861005)
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
This commit is contained in:
25
generator/generator_tests/common.cpp
Normal file
25
generator/generator_tests/common.cpp
Normal 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
|
||||
Reference in New Issue
Block a user