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


Ignore:
Timestamp:
Oct 11, 2014, 3:09:24 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r6222 r6225  
    4141
    4242 friend class t_rnxObsFile;
    43  friend class bncRinex;
    4443
    4544 public:
     
    5150  ~t_rnxObsHeader();
    5251
     52  double      version() const {return _version;}
    5353  t_irc       read(QTextStream* stream, int maxLines = 0);
    5454  void        setDefault(const QString& markerName, int version);
     
    5858  int         nTypes(char sys) const;
    5959  QString     obsType(char sys, int index, double version = 0.0) const;
     60  void        write(QTextStream* stream, const QMap<QString, QString>* txtMap = 0) const;
     61  bncTime     startTime() const {return _startTime;}
     62  void        setStartTime(const bncTime& startTime) {_startTime = startTime;}
     63
     64 private:
    6065  QStringList obsTypesStrings() const;
    61   void        write(QTextStream* stream, const QMap<QString, QString>* txtMap = 0) const;
    62 
    63  private:
    64   float                         _version;
     66  double                        _version;
    6567  double                        _interval;
    6668  QString                       _antennaNumber;
     
    120122  ~t_rnxObsFile();
    121123 
    122   float          version() const {return _header._version;}
     124  double         version() const {return _header._version;}
    123125  double         interval() const {return _header._interval;}
    124126  int            numSys() const {return _header.numSys();}
     
    171173  static QString type3to2(char sys, const QString& typeV3);
    172174
     175  static void writeEpoch(QTextStream* stream, const t_rnxObsHeader& header, const t_rnxEpo* epo) {
     176    if (header.version() >= 3.0) {
     177      writeEpochV3(stream, header, epo);
     178    }
     179    else {
     180      writeEpochV2(stream, header, epo);
     181    }
     182  }
     183
     184 private:
    173185  static void writeEpochV2(QTextStream* stream, const t_rnxObsHeader& header, const t_rnxEpo* epo);
    174186  static void writeEpochV3(QTextStream* stream, const t_rnxObsHeader& header, const t_rnxEpo* epo);
    175 
    176  private:
    177187  t_rnxObsFile() {};
    178188  void openRead(const QString& fileName);
    179189  void openWrite(const QString& fileName);
    180190  void close();
    181   void writeEpochV2(const t_rnxEpo* epo);
    182   void writeEpochV3(const t_rnxEpo* epo);
    183191  t_rnxEpo* nextEpochV2();
    184192  t_rnxEpo* nextEpochV3();
Note: See TracChangeset for help on using the changeset viewer.