Changeset 6100 in ntrip for trunk/BNC/src/PPP_free/pppClient.h


Ignore:
Timestamp:
Sep 8, 2014, 9:02:33 AM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP_free/pppClient.h

    r6099 r6100  
    3131#include "pppInclude.h"
    3232#include "pppOptions.h"
     33#include "pppFilter.h"
    3334
    3435class bncEphUser;
     
    3738namespace BNC_PPP {
    3839 
    39 class t_pppFilter;
    40 
    41 class t_satData {
    42  public:
    43   t_satData() {
    44     obsIndex = 0;
    45     P1 = 0.0;
    46     P2 = 0.0;
    47     P5 = 0.0;
    48     P3 = 0.0;
    49     L1 = 0.0;
    50     L2 = 0.0;
    51     L5 = 0.0;
    52     L3 = 0.0;
    53   }
    54   ~t_satData() {}
    55   bncTime      tt;
    56   QString      prn;
    57   double       P1;
    58   double       P2;
    59   double       P5;
    60   double       P3;
    61   double       L1;
    62   double       L2;
    63   double       L5;
    64   double       L3;
    65   ColumnVector xx;
    66   ColumnVector vv;
    67   double       clk;
    68   double       eleSat;
    69   double       azSat;
    70   double       rho;
    71   bool         slipFlag;
    72   double       lambda3;
    73   unsigned     obsIndex;
    74   char system() const {return prn.toAscii()[0];}
    75 };
    76 
    77 class t_epoData {
    78  public:
    79   t_epoData() {}
    80 
    81   ~t_epoData() {
    82     clear();
    83   }
    84 
    85   void clear() {
    86     QMapIterator<QString, t_satData*> it(satData);
    87     while (it.hasNext()) {
    88       it.next();
    89       delete it.value();
    90     }
    91     satData.clear();
    92     tt.reset();
    93   }
    94 
    95   void deepCopy(const t_epoData* from) {
    96     clear();
    97     tt = from->tt;
    98     QMapIterator<QString, t_satData*> it(from->satData);
    99     while (it.hasNext()) {
    100       it.next();
    101       satData[it.key()] = new t_satData(*it.value());
    102     }
    103   }
    104 
    105   unsigned sizeSys(char system) const {
    106     unsigned ans = 0;
    107     QMapIterator<QString, t_satData*> it(satData);
    108     while (it.hasNext()) {
    109       it.next();
    110       if (it.value()->system() == system) {
    111         ++ans;
    112       }
    113     }
    114     return ans;
    115   }
    116   unsigned sizeAll() const {return satData.size();}
    117 
    118   bncTime                   tt;
    119   QMap<QString, t_satData*> satData;
    120 };
    121 
    12240class t_pppClient {
    12341 public:
     
    12947  void                putClkCorrections(const std::vector<t_clkCorr*>& corr);
    13048  void                putBiases(const std::vector<t_satBias*>& satBias);   
    131   QByteArray          staID() const {return _staID;}
     49  std::ostringstream& log() {return *_log;}
    13250  const t_pppOptions* opt() const {return _opt;}
    133   static t_pppClient* instance();
    134   std::ostringstream& log() {return *_log;}
    13551
    13652 private:
     
    14157  bncEphUser*         _ephUser;
    14258  t_pppOptions*       _opt;
    143   QByteArray          _staID;
    14459  t_epoData*          _epoData;
    14560  t_pppFilter*        _filter;
     
    14762};
    14863
    149 }
    150 
    151 #define LOG (BNC_PPP::t_pppClient::instance()->log())
     64} // namespace
    15265
    15366#endif
Note: See TracChangeset for help on using the changeset viewer.