Changeset 256 in ntrip


Ignore:
Timestamp:
Oct 18, 2006, 3:56:17 PM (18 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNC
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bnccaster.cpp

    r252 r256  
    8585// New Observations
    8686////////////////////////////////////////////////////////////////////////////
    87 void bncCaster::newObs(const QByteArray& staID, Observation* obs) {
     87void bncCaster::newObs(const QByteArray& staID, const QUrl& mountPoint,
     88                       Observation* obs) {
    8889
    8990  QMutexLocker locker(&_mutex);
     
    99100  // --------------------
    100101  if (_rinexWriters.find(obs->StatID) == _rinexWriters.end()) {
    101     _rinexWriters.insert(obs->StatID, new bncRinex(obs->StatID));
     102    _rinexWriters.insert(obs->StatID, new bncRinex(obs->StatID, mountPoint));
    102103  }
    103104  bncRinex* rnx = _rinexWriters.find(obs->StatID).value();
  • trunk/BNC/bnccaster.h

    r243 r256  
    2020   void addGetThread(bncGetThread* getThread);
    2121   int  numStations() const {return _staIDs.size();}
    22    void newObs(const QByteArray& staID, Observation* obs);
    23 
     22   void newObs(const QByteArray& staID, const QUrl& mountPoint,
     23               Observation* obs);
    2424
    2525 signals:
  • trunk/BNC/bncgetthread.cpp

    r255 r256  
    257257             it != _decoder->_obsList.end(); it++) {
    258258          emit newObs(_staID, *it);
    259           _global_caster->newObs(_staID, *it);
     259          _global_caster->newObs(_staID, _mountPoint, *it);
    260260        }
    261261        _decoder->_obsList.clear();
  • trunk/BNC/bncrinex.cpp

    r255 r256  
    3535// Constructor
    3636////////////////////////////////////////////////////////////////////////////
    37 bncRinex::bncRinex(const char* StatID) {
     37bncRinex::bncRinex(const char* StatID, const QUrl& mountPoint) {
    3838  _statID        = StatID;
     39  _mountPoint = mountPoint;
    3940  _headerWritten = false;
    4041  readSkeleton();
     
    4344  _rnxScriptName = settings.value("rnxScript").toString();
    4445  expandEnvVar(_rnxScriptName);
    45 
    46   // Find the corresponding mountPoint
    47   // ---------------------------------
    48   QListIterator<QString> it(settings.value("mountPoints").toStringList());
    49   while (it.hasNext()) {
    50     QString hlp = it.next();
    51     if (hlp.indexOf(_statID) != -1) {
    52       QUrl url(hlp);
    53       _mountPoint = url.host() + url.path();
    54       break;
    55     }
    56   }
    5746
    5847  _pgmName  = ((bncApp*)qApp)->bncVersion().leftJustified(20, ' ', true);
     
    215204                                "    hh    mm   ss.zzz0000").toAscii().data();
    216205        _out << "                 TIME OF FIRST OBS"    << endl;
    217         QString hlp = QString("STREAM %1").arg(_mountPoint)
     206        QString hlp = QString("STREAM %1").arg(_mountPoint.host() + _mountPoint.path())
    218207                             .leftJustified(60, ' ', true);
    219208        _out << hlp.toAscii().data() << "COMMENT" << endl;
     
    258247                                "    hh    mm   ss.zzz0000").toAscii().data();
    259248    _out << "                 "                                      << "TIME OF FIRST OBS"    << endl;
    260     hlp = QString("STREAM %1").arg(_mountPoint)
     249    hlp = QString("STREAM %1").arg(_mountPoint.host() + _mountPoint.path())
    261250                                             .leftJustified(60, ' ', true);
    262251    _out << hlp.toAscii().data() << "COMMENT" << endl;
  • trunk/BNC/bncrinex.h

    r222 r256  
    1414class bncRinex {
    1515 public:
    16    bncRinex(const char* StatID);
     16   bncRinex(const char* StatID, const QUrl& mountPoint);
    1717   ~bncRinex();
    1818   void deepCopy(const Observation* obs);
     
    3434   QString             _rnxScriptName;
    3535   QProcess            _rnxScript;
    36    QString             _mountPoint;
     36   QUrl                _mountPoint;
    3737   QString             _pgmName;
    3838   QString             _userName;
Note: See TracChangeset for help on using the changeset viewer.