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:
30
track_analyzing/log_parser.hpp
Normal file
30
track_analyzing/log_parser.hpp
Normal file
@@ -0,0 +1,30 @@
|
||||
#pragma once
|
||||
|
||||
#include "track_analyzing/track.hpp"
|
||||
|
||||
#include "routing_common/num_mwm_id.hpp"
|
||||
|
||||
#include "geometry/tree4d.hpp"
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
namespace track_analyzing
|
||||
{
|
||||
class LogParser final
|
||||
{
|
||||
public:
|
||||
LogParser(std::shared_ptr<routing::NumMwmIds> numMwmIds,
|
||||
std::unique_ptr<m4::Tree<routing::NumMwmId>> mwmTree, std::string const & dataDir);
|
||||
|
||||
void Parse(std::string const & logFile, MwmToTracks & mwmToTracks) const;
|
||||
|
||||
private:
|
||||
void ParseUserTracks(std::string const & logFile, UserToTrack & userToTrack) const;
|
||||
void SplitIntoMwms(UserToTrack const & userToTrack, MwmToTracks & mwmToTracks) const;
|
||||
|
||||
std::shared_ptr<routing::NumMwmIds> m_numMwmIds;
|
||||
std::shared_ptr<m4::Tree<routing::NumMwmId>> m_mwmTree;
|
||||
std::string const m_dataDir;
|
||||
};
|
||||
} // namespace track_analyzing
|
||||
Reference in New Issue
Block a user