Changeset 3843 in ntrip


Ignore:
Timestamp:
Apr 12, 2012, 1:53:38 PM (12 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/rinex
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rinex/bncpostprocess.cpp

    r3782 r3843  
    110110  }
    111111  else {
    112     _rnxObsFile = new t_rnxObsFile(_opt->obsFileName);
     112    _rnxObsFile = new t_rnxObsFile(_opt->obsFileName, t_rnxObsFile::input);
    113113    _rnxNavFile = new t_rnxNavFile(_opt->navFileName);
    114114    _pppClient  = new bncPPPclient("POST", _opt, false);
  • trunk/BNC/rinex/rnxobsfile.cpp

    r3837 r3843  
    220220// Constructor
    221221////////////////////////////////////////////////////////////////////////////
    222 t_rnxObsFile::t_rnxObsFile(const QString& fileName) {
     222t_rnxObsFile::t_rnxObsFile(const QString& fileName, e_inpOut inpOut) {
     223  _inpOut       = inpOut;
    223224  _stream       = 0;
    224225  _flgPowerFail = false;
    225   open(fileName);
     226  if (_inpOut == input) {
     227    openRead(fileName);
     228  }
     229  else {
     230  }
    226231}
    227232
    228233// Open
    229234////////////////////////////////////////////////////////////////////////////
    230 void t_rnxObsFile::open(const QString& fileName) {
     235void t_rnxObsFile::openRead(const QString& fileName) {
    231236
    232237  _fileName = fileName; expandEnvVar(_fileName);
  • trunk/BNC/rinex/rnxobsfile.h

    r3840 r3843  
    6363  };
    6464
    65   t_rnxObsFile(const QString& fileName);
     65  enum e_inpOut {input, output};
     66
     67  t_rnxObsFile(const QString& fileName, e_inpOut inpOut);
    6668  ~t_rnxObsFile();
    6769 
     
    8890 protected:
    8991  t_rnxObsFile() {};
    90   void open(const QString& fileName);
     92  void openRead(const QString& fileName);
    9193  void close();
    9294
     
    121123  void handleEpochFlag(int flag, const QString& line);
    122124
     125  e_inpOut       _inpOut;
    123126  QFile*         _file;
    124127  QString        _fileName;
  • trunk/BNC/rinex/teqcedit.cpp

    r3842 r3843  
    6868  while (it.hasNext()) {
    6969    QString fileName = it.next();
    70     t_rnxObsFile* rnxObsFile = new t_rnxObsFile(fileName);
     70    t_rnxObsFile* rnxObsFile = new t_rnxObsFile(fileName, t_rnxObsFile::input);
    7171    _rnxObsFiles.append(rnxObsFile);
    7272  }
Note: See TracChangeset for help on using the changeset viewer.