Ignore:
Timestamp:
Mar 29, 2011, 5:30:40 PM (13 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/upload/bncrtnetdecoder.cpp

    r3174 r3179  
    4343#include "bncutils.h"
    4444#include "bncsettings.h"
     45#include "bncclockrinex.h"
     46#include "bncsp3.h"
    4547
    4648using namespace std;
     
    5153  bncSettings settings;
    5254  _year = 0;
     55  _append = Qt::CheckState(settings.value("rnxAppend").toInt()) == Qt::Checked;
     56
     57  // RINEX writer
     58  // ------------
     59  if ( settings.value("rnxPath").toString().isEmpty() ) {
     60    _rnx = 0;
     61  }
     62  else {
     63    QString prep  = "BNC";
     64    QString ext   = ".clk";
     65    QString path  = settings.value("rnxPath").toString();
     66    QString intr  = settings.value("rnxIntr").toString();
     67    int     sampl = settings.value("rnxSampl").toInt();
     68    _rnx = new bncClockRinex(prep, ext, path, intr, sampl);
     69  }
     70
     71  // SP3 writer
     72  // ----------
     73  if ( settings.value("sp3Path").toString().isEmpty() ) {
     74    _sp3 = 0;
     75  }
     76  else {
     77    QString prep  = "BNC";
     78    QString ext   = ".sp3";
     79    QString path  = settings.value("sp3Path").toString();
     80    QString intr  = settings.value("sp3Intr").toString();
     81    int     sampl = settings.value("sp3Sampl").toInt();
     82    _sp3 = new bncSP3(prep, ext, path, intr, sampl);
     83  }
    5384}
    5485
     
    5687////////////////////////////////////////////////////////////////////////
    5788bncRtnetDecoder::~bncRtnetDecoder() {
     89  delete _rnx;
     90  delete _sp3;
    5891}
    5992
Note: See TracChangeset for help on using the changeset viewer.