json output mode for shapevl
This commit is contained in:
parent
f10397db41
commit
6473dcdb52
3 changed files with 67 additions and 8 deletions
|
|
@ -16,6 +16,7 @@
|
|||
#include "pfaedle/Def.h"
|
||||
#include "shapevl/Result.h"
|
||||
#include "util/geo/Geo.h"
|
||||
#include "util/json/Writer.h"
|
||||
|
||||
using ad::cppgtfs::gtfs::Shape;
|
||||
using ad::cppgtfs::gtfs::Trip;
|
||||
|
|
@ -57,6 +58,9 @@ class Collector {
|
|||
// Print general stats to os
|
||||
void printShortStats(std::ostream* os) const;
|
||||
|
||||
// Get JSON stats
|
||||
util::json::Dict getJSONStats() const;
|
||||
|
||||
// Print a CSV for the results to os
|
||||
void printCsv(std::ostream* os, const std::set<Result>& result) const;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue