Changeset 7291 in ntrip


Ignore:
Timestamp:
Sep 21, 2015, 2:44:44 PM (9 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bnccore.cpp

    r7208 r7291  
    3535 * Created:    29-Aug-2006
    3636 *
    37  * Changes:   
     37 * Changes:
    3838 *
    3939 * -----------------------------------------------------------------------*/
     
    4444#include <cmath>
    4545
    46 #include "bnccore.h" 
    47 #include "bncutils.h" 
    48 #include "bncrinex.h" 
    49 #include "bncsettings.h" 
    50 #include "bncversion.h" 
    51 #include "ephemeris.h" 
    52 #include "rinex/rnxobsfile.h" 
    53 #include "rinex/rnxnavfile.h" 
     46#include "bnccore.h"
     47#include "bncutils.h"
     48#include "bncrinex.h"
     49#include "bncsettings.h"
     50#include "bncversion.h"
     51#include "ephemeris.h"
     52#include "rinex/rnxobsfile.h"
     53#include "rinex/rnxnavfile.h"
    5454#include "pppMain.h"
    5555
    5656#ifdef USE_COMBINATION
    57 #  include "combination/bnccomb.h" 
     57#  include "combination/bnccomb.h"
    5858#endif
    5959
    6060using namespace std;
    6161
    62 // Singleton 
     62// Singleton
    6363////////////////////////////////////////////////////////////////////////////
    6464t_bncCore* t_bncCore::instance() {
     
    176176    if ( !logFileName.isEmpty() ) {
    177177      expandEnvVar(logFileName);
    178       _logFile = new QFile(logFileName + "_" + 
     178      _logFile = new QFile(logFileName + "_" +
    179179                          currDate.toString("yyMMdd").toAscii().data());
    180180      _fileDate = currDate;
     
    203203}
    204204
    205 // 
     205//
    206206////////////////////////////////////////////////////////////////////////////
    207207t_irc t_bncCore::checkPrintEph(t_eph* eph) {
     
    221221}
    222222
    223 // New GPS Ephemeris 
     223// New GPS Ephemeris
    224224////////////////////////////////////////////////////////////////////////////
    225225void t_bncCore::slotNewGPSEph(t_ephGPS eph) {
     
    228228  }
    229229}
    230    
     230
    231231// New Glonass Ephemeris
    232232////////////////////////////////////////////////////////////////////////////
     
    272272
    273273    if ( Qt::CheckState(settings.value("ephV3").toInt()) == Qt::Checked) {
    274       _rinexVers = 3;   
     274      _rinexVers = 3;
    275275    }
    276276    else {
     
    298298    bool ephV3filenames = settings.value("ephV3filenames").toBool();
    299299
    300     QString hlpStr = bncRinex::nextEpochStr(datTim, 
     300    QString hlpStr = bncRinex::nextEpochStr(datTim,
    301301                         settings.value("ephIntr").toString(), ephV3filenames);
    302302
     
    381381        QString line;
    382382        line.sprintf(
    383           "%9.2f%11sN: GNSS NAV DATA    M: Mixed%12sRINEX VERSION / TYPE\n", 
    384           3.0, "", "");
     383          "%9.2f%11sN: GNSS NAV DATA    M: Mixed%12sRINEX VERSION / TYPE\n",
     384          t_rnxNavFile::defaultRnxNavVersion3, "", "");
    385385        *_ephStreamGPS << line;
    386        
     386
    387387        QString hlp = currentDateAndTimeGPS().toString("yyyyMMdd hhmmss UTC").leftJustified(20, ' ', true);
    388         *_ephStreamGPS << _pgmName.toAscii().data() 
    389                        << _userName.toAscii().data() 
    390                        << hlp.toAscii().data() 
     388        *_ephStreamGPS << _pgmName.toAscii().data()
     389                       << _userName.toAscii().data()
     390                       << hlp.toAscii().data()
    391391                       << "PGM / RUN BY / DATE" << endl;
    392392
    393393        line.sprintf("%60sEND OF HEADER\n", "");
    394394        *_ephStreamGPS << line;
    395        
     395
    396396        _ephStreamGPS->flush();
    397397      }
     
    406406                     t_rnxNavFile::defaultRnxNavVersion2, "", "");
    407407        *_ephStreamGPS << line;
    408          
     408
    409409        QString hlp = currentDateAndTimeGPS().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
    410         *_ephStreamGPS << _pgmName.toAscii().data() 
    411                        << _userName.toAscii().data() 
    412                        << hlp.toAscii().data() 
     410        *_ephStreamGPS << _pgmName.toAscii().data()
     411                       << _userName.toAscii().data()
     412                       << hlp.toAscii().data()
    413413                       << "PGM / RUN BY / DATE" << endl;
    414414
     
    423423                     t_rnxNavFile::defaultRnxNavVersion2, "", "");
    424424        *_ephStreamGlonass << line;
    425        
     425
    426426        QString hlp = currentDateAndTimeGPS().date().toString("dd-MMM-yyyy").leftJustified(20, ' ', true);
    427         *_ephStreamGlonass << _pgmName.toAscii().data() 
    428                            << _userName.toAscii().data() 
    429                            << hlp.toAscii().data() 
     427        *_ephStreamGlonass << _pgmName.toAscii().data()
     428                           << _userName.toAscii().data()
     429                           << hlp.toAscii().data()
    430430                           << "PGM / RUN BY / DATE" << endl;
    431431
     
    538538}
    539539
    540 // 
     540//
    541541////////////////////////////////////////////////////////////////////////////
    542542void t_bncCore::slotQuit() {
     
    545545}
    546546
    547 // 
     547//
    548548////////////////////////////////////////////////////////////////////////////
    549549void t_bncCore::slotNewOrbCorrections(QList<t_orbCorr> orbCorrections) {
     
    552552  if (_socketsCorr) {
    553553    ostringstream out;
    554     t_orbCorr::writeEpoch(&out, orbCorrections);   
     554    t_orbCorr::writeEpoch(&out, orbCorrections);
    555555    QMutableListIterator<QTcpSocket*> is(*_socketsCorr);
    556556    while (is.hasNext()) {
     
    570570}
    571571
    572 // 
     572//
    573573////////////////////////////////////////////////////////////////////////////
    574574void t_bncCore::slotNewClkCorrections(QList<t_clkCorr> clkCorrections) {
     
    577577  if (_socketsCorr) {
    578578    ostringstream out;
    579     t_clkCorr::writeEpoch(&out, clkCorrections);   
     579    t_clkCorr::writeEpoch(&out, clkCorrections);
    580580    QMutableListIterator<QTcpSocket*> is(*_socketsCorr);
    581581    while (is.hasNext()) {
     
    595595}
    596596
    597 // 
     597//
    598598////////////////////////////////////////////////////////////////////////////
    599599void t_bncCore::slotNewCodeBiases(QList<t_satCodeBias> codeBiases) {
     
    602602  if (_socketsCorr) {
    603603    ostringstream out;
    604     t_satCodeBias::writeEpoch(&out, codeBiases);   
     604    t_satCodeBias::writeEpoch(&out, codeBiases);
    605605    QMutableListIterator<QTcpSocket*> is(*_socketsCorr);
    606606    while (is.hasNext()) {
     
    620620}
    621621
    622 // 
     622//
    623623////////////////////////////////////////////////////////////////////////////
    624624void t_bncCore::slotNewPhaseBiases(QList<t_satPhaseBias> phaseBiases) {
     
    627627  if (_socketsCorr) {
    628628    ostringstream out;
    629     t_satPhaseBias::writeEpoch(&out, phaseBiases);   
     629    t_satPhaseBias::writeEpoch(&out, phaseBiases);
    630630    QMutableListIterator<QTcpSocket*> is(*_socketsCorr);
    631631    while (is.hasNext()) {
     
    645645}
    646646
    647 // 
     647//
    648648////////////////////////////////////////////////////////////////////////////
    649649void t_bncCore::slotNewTec(t_vTec vTec) {
     
    652652  if (_socketsCorr) {
    653653    ostringstream out;
    654     t_vTec::write(&out, vTec);   
     654    t_vTec::write(&out, vTec);
    655655    QMutableListIterator<QTcpSocket*> is(*_socketsCorr);
    656656    while (is.hasNext()) {
     
    670670}
    671671
    672 // 
     672//
    673673////////////////////////////////////////////////////////////////////////////
    674674void t_bncCore::setConfFileName(const QString& confFileName) {
    675675  if (confFileName.isEmpty()) {
    676     _confFileName = QDir::homePath() + QDir::separator() 
     676    _confFileName = QDir::homePath() + QDir::separator()
    677677                  + ".config" + QDir::separator()
    678678                  + qApp->organizationName() + QDir::separator()
     
    704704}
    705705
    706 // 
     706//
    707707////////////////////////////////////////////////////////////////////////////
    708708void t_bncCore::initCombination() {
     
    716716}
    717717
    718 // 
     718//
    719719////////////////////////////////////////////////////////////////////////////
    720720void t_bncCore::stopCombination() {
Note: See TracChangeset for help on using the changeset viewer.