Changeset 4010 in ntrip for trunk/BNC/rinex/rnxnavfile.cpp


Ignore:
Timestamp:
Apr 22, 2012, 12:29:32 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rinex/rnxnavfile.cpp

    r4004 r4010  
    4242#include <newmatio.h>
    4343#include "rnxnavfile.h"
     44#include "bncapp.h"
    4445#include "bncutils.h"
    4546#include "RTCM3/ephemeris.h"
     
    239240////////////////////////////////////////////////////////////////////////////
    240241void t_rnxNavFile::writeHeader() {
    241   *_stream << "Writing header ..." << endl;
     242
     243  bncApp* app = (bncApp*) qApp;
     244
     245  if (version() < 3.0) {
     246    *_stream << QString("%1           Navigation data")
     247      .arg(_header._version, 9, 'f', 2)
     248      .leftJustified(60)
     249             << "RINEX VERSION / TYPE\n";
     250  }
     251  else {
     252    *_stream << QString("%1           Navigation data     Mixed")
     253      .arg(_header._version, 9, 'f', 2)
     254      .leftJustified(60)
     255             << "RINEX VERSION / TYPE\n";
     256  }
     257
     258  *_stream << QString("%1%2%3")
     259    .arg(app->pgmName(), -20)
     260    .arg(app->userName(), -20)
     261    .arg(currentDateAndTimeGPS().date().toString("dd-MMM-yyyy"), -20)
     262    .leftJustified(60)
     263           << "PGM / RUN BY / DATE\n";
     264
     265  *_stream << QString()
     266    .leftJustified(60)
     267           << "END OF HEADER\n";
    242268}
    243269
Note: See TracChangeset for help on using the changeset viewer.