Changeset 3394 in ntrip for trunk


Ignore:
Timestamp:
Aug 31, 2011, 11:48:05 AM (13 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/bncmodel.cpp

    r3393 r3394  
    11851185}
    11861186 
    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 
    11971187// Update Step (private - loop over outliers)
    11981188////////////////////////////////////////////////////////////////////////////
  • trunk/BNC/bncutils.cpp

    r3171 r3394  
    374374               dateTime.time().msec() / 1000.0) / 60.0) / 60.0) / 24.0;
    375375}
     376
     377//
     378////////////////////////////////////////////////////////////////////////////
     379bool 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  
    2525#ifndef BNCUTILS_H
    2626#define BNCUTILS_H
     27
     28#include <vector>
    2729
    2830#include <QString>
     
    6870void mjdFromDateAndTime(const QDateTime& dateTime, int& mjd, double& dayfrac);
    6971
     72bool findInVector(const std::vector<QString>& vv, const QString& str);
     73
    7074#endif
Note: See TracChangeset for help on using the changeset viewer.