Changeset 5734 in ntrip


Ignore:
Timestamp:
Jul 31, 2014, 4:49:34 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src/PPP
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppClient.cpp

    r5733 r5734  
    66#include <stdexcept>
    77
    8 #include "pppMain.h"
     8#include "pppClient.h"
    99#include "ephpool.h"
    1010#include "obspool.h"
     
    2222// Global Variable
    2323//////////////////////////////////////////////////////////////////////////////
    24 t_pppMain* pppMain = 0;
     24t_pppClient* pppClient = 0;
    2525
    2626// Constructor
    2727//////////////////////////////////////////////////////////////////////////////
    28 t_pppMain::t_pppMain() {
     28t_pppClient::t_pppClient() {
    2929  _opt      = 0;
    3030  _output   = 0;
     
    4040// Destructor
    4141//////////////////////////////////////////////////////////////////////////////
    42 t_pppMain::~t_pppMain() {
     42t_pppClient::~t_pppClient() {
    4343  delete _log;
    4444  delete _opt;
     
    5454//
    5555//////////////////////////////////////////////////////////////////////////////
    56 void t_pppMain::setOptions(const t_pppOpt* opt) {
     56void t_pppClient::setOptions(const t_pppOpt* opt) {
    5757  delete _opt;
    5858  _opt = new t_options(opt);
     
    6868//
    6969//////////////////////////////////////////////////////////////////////////////
    70 void t_pppMain::putGPSEphemeris(const t_ephGPS* eph) {
     70void t_pppClient::putGPSEphemeris(const t_ephGPS* eph) {
    7171  _ephPool->putEphemeris(new t_ephGPS(*eph));
    7272}
     
    7474//
    7575//////////////////////////////////////////////////////////////////////////////
    76 void t_pppMain::putGloEphemeris(const t_ephGlo* eph) {
     76void t_pppClient::putGloEphemeris(const t_ephGlo* eph) {
    7777  _ephPool->putEphemeris(new t_ephGlo(*eph));
    7878}
     
    8080//
    8181//////////////////////////////////////////////////////////////////////////////
    82 void t_pppMain::putOrbCorrections(int numCorr, const t_pppOrbCorr* corr) {
     82void t_pppClient::putOrbCorrections(int numCorr, const t_pppOrbCorr* corr) {
    8383  for (int ii = 0; ii < numCorr; ii++) {
    8484    _ephPool->putOrbCorrection(new t_orbCorr(corr[ii]));
     
    8888//
    8989//////////////////////////////////////////////////////////////////////////////
    90 void t_pppMain::putClkCorrections(int numCorr, const t_pppClkCorr* corr) {
     90void t_pppClient::putClkCorrections(int numCorr, const t_pppClkCorr* corr) {
    9191  for (int ii = 0; ii < numCorr; ii++) {
    9292    _ephPool->putClkCorrection(new t_clkCorr(corr[ii]));
     
    9696//
    9797//////////////////////////////////////////////////////////////////////////////
    98 void t_pppMain::putBiases(int numBiases, const t_pppSatBiases* biases) {
     98void t_pppClient::putBiases(int numBiases, const t_pppSatBiases* biases) {
    9999  for (int ii = 0; ii < numBiases; ii++) {
    100100    _obsPool->putBiases(new t_satBias(biases[ii]));
     
    104104//
    105105//////////////////////////////////////////////////////////////////////////////
    106 t_irc::irc t_pppMain::prepareObs(int numSat, const t_pppSatObs* satObs,
     106t_irc::irc t_pppClient::prepareObs(int numSat, const t_pppSatObs* satObs,
    107107                                 vector<t_satObs*>& obsVector, t_time& epoTime) {
    108108  // Default
     
    141141      double dt = satObs->time() - epoTime;
    142142      if (fabs(dt) > MAXSYNC) {
    143         LOG << "t_pppMain::prepareObs asynchronous observations" << endl;
     143        LOG << "t_pppClient::prepareObs asynchronous observations" << endl;
    144144        return t_irc::failure;
    145145      }
     
    154154// Compute the Bancroft position, check for blunders
    155155//////////////////////////////////////////////////////////////////////////////
    156 t_irc::irc t_pppMain::cmpBancroft(const t_time& epoTime,
     156t_irc::irc t_pppClient::cmpBancroft(const t_time& epoTime,
    157157                                  vector<t_satObs*>& obsVector,
    158158                                  ColumnVector& xyzc, bool print) {
     
    175175    }
    176176    if (iObs + 1 < OPT->minobs()) {
    177       LOG << "t_pppMain::cmpBancroft not enough observations" << endl;
     177      LOG << "t_pppClient::cmpBancroft not enough observations" << endl;
    178178      return t_irc::failure;
    179179    }
     
    214214    else {
    215215      t_satObs* satObs = obsVector.at(maxResIndex);
    216       LOG << "t_pppMain::cmpBancroft outlier " << satObs->prn().toString()
     216      LOG << "t_pppClient::cmpBancroft outlier " << satObs->prn().toString()
    217217          << " " << maxRes << endl;
    218218      delete satObs;
     
    226226// Compute A Priori GPS-Glonass Offset
    227227//////////////////////////////////////////////////////////////////////////////
    228 double t_pppMain::cmpOffGG(vector<t_satObs*>& obsVector) {
     228double t_pppClient::cmpOffGG(vector<t_satObs*>& obsVector) {
    229229
    230230  t_lc::type tLC   = (OPT->dualFreqRequired() ? t_lc::cIF : t_lc::c1);
     
    245245            satObs->setOutlier();
    246246            outlierFound = true;
    247            LOG << "t_pppMain::cmpOffGG outlier " << satObs->prn().toString()
     247           LOG << "t_pppClient::cmpOffGG outlier " << satObs->prn().toString()
    248248               << " " << ll << endl;
    249249          }
     
    268268//
    269269//////////////////////////////////////////////////////////////////////////////
    270 void t_pppMain::initOutput(t_pppOutput* output) {
     270void t_pppClient::initOutput(t_pppOutput* output) {
    271271  _output = output;
    272272  _output->_epoTime._mjd = 0;
     
    281281//
    282282//////////////////////////////////////////////////////////////////////////////
    283 void t_pppMain::clearObs() {
     283void t_pppClient::clearObs() {
    284284  for (unsigned ii = 0; ii < _obsRover.size(); ii++) {
    285285    delete _obsRover.at(ii);
     
    294294//
    295295//////////////////////////////////////////////////////////////////////////////
    296 void t_pppMain::finish(t_irc::irc irc) {
     296void t_pppClient::finish(t_irc::irc irc) {
    297297
    298298  clearObs();
     
    322322//
    323323//////////////////////////////////////////////////////////////////////////////
    324 t_irc::irc t_pppMain::cmpModel(t_station* station, const ColumnVector& xyzc,
     324t_irc::irc t_pppClient::cmpModel(t_station* station, const ColumnVector& xyzc,
    325325                               vector<t_satObs*>& obsVector) {
    326326
     
    378378//
    379379//////////////////////////////////////////////////////////////////////////////
    380 t_irc::irc t_pppMain::createDifferences() {
     380t_irc::irc t_pppClient::createDifferences() {
    381381
    382382  vector<t_satObs*>::iterator it = _obsRover.begin();
     
    405405//
    406406//////////////////////////////////////////////////////////////////////////////
    407 void t_pppMain::processEpoch(int numSatRover, const t_pppSatObs* satObsRover,
     407void t_pppClient::processEpoch(int numSatRover, const t_pppSatObs* satObsRover,
    408408                             t_pppOutput* output) {
    409409
  • trunk/BNC/src/PPP/pppClient.h

    r5733 r5734  
    1 #ifndef PPPMAIN_H
    2 #define PPPMAIN_H
     1#ifndef PPPCLIENT_H
     2#define PPPCLIENT_H
    33
    44#include <sstream>
     
    1515class t_filter;
    1616
    17 class t_pppMain {
     17class t_pppClient {
    1818 public:
    19   t_pppMain();                                                     
    20   ~t_pppMain();                                                     
     19  t_pppClient();                                                     
     20  ~t_pppClient();                                                     
    2121  void setOptions(const t_pppOpt* opt);                         
    2222  void putGPSEphemeris(const t_ephGPS* eph);                 
     
    6868
    6969/// Pointer to the main object
    70 extern BNC::t_pppMain* pppMain;
     70extern BNC::t_pppClient* pppClient;
    7171
    7272/// Log stream abbreviation
    73 #define LOG (*pppMain->_log)
     73#define LOG (*pppClient->_log)
    7474
    7575/// Options abbreviation
    76 #define OPT (pppMain->_opt)
     76#define OPT (pppClient->_opt)
    7777
    7878#endif
Note: See TracChangeset for help on using the changeset viewer.