mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +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:
32
generator/address_parser/processor.hpp
Normal file
32
generator/address_parser/processor.hpp
Normal file
@@ -0,0 +1,32 @@
|
||||
#pragma once
|
||||
|
||||
#include "generator/affiliation.hpp"
|
||||
|
||||
#include "coding/file_writer.hpp"
|
||||
|
||||
#include "base/thread_pool_computational.hpp"
|
||||
|
||||
#include <istream>
|
||||
#include <mutex>
|
||||
|
||||
namespace addr_generator
|
||||
{
|
||||
|
||||
class Processor
|
||||
{
|
||||
feature::CountriesFilesAffiliation m_affiliation;
|
||||
base::ComputationalThreadPool m_workers;
|
||||
|
||||
std::mutex m_mtx;
|
||||
std::map<std::string, FileWriter> m_country2writer;
|
||||
std::string m_outputPath;
|
||||
|
||||
FileWriter & GetWriter(std::string const & country);
|
||||
|
||||
public:
|
||||
explicit Processor(std::string const & dataPath, std::string const & outputPath, size_t numThreads);
|
||||
|
||||
void Run(std::istream & is);
|
||||
};
|
||||
|
||||
} // namespace addr_generator
|
||||
Reference in New Issue
Block a user