Changeset 981 in ntrip


Ignore:
Timestamp:
Jul 26, 2008, 2:47:36 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r980 r981  
    397397      }
    398398   
    399       if ( _outSocket &&
     399      if ( (_outSocket || _outFile) &&
    400400           (co.NumberOfGPSSat > 0 || co.NumberOfGLONASSSat > 0) ) {
    401401        char obuffer[CLOCKORBIT_BUFFERSIZE];
    402402        int len = MakeClockOrbit(&co, COTYPE_AUTO, 0, obuffer, sizeof(obuffer));
    403403        if (len > 0) {
    404           _outSocket->write(obuffer, len);
    405           _outSocket->flush();
     404          if (_outSocket) {
     405            _outSocket->write(obuffer, len);
     406            _outSocket->flush();
     407          }
     408          if (_outFile) {
     409            _outFile->write(obuffer, len);
     410            _outFile->flush();
     411          }
    406412        }
    407413      }
  • trunk/BNS/bnswindow.cpp

    r978 r981  
    142142  _clkPortLineEdit  = new QLineEdit(settings.value("clkPort").toString());
    143143  _clkPortLineEdit->setWhatsThis(tr("BNS reads Clocks & Orbits referring to the IGS system (X,Y,Z, ECEF) in plain ASCII format from an IP address. Specify the IP port e.g. of a RTNet installation providing this information."));
    144   _clkFileLineEdit    = new QLineEdit(settings.value("clkFile").toString());
    145   _clkFileLineEdit->setWhatsThis(tr("Specify the full path to a file where incoming IGS Clocks & Orbits are saved. Beware that the size of this file can rapidly increase. Default is an empty option field meaning that incoming Clocks & Orbits corrections are not saved."));
    146144  _clkPortLineEdit->setMaximumWidth(9*ww);
    147145
     
    259257  layout_inp->addWidget(new QLabel("Server listening on Port"), 1, 1, 1, 3, Qt::AlignRight);
    260258  layout_inp->addWidget(_clkPortLineEdit,              1, 4);
    261   layout_inp->addWidget(new QLabel("Save Clocks & Orbits"), 2, 0, Qt::AlignLeft);
    262   layout_inp->addWidget(new QLabel("(full path)"), 2, 1, Qt::AlignRight);
    263   layout_inp->addWidget(_clkFileLineEdit,         2, 2);
    264   layout_inp->addWidget(new QLabel("Read broadcast ephemeris and IGS clocks and orbits."), 3, 0, 1, 6, Qt::AlignLeft);
    265   layout_inp->addWidget(new QLabel(""),                4, 0);
     259  layout_inp->addWidget(new QLabel("Read broadcast ephemeris and IGS clocks and orbits."), 2, 0, 1, 6, Qt::AlignLeft);
     260  layout_inp->addWidget(new QLabel(""),                3, 0);
    266261
    267262  tab_inp->setLayout(layout_inp);
     
    439434  settings.setValue("ephPort",    _ephPortLineEdit->text());
    440435  settings.setValue("clkPort",    _clkPortLineEdit->text());
    441   settings.setValue("clkFile",    _clkFileLineEdit->text());
    442436  settings.setValue("outHost",    _outHostLineEdit->text());
    443437  settings.setValue("outPort",    _outPortLineEdit->text());
  • trunk/BNS/bnswindow.h

    r978 r981  
    6161  QLineEdit* _ephPortLineEdit;
    6262  QLineEdit* _clkPortLineEdit;
    63   QLineEdit* _clkFileLineEdit;
    6463  QLineEdit* _logFileLineEdit;
    6564  QLineEdit* _outHostLineEdit;
Note: See TracChangeset for help on using the changeset viewer.