Changeset 4005 in ntrip


Ignore:
Timestamp:
Apr 22, 2012, 11:53:27 AM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM3/ephemeris.h

    r4002 r4005  
    1212class t_eph {
    1313 public:
     14
     15  enum e_type {unknown, GPS, GLONASS, Galileo};
    1416
    1517  static bool earlierTime(const t_eph* eph1, const t_eph* eph2) {
     
    2830  virtual ~t_eph() {};
    2931
     32  virtual e_type type() const = 0;
     33
    3034  bool     ok() const {return _ok;}
    3135  bool     isNewerThan(const t_eph* eph) const;
     
    7377  t_ephGPS(float rnxVersion, const QStringList& lines);
    7478  virtual ~t_ephGPS() {}
     79
     80  virtual e_type type() const {return t_eph::GPS;}
     81
    7582  double TOC() const {return _TOC;}
    7683
     
    125132
    126133  virtual ~t_ephGlo() {}
     134
     135  virtual e_type type() const {return t_eph::GLONASS;}
    127136
    128137  virtual void position(int GPSweek, double GPSweeks,
     
    168177  t_ephGal(float rnxVersion, const QStringList& lines);
    169178  virtual ~t_ephGal() {}
     179
     180  virtual e_type type() const {return t_eph::Galileo;}
     181
    170182  double TOC() const {return _TOC;}
    171183
Note: See TracChangeset for help on using the changeset viewer.