Changeset 6331 in ntrip for trunk/BNC/src/bncsp3.h


Ignore:
Timestamp:
Nov 24, 2014, 4:38:47 PM (9 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/bncsp3.h

    r4991 r6331  
    88#include "bncoutf.h"
    99#include "bnctime.h"
     10#include "t_prn.h"
    1011
    1112class bncSP3 : public bncoutf {
    1213 public:
    13   bncSP3(const QString& sklFileName, const QString& intr, int sampl);
     14
     15  class t_sp3Sat {
     16   public:
     17    t_sp3Sat() {
     18      _xyz.ReSize(3);
     19      _xyz = 0.0;
     20      _clk = 0.0;
     21    }
     22    ~t_sp3Sat() {}
     23    t_prn        _prn;
     24    ColumnVector _xyz;
     25    double       _clk;
     26  };
     27
     28  class t_sp3Epoch {
     29   public:
     30    t_sp3Epoch() {}
     31    ~t_sp3Epoch() {
     32      for (int ii = 0; ii < _sp3Sat.size(); ii++) {
     33        delete _sp3Sat[ii];
     34      }
     35    }
     36    bncTime            _tt;
     37    QVector<t_sp3Sat*> _sp3Sat;
     38  };
     39
     40  bncSP3(const QString& fileName); // input
     41  bncSP3(const QString& sklFileName, const QString& intr, int sampl); // output
    1442  virtual ~bncSP3();
    1543  t_irc write(int GPSweek, double GPSweeks, const QString& prn,
     
    1745
    1846 private:
     47  enum e_inpOut {input, output};
     48
    1949  virtual void writeHeader(const QDateTime& datTim);
    2050  virtual void closeFile();
    21   bncTime _lastEpoTime;
     51  const t_sp3Epoch* nextEpoch();
     52  const t_sp3Epoch* currEpoch() const {return _currEpoch;}
     53  const t_sp3Epoch* prevEpoch() const {return _prevEpoch;}
     54
     55  e_inpOut      _inpOut;
     56  bncTime       _lastEpoTime;
     57  std::ifstream _stream;
     58  std::string   _lastLine;
     59  t_sp3Epoch*   _currEpoch;
     60  t_sp3Epoch*   _prevEpoch;
    2261};
    2362
Note: See TracChangeset for help on using the changeset viewer.