Changeset 622 in ntrip for trunk/BNC/RTCM/GPSDecoder.h


Ignore:
Timestamp:
Dec 16, 2007, 4:27:13 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM/GPSDecoder.h

    r621 r622  
    2929#include <QList>
    3030
    31 class Observation : public QObject{
    32   public:
    33   Observation() {
    34     flags     = 0;
    35     StatID[0] = '\0';
    36     satSys    = 'G';
    37     satNum    = 0;
    38     slot      = 0;
    39     GPSWeek   = 0;
    40     GPSWeeks  = 0.0;
    41     C1        = 0.0;
    42     C2        = 0.0;
    43     P1        = 0.0;
    44     P2        = 0.0;
    45     L1        = 0.0;
    46     L2        = 0.0;
    47     S1        = 0.0;
    48     S2        = 0.0;
    49     SNR1      = 0;
    50     SNR2      = 0;
    51   }
     31class t_obsInternal {
     32 public:
    5233  int    flags;
    5334  char   StatID[20+1];// Station ID
     
    6950};
    7051
    71 typedef QPointer<Observation> p_obs;
     52class t_obs : public QObject{
     53 public:
     54
     55  t_obs() {
     56    _o.flags     = 0;
     57    _o.StatID[0] = '\0';
     58    _o.satSys    = 'G';
     59    _o.satNum    = 0;
     60    _o.slot      = 0;
     61    _o.GPSWeek   = 0;
     62    _o.GPSWeeks  = 0.0;
     63    _o.C1        = 0.0;
     64    _o.C2        = 0.0;
     65    _o.P1        = 0.0;
     66    _o.P2        = 0.0;
     67    _o.L1        = 0.0;
     68    _o.L2        = 0.0;
     69    _o.S1        = 0.0;
     70    _o.S2        = 0.0;
     71    _o.SNR1      = 0;
     72    _o.SNR2      = 0;
     73  }
     74
     75  t_obsInternal _o;
     76};
     77
     78typedef QPointer<t_obs> p_obs;
    7279
    7380class GPSDecoder {
    74   public:
    75     virtual void Decode(char* buffer, int bufLen) = 0;
    76     virtual ~GPSDecoder() {}
    77     QList<p_obs> _obsList;
     81 public:
     82  virtual void Decode(char* buffer, int bufLen) = 0;
     83
     84  virtual ~GPSDecoder() {
     85    QListIterator<p_obs> it(_obsList);
     86    while (it.hasNext()) {
     87      delete it.next();
     88    }
     89  }
     90
     91  QList<p_obs> _obsList;
    7892};
    7993
Note: See TracChangeset for help on using the changeset viewer.