Changeset 2387 in ntrip for trunk/BNC/RTCM3/RTCM3Decoder.cpp


Ignore:
Timestamp:
Mar 26, 2010, 11:55:55 AM (14 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM3/RTCM3Decoder.cpp

    r2386 r2387  
    6565// Constructor
    6666////////////////////////////////////////////////////////////////////////////
    67 RTCM3Decoder::RTCM3Decoder(const QString& staID) : GPSDecoder() {
     67RTCM3Decoder::RTCM3Decoder(const QString& staID, bool inputFromFile) :
     68                GPSDecoder() {
     69
     70  _staID           = staID;
     71  _inputFromFile   = inputFromFile;
    6872
    6973  bncSettings settings;
    7074  _checkMountPoint = settings.value("miscMount").toString();
    71   _staID = staID;
    7275
    7376  // Ensure, that the Decoder uses the "old" convention for the data structure for Rinex2. Perlt
     
    118121    if ( _coDecoder->Decode(buffer, bufLen, errmsg) == success ) {
    119122      decoded = true;
    120       if (_mode == unknown) {
    121         /////        _mode = corrections;
     123      if (!_inputFromFile && _mode == unknown) {
     124        _mode = corrections;
    122125      }
    123126    }
     
    340343      }
    341344    }
    342     if (_mode == unknown && decoded) {
    343       ////      _mode = observations;
     345    if (!_inputFromFile && _mode == unknown && decoded) {
     346      _mode = observations;
    344347    }
    345348  }
Note: See TracChangeset for help on using the changeset viewer.