Changeset 3571 in ntrip for branches/BNC_LM/bncmain.cpp


Ignore:
Timestamp:
Dec 25, 2011, 7:27:03 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_LM/bncmain.cpp

    r3364 r3571  
    6464  bool       GUIenabled  = true;
    6565  QByteArray rawFileName;
    66   QByteArray format;
    67   QByteArray staID;
    6866  QString    confFileName;
    6967
     
    8078        rawFileName = QByteArray(argv[ii+1]);
    8179      }
    82       if (QByteArray(argv[ii]).indexOf("-format") != -1) {
    83         format = QByteArray(argv[ii+1]);
    84       }
    85       if (QByteArray(argv[ii]).indexOf("-mountpoint") != -1) {
    86         staID = QByteArray(argv[ii+1]);
    87       }
    8880    }
    8981  }
     
    9587  QString printHelp = "Usage: bnc --nw\n"
    9688                      "           --conf       <confFileName>\n"
    97                       "           --file       <rawFileName>\n"
    98                       "           --mountpoint <station>\n"
    99                       "           --format     <RTCM_2 | RTCM_3>\n";
     89                      "           --file       <rawFileName>\n";
    10090
    10191  bncApp app(argc, argv, GUIenabled);
     
    162152    else {
    163153      app.setMode(bncApp::batchPostProcessing);
    164 
    165       if ( format.isEmpty() || staID.isEmpty() ) {
    166         cout << printHelp.toAscii().data() << endl;
    167         exit(0);
    168       }
    169 
    170       bncRawFile* rawFile = new bncRawFile(rawFileName, staID, format,
    171                                            bncRawFile::input);
    172 
     154      bncRawFile*   rawFile   = new bncRawFile(rawFileName, "",
     155                                               bncRawFile::input);
    173156      bncGetThread* getThread = new bncGetThread(rawFile);
    174157      caster->addGetThread(getThread, true);
Note: See TracChangeset for help on using the changeset viewer.