Changeset 157 in ntrip
- Timestamp:
- Sep 9, 2006, 11:11:27 AM (18 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncapp.h
r152 r157 12 12 bncApp(int argc, char* argv[], bool GUIenabled); 13 13 virtual ~bncApp(); 14 QString bncVersion() const {return _bncVersion;} 14 15 public slots: 15 16 void slotMessage(const QByteArray msg); -
trunk/BNC/bncrinex.cpp
r156 r157 25 25 26 26 #include "bncrinex.h" 27 #include "bncapp.h" 27 28 #include "bncutils.h" 28 29 #include "bncconst.h" … … 52 53 } 53 54 } 55 56 _pgmName = ((bncApp*)qApp)->bncVersion().leftJustified(20, ' ', true); 57 _userName = QString("${USER}").leftJustified(20, ' ', true); 58 expandEnvVar(_userName); 54 59 } 55 60 … … 179 184 while (it.hasNext()) { 180 185 QString line = it.next(); 181 if (line.indexOf("# / TYPES OF OBSERV") != -1) { 186 if (line.indexOf("PGM / RUN BY / DATE") != -1) { 187 QString hlp = QDate::currentDate().toString("dd-MMM-yyyy "); 188 _out << _pgmName.toAscii().data() << _userName.toAscii().data() 189 << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl; 190 } 191 else if (line.indexOf("# / TYPES OF OBSERV") != -1) { 182 192 _out << " 4 P1 P2 L1 L2" 183 193 " # / TYPES OF OBSERV" << endl; … … 204 214 205 215 _out << " 2.10 OBSERVATION DATA G (GPS) RINEX VERSION / TYPE" << endl; 206 _out << "BNC LM 27-Aug-2006 PGM / RUN BY / DATE" << endl; 216 QString hlp = QDate::currentDate().toString("dd-MMM-yyyy "); 217 _out << _pgmName.toAscii().data() << _userName.toAscii().data() 218 << hlp.toAscii().data() << "PGM / RUN BY / DATE" << endl; 207 219 _out.setf(ios::left); 208 220 _out << setw(60) << _statID.data() << "MARKER NAME" << endl; … … 228 240 " hh mm ss.zzz0000").toAscii().data(); 229 241 _out << " " << "TIME OF FIRST OBS" << endl; 230 QStringhlp = QString("GENERATED FROM STREAM %1").arg(_mountPoint)231 .leftJustified(60, ' ', true);242 hlp = QString("GENERATED FROM STREAM %1").arg(_mountPoint) 243 .leftJustified(60, ' ', true); 232 244 _out << hlp.toAscii().data() << "COMMENT" << endl; 233 245 _out << " END OF HEADER" << endl; -
trunk/BNC/bncrinex.h
r153 r157 35 35 QProcess _rnxScript; 36 36 QString _mountPoint; 37 QString _pgmName; 38 QString _userName; 37 39 }; 38 40
Note:
See TracChangeset
for help on using the changeset viewer.