// 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" "\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" " ephOutPort \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" " outWait \n" " outSampl \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" " serialHeightNMEASampling \n" "\n" "Outages Panel keys:\n" " adviseObsRate \n" " adviseFail \n" " adviseReco \n" " adviseScript \n" "\n" "Miscellaneous Panel keys:\n" " miscMount \n" " miscIntr \n" " miscScanRTCM \n" " miscPort \n" "\n" "PPP Client Panel 1 keys:\n" " PPP/dataSource \n" " PPP/rinexObs \n" " PPP/rinexNav \n" " PPP/corrMount \n" " PPP/corrFile \n" " PPP/crdFile \n" " PPP/logFilePPP \n" " PPP/antexFile \n" " PPP/nmeaFile \n" " PPP/snxtroFile \n" " PPP/snxtroSampl \n" "\n" "PPP Client Panel 2 keys:\n" " PPP/staTable \n" "\n" "PPP Client Panel 3 keys:\n" " PPP/lcGPS \n" " PPP/lcGalileo \n" " PPP/sigmaC1 \n" " PPP/sigmaL1 \n" " PPP/maxResC1 \n" " PPP/maxResL1 \n" " PPP/eleWgtCode \n" " PPP/eleWgtPhase \n" " PPP/minObs \n" " PPP/minEle \n" " PPP/corrWaitTime \n" " PPP/seedingTime \n" "\n" "PPP Client Panel 4 keys:\n" " PPP/plotCoordinates \n" " PPP/audioResponse