Changeset 1156 in ntrip
- Timestamp:
- Oct 7, 2008, 1:13:08 PM (16 years ago)
- Location:
- trunk/BNC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.cpp
r1155 r1156 146 146 147 147 delete _corrs; 148 149 delete _currentDateAndTimeGPS; 148 150 } 149 151 -
trunk/BNC/bncmain.cpp
r1146 r1156 63 63 QByteArray fileName; 64 64 QByteArray format; 65 QString dateString; 66 QString timeString; 65 67 66 68 for (int ii = 1; ii < argc; ii++) { … … 84 86 if (ii+1 < argc) { 85 87 format = QByteArray(argv[ii+1]); 88 } 89 } 90 if (QByteArray(argv[ii]) == "-date" || QByteArray(argv[ii]) == "--date") { 91 if (ii+1 < argc) { 92 dateString = QString(argv[ii+1]); 93 } 94 } 95 if (QByteArray(argv[ii]) == "-time" || QByteArray(argv[ii]) == "--time") { 96 if (ii+1 < argc) { 97 timeString = QString(argv[ii+1]); 86 98 } 87 99 } … … 152 164 153 165 if (fileInput) { 154 if (fileName.isEmpty() || format.isEmpty()) { 155 cout << "Usage: bnc --file <fileName> --format <RTIGS | RTCM_2 | RTCM_3>" << endl; 166 if ( fileName.isEmpty() || format.isEmpty() || 167 dateString.isEmpty() || timeString.isEmpty() ) { 168 cout << "Usage: bnc --file <fileName>\n" 169 " --format <RTIGS | RTCM_2 | RTCM_3>\n" 170 " --date YYYY-MM-DD --time HH:MM:SS" << endl; 156 171 exit(0); 157 172 } 173 174 app._currentDateAndTimeGPS = 175 new QDateTime(QDate::fromString(dateString), 176 QTime::fromString(timeString), Qt::UTC); 158 177 159 178 bncGetThread* getThread = new bncGetThread(fileName, format);
Note:
See TracChangeset
for help on using the changeset viewer.