Changeset 4480 in ntrip for trunk/BNC/src/rinex/rnxobsfile.h


Ignore:
Timestamp:
Aug 3, 2012, 7:16:51 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/rinex/rnxobsfile.h

    r4137 r4480  
    3737
    3838#define MAXPRN_GPS 32
     39
     40class t_rnxObsHeader {
     41 public:
     42  t_rnxObsHeader();
     43  ~t_rnxObsHeader();
     44
     45  t_irc           read(QTextStream* stream, int maxLines = 0);
     46  int             nTypes(char sys) const;
     47  const QString&  obsType(char sys, int index) const;
     48
     49  static const QString          _emptyStr;
     50  float                         _version;
     51  double                        _interval;
     52  QString                       _antennaNumber;
     53  QString                       _antennaName;
     54  QString                       _markerName;
     55  QString                       _markerNumber;
     56  QString                       _observer;
     57  QString                       _agency;
     58  QString                       _receiverNumber;
     59  QString                       _receiverType;
     60  QString                       _receiverVersion;
     61  ColumnVector                  _antNEU;
     62  ColumnVector                  _antXYZ;
     63  ColumnVector                  _antBSG;
     64  ColumnVector                  _xyz;
     65  QVector<QString>              _obsTypesV2;
     66  QMap<char, QVector<QString> > _obsTypesV3;
     67  int                           _wlFactorsL1[MAXPRN_GPS+1];
     68  int                           _wlFactorsL2[MAXPRN_GPS+1];
     69  bncTime                       _startTime;
     70};
    3971
    4072class t_rnxObsFile {
     
    99131  }
    100132
    101  protected:
    102   t_rnxObsFile() {};
    103   void openRead(const QString& fileName);
    104   void openWrite(const QString& fileName);
    105   void close();
    106 
    107  private:
    108   class t_rnxObsHeader {
    109    public:
    110     t_rnxObsHeader();
    111     ~t_rnxObsHeader();
    112 
    113     t_irc           read(QTextStream* stream, int maxLines = 0);
    114     int             nTypes(char sys) const;
    115     const QString&  obsType(char sys, int index) const;
    116  
    117     static const QString          _emptyStr;
    118     float                         _version;
    119     double                        _interval;
    120     QString                       _antennaNumber;
    121     QString                       _antennaName;
    122     QString                       _markerName;
    123     QString                       _markerNumber;
    124     QString                       _observer;
    125     QString                       _agency;
    126     QString                       _receiverNumber;
    127     QString                       _receiverType;
    128     QString                       _receiverVersion;
    129     ColumnVector                  _antNEU;
    130     ColumnVector                  _antXYZ;
    131     ColumnVector                  _antBSG;
    132     ColumnVector                  _xyz;
    133     QVector<QString>              _obsTypesV2;
    134     QMap<char, QVector<QString> > _obsTypesV3;
    135     int                           _wlFactorsL1[MAXPRN_GPS+1];
    136     int                           _wlFactorsL2[MAXPRN_GPS+1];
    137     bncTime                       _startTime;
    138   };
    139 
    140  public:
    141133  const t_rnxObsHeader& header() const {return _header;}
    142134  void setHeader(const t_rnxObsHeader& header, double version);
     
    149141  enum e_trafo {trafoNone, trafo2to3, trafo3to2};
    150142
     143  t_rnxObsFile() {};
     144  void openRead(const QString& fileName);
     145  void openWrite(const QString& fileName);
     146  void close();
    151147  void writeEpochV2(const t_rnxEpo* epo);
    152148  void writeEpochV3(const t_rnxEpo* epo);
Note: See TracChangeset for help on using the changeset viewer.