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,64 @@
#pragma once
#include "generator/affiliation.hpp"
#include "generator/final_processor_interface.hpp"
#include <string>
namespace generator
{
class CountryFinalProcessor : public FinalProcessorIntermediateMwmInterface
{
public:
CountryFinalProcessor(AffiliationInterfacePtr affiliations, std::string const & temporaryMwmPath,
size_t threadsCount);
void SetCoastlines(std::string const & coastlineGeomFilename, std::string const & worldCoastsFilename)
{
m_coastlineGeomFilename = coastlineGeomFilename;
m_worldCoastsFilename = worldCoastsFilename;
}
void SetFakeNodes(std::string const & filename) { m_fakeNodesFilename = filename; }
void SetMiniRoundabouts(std::string const & filename) { m_miniRoundaboutsFilename = filename; }
void SetAddrInterpolation(std::string const & filename) { m_addrInterpolFilename = filename; }
void SetIsolinesDir(std::string const & dir) { m_isolinesPath = dir; }
void SetAddressesDir(std::string const & dir) { m_addressPath = dir; }
void SetCityBoundariesFiles(std::string const & collectorFile) { m_boundariesCollectorFile = collectorFile; }
// FinalProcessorIntermediateMwmInterface overrides:
void Process() override;
void ProcessBuildingParts();
private:
// void Order();
void ProcessCoastline();
void ProcessRoundabouts();
void AddFakeNodes();
void AddIsolines();
void AddAddresses();
void DropProhibitedSpeedCameras();
// void Finish();
bool IsCountry(std::string const & filename);
std::string m_borderPath;
std::string m_temporaryMwmPath;
std::string m_intermediateDir;
std::string m_isolinesPath, m_addressPath;
std::string m_boundariesCollectorFile;
std::string m_coastlineGeomFilename;
std::string m_worldCoastsFilename;
std::string m_fakeNodesFilename;
std::string m_miniRoundaboutsFilename;
std::string m_addrInterpolFilename;
std::string m_hierarchySrcFilename;
AffiliationInterfacePtr m_affiliations;
size_t m_threadsCount;
};
} // namespace generator