Changeset 3717 in ntrip for trunk/BNC/rinex/rnxobsfile.h


Ignore:
Timestamp:
Feb 23, 2012, 5:59:52 PM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

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

    r3716 r3717  
    2626#define RNXOBSFILE_H
    2727
     28#include <QString>
     29
    2830#include <fstream>
    29 #include <string>
    3031#include <vector>
    3132#include <map>
     
    5859  };
    5960
    60   t_rnxObsFile(const std::string& fileName);
     61  t_rnxObsFile(const QString& fileName);
    6162  ~t_rnxObsFile();
    6263 
     
    6465  double              interval() const {return _header._interval;}
    6566  int                 nTypes(char sys) const {return _header.nTypes(sys);}
    66   const std::string&  fileName() const {return _fileName;}
    67   const std::string&  obsType(char sys, int index) const {return _header.obsType(sys, index);}
    68   const std::string&  antennaName() const {return _header._antennaName;}
    69   const std::string&  markerName() const {return _header._markerName;}
     67  const QString&      fileName() const {return _fileName;}
     68  const QString&      obsType(char sys, int index) const {return _header.obsType(sys, index);}
     69  const QString&      antennaName() const {return _header._antennaName;}
     70  const QString&      markerName() const {return _header._markerName;}
    7071  const ColumnVector& xyz() const {return _header._xyz;}
    7172  const ColumnVector& antNEU() const {return _header._antNEU;}
     
    8283 protected:
    8384  t_rnxObsFile() {};
    84   void open(const std::string& fileName);
     85  void open(const QString& fileName);
    8586  void close();
    8687
     
    9192    ~t_rnxObsHeader();
    9293
    93     t_irc               read(std::ifstream* stream, int maxLines = 0);
    94     int                 nTypes(char sys) const;
    95     const std::string&  obsType(char sys, int index) const;
     94    t_irc           read(std::ifstream* stream, int maxLines = 0);
     95    int             nTypes(char sys) const;
     96    const QString&  obsType(char sys, int index) const;
    9697 
    97     static const std::string                  _emptyStr;
    98     float                                     _version;
    99     double                                    _interval;
    100     std::string                               _antennaName;
    101     std::string                               _markerName;
    102     ColumnVector                              _antNEU;
    103     ColumnVector                              _antXYZ;
    104     ColumnVector                              _antBSG;
    105     ColumnVector                              _xyz;
    106     std::vector<std::string>                  _obsTypesV2;
    107     std::map<char, std::vector<std::string> > _obsTypesV3;
    108     int                                       _wlFactorsL1[MAXPRN_GPS+1];
    109     int                                       _wlFactorsL2[MAXPRN_GPS+1];
     98    static const QString                  _emptyStr;
     99    float                                 _version;
     100    double                                _interval;
     101    QString                               _antennaName;
     102    QString                               _markerName;
     103    ColumnVector                          _antNEU;
     104    ColumnVector                          _antXYZ;
     105    ColumnVector                          _antBSG;
     106    ColumnVector                          _xyz;
     107    std::vector<QString>                  _obsTypesV2;
     108    std::map<char, std::vector<QString> > _obsTypesV3;
     109    int                                   _wlFactorsL1[MAXPRN_GPS+1];
     110    int                                   _wlFactorsL2[MAXPRN_GPS+1];
    110111  };
    111112
    112113  const t_rnxEpo* nextEpochV2();
    113114  const t_rnxEpo* nextEpochV3();
    114   void handleEpochFlag(int flag, const std::string& line);
     115  void handleEpochFlag(int flag, const QString& line);
    115116
    116   std::string    _fileName;
     117  QString        _fileName;
    117118  t_rnxObsHeader _header;
    118119  std::ifstream* _stream;
Note: See TracChangeset for help on using the changeset viewer.