| 94 | namespace track_analyzing |
| 95 | { |
| 96 | void CmdMatch(string const & logFile, string const & trackFile, shared_ptr<NumMwmIds> const & numMwmIds, |
| 97 | Storage const & storage, Stats & stats) |
| 98 | { |
| 99 | MwmToTracks mwmToTracks; |
| 100 | ParseTracks(logFile, numMwmIds, mwmToTracks); |
| 101 | stats.AddTracksStats(mwmToTracks, *numMwmIds, storage); |
| 102 | |
| 103 | MwmToMatchedTracks mwmToMatchedTracks; |
| 104 | MatchTracks(mwmToTracks, storage, *numMwmIds, mwmToMatchedTracks); |
| 105 | |
| 106 | FileWriter writer(trackFile, FileWriter::OP_WRITE_TRUNCATE); |
| 107 | MwmToMatchedTracksSerializer serializer(numMwmIds); |
| 108 | serializer.Serialize(mwmToMatchedTracks, writer); |
| 109 | LOG(LINFO, ("Matched tracks were saved to", trackFile)); |
| 110 | } |
| 111 | |
| 112 | void CmdMatch(string const & logFile, string const & trackFile, string const & inputDistribution) |
| 113 | { |
no test coverage detected