Changeset 3004 in ntrip for trunk/BNC/bncmain.cpp


Ignore:
Timestamp:
Feb 22, 2011, 11:53:04 AM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmain.cpp

    r2909 r3004  
    6464  QByteArray rawFileName;
    6565  QByteArray format;
     66  QByteArray staID;
    6667  QString    confFileName;
    6768
     
    8182        format = QByteArray(argv[ii+1]);
    8283      }
     84      if (QByteArray(argv[ii]).indexOf("-staID") != -1) {
     85        staID = QByteArray(argv[ii+1]);
     86      }
    8387    }
    8488  }
     
    8993
    9094  QString printHelp = "Usage: bnc -nw\n"
    91                       "           --conf <confFileName>\n"
    92                       "           --file <rawFileName>\n"
     95                      "           --conf   <confFileName>\n"
     96                      "           --file   <rawFileName>\n"
     97                      "           --staID  <station>\n"
    9398                      "           --format <RTIGS | RTCM_2 | RTCM_3>\n";
    9499
     
    150155    // -----------------------------
    151156    else {
    152       if ( format.isEmpty() ) {
     157      if ( format.isEmpty() || staID.isEmpty() ) {
    153158        cout << printHelp.toAscii().data() << endl;
    154159        exit(0);
    155160      }
    156161
    157       bncRawFile* rawFile = new bncRawFile(rawFileName, format,
     162      bncRawFile* rawFile = new bncRawFile(rawFileName, staID, format,
    158163                                           bncRawFile::input);
    159164
Note: See TracChangeset for help on using the changeset viewer.