Changeset 3675 in ntrip for trunk/BNC/rnxobsfile.cpp


Ignore:
Timestamp:
Feb 12, 2012, 10:39:03 AM (12 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/rnxobsfile.cpp

    r3674 r3675  
    130130// Retrieve single Epoch
    131131////////////////////////////////////////////////////////////////////////////
    132 t_irc t_rnxObsFile::getEpoch() {
     132const t_rnxObsFile::t_epo* t_rnxObsFile::nextEpoch() {
    133133  if (version() < 3.0) {
    134     return getEpochV2();
     134    return nextEpochV2();
    135135  }
    136136  else {
    137     return getEpochV3();
     137    return nextEpochV3();
    138138  }
    139139}
     
    141141// Retrieve single Epoch (RINEX Version 3)
    142142////////////////////////////////////////////////////////////////////////////
    143 t_irc t_rnxObsFile::getEpochV3() {
    144   return failure; // TODO
     143const t_rnxObsFile::t_epo* t_rnxObsFile::nextEpochV3() {
     144  return 0; // TODO
    145145}
    146146
    147147// Retrieve single Epoch (RINEX Version 2)
    148148////////////////////////////////////////////////////////////////////////////
    149 t_irc t_rnxObsFile::getEpochV2() {
     149const t_rnxObsFile::t_epo* t_rnxObsFile::nextEpochV2() {
    150150  while (_stream->status() == QTextStream::Ok && !_stream->atEnd()) {
    151151    QString line = _stream->readLine();
     
    174174      }
    175175      QString prn = line.mid(pos, 3);
     176     
    176177      cout << "prn = " << prn.toAscii().data() << endl;
    177178      pos += 3;
     
    179180
    180181    //// beg test
    181     return failure;
     182    return 0;
    182183    //// end test
    183184  }
    184185
    185   return success;
     186  return &_currEpo;
    186187}
Note: See TracChangeset for help on using the changeset viewer.