// Part of BNC, a utility for retrieving decoding and // converting GNSS data streams from NTRIP broadcasters. // // Copyright (C) 2007 // German Federal Agency for Cartography and Geodesy (BKG) // http://www.bkg.bund.de // Czech Technical University Prague, Department of Geodesy // http://www.fsv.cvut.cz // // Email: euref-ip@bkg.bund.de // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License // as published by the Free Software Foundation, version 2. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. /* ------------------------------------------------------------------------- * BKG NTRIP Client * ------------------------------------------------------------------------- * * Class: main * * Purpose: Application starts here * * Author: L. Mervart * * Created: 24-Dec-2005 * * Changes: * * -----------------------------------------------------------------------*/ #include #include #include #include #include #include "app.h" #include "bnccore.h" #include "bncwindow.h" #include "bncsettings.h" #include "bncversion.h" #include "upload/bncephuploadcaster.h" #include "rinex/reqcedit.h" #include "rinex/reqcanalyze.h" #include "orbComp/sp3Comp.h" using namespace std; void catch_signal(int) { cout << "Program Interrupted by Ctrl-C" << endl; exit(0); } // Main Program ///////////////////////////////////////////////////////////////////////////// int main(int argc, char* argv[]) { bool interactive = true; #ifdef WIN32 bool displaySet = true; #else bool displaySet = false; #endif QByteArray rawFileName; QString confFileName; QByteArray printHelp = "Usage: bnc --nw \n" " --version \n" " --display \n" " --conf \n" " --file \n" " --key \n" "\n" "Internal keys:\n" " --startTab \n" " --statusTab \n" " --font \n" " --casterUrlList \n" "\n" "Network Panel keys:\n" " --proxyHost \n" " --proxyPort \n" " --sslCaCertPath \n" " --ignoreSslErrors \n" "\n" "General Panel keys:\n" " --logFile \n" " --rnxAppend \n" " --onTheFlyInterval \n" " --autoStart \n" " --rawOutFile \n" "\n" "RINEX Observations Panel keys:\n" " --rnxPath \n" " --rnxIntr \n" " --rnxSample \n" " --rnxSkel \n" " --rnxOnlyWithSKL \n" " --rnxScript \n" " --rnxV2Priority \n" " --rnxV3 \n" " --rnxV3filenames \n" "\n" "RINEX Ephemeris Panel keys:\n" " --ephPath \n" " --ephIntr \n" " --outEphPort \n" " --ephV3 \n" " --ephV3filenames \n" "\n" "RINEX Editing and QC Panel keys:\n" " --reqcAction \n" " --reqcObsFile \n" " --reqcNavFile \n" " --reqcOutObsFile \n" " --reqcOutNavFile \n" " --reqcOutLogFile \n" " --reqcLogSummaryOnly \n" " --reqcSkyPlotSignals \n" " --reqcPlotDir \n" " --reqcRnxVersion \n" " --reqcSampling \n" " --reqcV2Priority \n" " --reqcStartDateTime \n" " --reqcEndDateTime \n" " --reqcRunBy \n" " --reqcUseObsTypes \n" " --reqcComment \n" " --reqcOldMarkerName \n" " --reqcNewMarkerName \n" " --reqcOldAntennaName \n" " --reqcNewAntennaName \n" " --reqcOldAntennaNumber \n" " --reqcNewAntennaNumber \n" " --reqcOldAntennadN \n" " --reqcNewAntennadN \n" " --reqcOldAntennadE \n" " --reqcNewAntennadE \n" " --reqcOldAntennadU \n" " --reqcNewAntennadU \n" " --reqcOldReceiverName \n" " --reqcNewReceiverName \n" " --reqcOldReceiverNumber \n" " --reqcNewReceiverNumber \n" "\n" "SP3 Comparison Panel keys:\n" " --sp3CompFile \n" " --sp3CompExclude \n" " --sp3CompOutLogFile \n" "\n" "Broadcast Corrections Panel keys:\n" " --corrPath \n" " --corrIntr \n" " --corrPort \n" "\n" "Feed Engine Panel keys:\n" " --outPort \n" " --waitTime \n" " --binSampl \n" " --outFile \n" " --outUPort \n" "\n" "Serial Output Panel:\n" " --serialMountPoint \n" " --serialPortName \n" " --serialBaudRate \n" " --serialFlowControl \n" " --serialDataBits \n" " --serialParity \n" " --serialStopBits \n" " --serialAutoNMEA \n" " --serialFileNMEA \n" " --serialHeightNMEA \n" "\n" "Outages Panel keys:\n" " --obsRate \n" " --adviseFail \n" " --adviseReco \n" " --adviseScript