Changeset 3524 in ntrip for trunk/BNC/bncmain.cpp
- Timestamp:
- Dec 15, 2011, 9:51:40 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncmain.cpp
r3364 r3524 64 64 bool GUIenabled = true; 65 65 QByteArray rawFileName; 66 QByteArray format;67 66 QByteArray staID; 68 67 QString confFileName; … … 80 79 rawFileName = QByteArray(argv[ii+1]); 81 80 } 82 if (QByteArray(argv[ii]).indexOf("-format") != -1) {83 format = QByteArray(argv[ii+1]);84 }85 81 if (QByteArray(argv[ii]).indexOf("-mountpoint") != -1) { 86 82 staID = QByteArray(argv[ii+1]); … … 96 92 " --conf <confFileName>\n" 97 93 " --file <rawFileName>\n" 98 " --mountpoint <station>\n" 99 " --format <RTCM_2 | RTCM_3>\n"; 94 " --mountpoint <station>\n"; 100 95 101 96 bncApp app(argc, argv, GUIenabled); … … 163 158 app.setMode(bncApp::batchPostProcessing); 164 159 165 if ( format.isEmpty() ||staID.isEmpty() ) {160 if ( staID.isEmpty() ) { 166 161 cout << printHelp.toAscii().data() << endl; 167 162 exit(0); 168 163 } 169 164 170 bncRawFile* rawFile = new bncRawFile(rawFileName, staID, format,165 bncRawFile* rawFile = new bncRawFile(rawFileName, staID, 171 166 bncRawFile::input); 172 167
Note:
See TracChangeset
for help on using the changeset viewer.