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


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.