Changeset 2113 in ntrip for trunk/BNC/bncpppclient.cpp


Ignore:
Timestamp:
Dec 15, 2009, 10:02:11 AM (14 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncpppclient.cpp

    r2108 r2113  
    3939 * -----------------------------------------------------------------------*/
    4040
    41 #include <iomanip>
    42 #include <newmatio.h>
    43 #include <sstream>
    44 
    4541#include "bncpppclient.h"
     42#include "bncapp.h"
    4643#include "bncutils.h"
    4744#include "bncconst.h"
     
    5754////////////////////////////////////////////////////////////////////////////
    5855bncPPPclient::bncPPPclient(QByteArray staID) {
     56
     57  connect(((bncApp*)qApp), SIGNAL(newEphGPS(gpsephemeris)),
     58          this, SLOT(slotNewEphGPS(gpsephemeris)));
     59  connect(((bncApp*)qApp), SIGNAL(newCorrections(QList<QString>)),
     60          this, SLOT(slotNewCorrections(QList<QString>)));
     61
    5962  _staID   = staID;
    6063  _epoData = 0;
    61   _model   = new bncModel();
     64  _model   = new bncModel(staID);
    6265}
    6366
     
    333336    return;
    334337  }
    335 
    336   ostringstream str;
    337   str.setf(ios::fixed);
    338   str << "    PPP " << _staID.data() << " "
    339       << _epoData->tt.timestr(1) << " " << _epoData->size() << " "
    340       << setw(14) << setprecision(3) << _model->x()   << "  "
    341       << setw(14) << setprecision(3) << _model->y()   << "  "
    342       << setw(14) << setprecision(3) << _model->z()   << "  "
    343       << setw(8)  << setprecision(3) << _model->clk() << "  "
    344       << setw(8)  << setprecision(3) << _model->trp();
    345 
    346   emit newMessage(QString(str.str().c_str()).toAscii(), true);
    347 }
    348 
     338}
     339
Note: See TracChangeset for help on using the changeset viewer.