Changeset 3571 in ntrip for branches/BNC_LM/bncmain.cpp
- Timestamp:
- Dec 25, 2011, 7:27:03 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_LM/bncmain.cpp
r3364 r3571 64 64 bool GUIenabled = true; 65 65 QByteArray rawFileName; 66 QByteArray format;67 QByteArray staID;68 66 QString confFileName; 69 67 … … 80 78 rawFileName = QByteArray(argv[ii+1]); 81 79 } 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 }88 80 } 89 81 } … … 95 87 QString printHelp = "Usage: bnc --nw\n" 96 88 " --conf <confFileName>\n" 97 " --file <rawFileName>\n" 98 " --mountpoint <station>\n" 99 " --format <RTCM_2 | RTCM_3>\n"; 89 " --file <rawFileName>\n"; 100 90 101 91 bncApp app(argc, argv, GUIenabled); … … 162 152 else { 163 153 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); 173 156 bncGetThread* getThread = new bncGetThread(rawFile); 174 157 caster->addGetThread(getThread, true);
Note:
See TracChangeset
for help on using the changeset viewer.