Changeset 256 in ntrip for trunk/BNC/bncrinex.cpp


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

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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;
Note: See TracChangeset for help on using the changeset viewer.