- Timestamp:
- Jan 27, 2011, 2:31:54 PM (14 years ago)
- Location:
- trunk/BNC/combination
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/combination/bnccomb.cpp
r2906 r2910 19 19 #include "bnccomb.h" 20 20 #include "bncapp.h" 21 #include "bncsettings.h" 21 22 22 23 using namespace std; … … 25 26 //////////////////////////////////////////////////////////////////////////// 26 27 bncComb::bncComb() { 28 29 bncSettings settings; 30 31 QStringList combineStreams = settings.value("combineStreams").toStringList(); 32 33 _nStreams = combineStreams.size(); 34 35 cout << "HAHA " << _nStreams << endl; 36 37 if (_nStreams >= 2) { 38 QListIterator<QString> it(combineStreams); 39 while (it.hasNext()) { 40 QStringList hlp = it.next().split(" "); 41 cout << "combination: " << hlp[0].toAscii().data() << endl; 42 } 43 } 27 44 } 28 45 … … 36 53 void bncComb::processCorrLine(const QString& staID, const QString& line) { 37 54 QMutexLocker locker(&_mutex); 38 39 /// cout << staID.toAscii().data() << " " << line.toAscii().data() << endl; 55 cout << staID.toAscii().data() << " " << line.toAscii().data() << endl; 40 56 } 41 57 -
trunk/BNC/combination/bnccomb.h
r2906 r2910 12 12 ~bncComb(); 13 13 void processCorrLine(const QString& staID, const QString& line); 14 15 public slots: 14 int nStreams() const {return _nStreams;} 16 15 17 16 signals: … … 19 18 20 19 private: 20 int _nStreams; 21 21 }; 22 22
Note:
See TracChangeset
for help on using the changeset viewer.