From af05ced6f3319dfe057699a956ac64d635a47ee4 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Fri, 3 Jul 2020 21:47:25 +0200 Subject: [PATCH] implement sp3src for sp3feed, so we can have many parallel providers --- sp3feed.cc | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/sp3feed.cc b/sp3feed.cc index 245ce27..3cd418a 100644 --- a/sp3feed.cc +++ b/sp3feed.cc @@ -18,11 +18,12 @@ int main(int argc, char **argv) { string influxDBName("galileo2"); bool doVERSION=false; - int sigid=1; + CLI::App app(program); vector fnames; + string sp3src("default"); app.add_flag("--version", doVERSION, "show program version and copyright"); - app.add_option("--sigid,-s", sigid, "Signal identifier. 1 or 5 for Galileo."); + app.add_option("--sp3src,-s", sp3src, "Identifier of SP3 source"); app.add_option("--influxdb", influxDBName, "Name of influxdb database"); app.add_option("files", fnames, "filenames to parse"); try { @@ -40,14 +41,10 @@ int main(int argc, char **argv) for(const auto& fn : fnames) { SP3Reader sp3(fn); SP3Entry e; - SatID sid; cout<