Changeset 3845 in ntrip


Ignore:
Timestamp:
Apr 12, 2012, 2:18:21 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/rinex
Files:
2 edited

Legend:

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

    r3844 r3845  
    228228  }
    229229  else {
    230   }
    231 }
    232 
    233 // Open
     230    openWrite(fileName);
     231  }
     232}
     233
     234// Open for input
    234235////////////////////////////////////////////////////////////////////////////
    235236void t_rnxObsFile::openRead(const QString& fileName) {
     
    275276    _header.read(_stream);
    276277  }
     278}
     279
     280// Open for output
     281////////////////////////////////////////////////////////////////////////////
     282void t_rnxObsFile::openWrite(const QString& fileName) {
     283
     284  _fileName = fileName; expandEnvVar(_fileName);
     285  _file     = new QFile(_fileName);
     286  _file->open(QIODevice::WriteOnly | QIODevice::Text);
     287  _stream = new QTextStream();
     288  _stream->setDevice(_file);
    277289}
    278290
     
    530542  }
    531543}
     544
     545// Write Header
     546////////////////////////////////////////////////////////////////////////////
     547void t_rnxObsFile::writeHeader() {
     548
     549}
     550
     551// Write Data Epoch
     552////////////////////////////////////////////////////////////////////////////
     553void t_rnxObsFile::writeEpoch(const t_rnxEpo* epo) {
     554
     555}
  • trunk/BNC/rinex/rnxobsfile.h

    r3844 r3845  
    9191  t_rnxObsFile() {};
    9292  void openRead(const QString& fileName);
     93  void openWrite(const QString& fileName);
    9394  void close();
    9495
     
    122123  const t_rnxObsHeader& header() const {return _header;}
    123124  void setHeader(const t_rnxObsHeader& header);
     125  void writeHeader();
     126  void writeEpoch(const t_rnxEpo* epo);
    124127
    125128 private:
Note: See TracChangeset for help on using the changeset viewer.