Changeset 1067 in ntrip for trunk/BNS


Ignore:
Timestamp:
Aug 27, 2008, 12:40:43 PM (16 years ago)
Author:
mervart
Message:

* empty log message *

Location:
trunk/BNS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNS/bns.cpp

    r1066 r1067  
    7373  // Socket and file for outputting the results
    7474  // -------------------------------------------
    75   _caster.push_back(new t_bnscaster(settings.value("mountpoint").toString()));
    76   connect(_caster.back(), SIGNAL(error(const QByteArray)),
    77           this, SLOT(slotError(const QByteArray)));
    78   connect(_caster.back(), SIGNAL(newMessage(const QByteArray)),
    79           this, SLOT(slotMessage(const QByteArray)));
     75  for (int ic = 1; ic <= 2; ic++) {
     76
     77    QString mountpoint  = settings.value("mountpoint_%1").toString().arg(ic);
     78    QString outFileName = settings.value("outFile_%1").toString().arg(ic);
     79    QString refSys      = settings.value("refSys_%1").toString().arg(ic);
     80
     81    _caster.push_back(new t_bnscaster(mountpoint, outFileName, refSys));
     82    connect(_caster.back(), SIGNAL(error(const QByteArray)),
     83            this, SLOT(slotError(const QByteArray)));
     84    connect(_caster.back(), SIGNAL(newMessage(const QByteArray)),
     85            this, SLOT(slotMessage(const QByteArray)));
     86  }
    8087
    8188  // Log File
  • trunk/BNS/bnscaster.cpp

    r1066 r1067  
    2222// Constructor
    2323////////////////////////////////////////////////////////////////////////////
    24 t_bnscaster::t_bnscaster(const QString& mountpoint) {
     24t_bnscaster::t_bnscaster(const QString& mountpoint, const QString& outFileName,
     25                         const QString& refSys) {
     26
    2527  _mountpoint         = mountpoint;
    2628  _outSocket          = 0;
     
    3739  }
    3840
    39   QString outFileName = settings.value("outFile").toString();
    4041  if (outFileName.isEmpty()) {
    4142    _outFile   = 0;
     
    5253  // ---------------
    5354  _crdTrafo = false;
    54   if (settings.value("refSys").toString() == "ETRS89") {
     55  if (refSys == "ETRS89") {
    5556    _crdTrafo = true;
    5657  }
  • trunk/BNS/bnscaster.h

    r1066 r1067  
    77 Q_OBJECT
    88 public:
    9   t_bnscaster(const QString& mountpoint);
     9  t_bnscaster(const QString& mountpoint, const QString& outFileName,
     10              const QString& refSys);
    1011  virtual ~t_bnscaster();
    1112  void open();
Note: See TracChangeset for help on using the changeset viewer.