- Timestamp:
- Aug 31, 2011, 11:48:05 AM (13 years ago)
- Location:
- trunk/BNC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/bncmodel.cpp
r3393 r3394 1185 1185 } 1186 1186 1187 bool findInVector(const std::vector<QString>& vv, const QString& str) {1188 std::vector<QString>::const_iterator it;1189 for (it = vv.begin(); it != vv.end(); ++it) {1190 if ( (*it) == str) {1191 return true;1192 }1193 }1194 return false;1195 }1196 1197 1187 // Update Step (private - loop over outliers) 1198 1188 //////////////////////////////////////////////////////////////////////////// -
trunk/BNC/bncutils.cpp
r3171 r3394 374 374 dateTime.time().msec() / 1000.0) / 60.0) / 60.0) / 24.0; 375 375 } 376 377 // 378 //////////////////////////////////////////////////////////////////////////// 379 bool findInVector(const vector<QString>& vv, const QString& str) { 380 std::vector<QString>::const_iterator it; 381 for (it = vv.begin(); it != vv.end(); ++it) { 382 if ( (*it) == str) { 383 return true; 384 } 385 } 386 return false; 387 } 388 -
trunk/BNC/bncutils.h
r3171 r3394 25 25 #ifndef BNCUTILS_H 26 26 #define BNCUTILS_H 27 28 #include <vector> 27 29 28 30 #include <QString> … … 68 70 void mjdFromDateAndTime(const QDateTime& dateTime, int& mjd, double& dayfrac); 69 71 72 bool findInVector(const std::vector<QString>& vv, const QString& str); 73 70 74 #endif
Note:
See TracChangeset
for help on using the changeset viewer.