Changeset 2887 in ntrip


Ignore:
Timestamp:
Jan 26, 2011, 12:11:11 PM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncantex.cpp

    r2886 r2887  
    5757    it.next();
    5858    delete it.value();
     59  }
     60}
     61
     62//
     63////////////////////////////////////////////////////////////////////////////
     64void bncAntex::print() const {
     65  QMapIterator<QString, t_antMap*> it(_maps);
     66  while (it.hasNext()) {
     67    it.next();
     68    t_antMap* map = it.value();
     69    cout << map->antName.toAscii().data() << endl;
    5970  }
    6071}
  • trunk/BNC/bncantex.h

    r2884 r2887  
    3535  bncAntex();
    3636  ~bncAntex();
    37   t_irc readFile(const QString& fileName);
     37  t_irc readFile(const QString& fileName); 
     38  void print() const;
    3839
    3940 private:
  • trunk/BNC/bncmodel.cpp

    r2883 r2887  
    264264    if (_antex->readFile(antexFileName) != success) {
    265265      emit newMessage("wrong ANTEX file", false);
    266     }
    267     delete _antex;
    268     _antex = 0;
     266      delete _antex;
     267      _antex = 0;
     268    }
     269  }
     270
     271  if (_antex) {
     272    _antex->print();
    269273  }
    270274}
Note: See TracChangeset for help on using the changeset viewer.