Changeset 2054 in ntrip


Ignore:
Timestamp:
Nov 29, 2009, 11:39:33 AM (14 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncgetthread.cpp

    r2035 r2054  
    292292    connect(((bncApp*)qApp), SIGNAL(newCorrections(QList<QString>)),
    293293            _PPPclient, SLOT(slotNewCorrections(QList<QString>)));
     294    connect(_PPPclient, SIGNAL(newMessage(QByteArray,bool)),
     295            ((bncApp*)qApp), SLOT(slotMessage(const QByteArray,bool)));
    294296  }
    295297
  • trunk/BNC/bncpppclient.cpp

    r2053 r2054  
    4141#include <iomanip>
    4242#include <newmatio.h>
     43#include <sstream>
    4344
    4445#include "bncpppclient.h"
     
    328329  bancroft(BB, pos);
    329330
    330   cout.setf(ios::fixed);
    331 
    332   cout << _epoData->tt.timestr(1) << " " << _epoData->size() << " "
    333        << setw(14) << setprecision(3) << pos(1)              << "  "
    334        << setw(14) << setprecision(3) << pos(2)              << "  "
    335        << setw(14) << setprecision(3) << pos(3)              << endl;
    336 
    337   cout.flush();
    338 }
    339 
     331  ostringstream str;
     332  str.setf(ios::fixed);
     333  str << "PPP "
     334      << _epoData->tt.timestr(1) << " " << _epoData->size() << " "
     335      << setw(14) << setprecision(3) << pos(1)              << "  "
     336      << setw(14) << setprecision(3) << pos(2)              << "  "
     337      << setw(14) << setprecision(3) << pos(3)              << endl;
     338
     339  emit newMessage(QString(str.str().c_str()).toAscii(), true);
     340}
     341
Note: See TracChangeset for help on using the changeset viewer.