Changeset 5910 in ntrip


Ignore:
Timestamp:
Aug 12, 2014, 3:23:19 PM (10 years ago)
Author:
mervart
Message:
 
Location:
trunk/BNC/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/PPP/pppCrdFile.cpp

    r5909 r5910  
    4343#include <sstream>
    4444#include "pppCrdFile.h"
    45 #include "utils.h"
     45#include "bncutils.h"
    4646
    4747using namespace std;
    48 using namespace GPSS;
     48using namespace BNC_PPP;
    4949
    5050//
  • trunk/BNC/src/bncutils.cpp

    r5888 r5910  
    6969  }
    7070
     71}
     72
     73// Strip White Space
     74////////////////////////////////////////////////////////////////////////////
     75void stripWhiteSpace(string& str) {
     76  if (!str.empty()) {
     77    string::size_type beg = str.find_first_not_of(" \t\f\n\r\v");
     78    string::size_type end = str.find_last_not_of(" \t\f\n\r\v");
     79    if (beg > str.max_size())
     80      str.erase();
     81    else
     82      str = str.substr(beg, end-beg+1);
     83  }
    7184}
    7285
  • trunk/BNC/src/bncutils.h

    r5886 r5910  
    107107void         jmt (double djul, long& jj, long& mm, double& dd);
    108108
     109void         stripWhiteSpace(std::string& str);
     110
    109111#endif
  • trunk/BNC/src/src.pri

    r5892 r5910  
    6868          PPP/pppObsPool.h   PPP/pppStation.h   PPP/pppFilter.h       \
    6969          PPP/pppEphPool.h   PPP/pppModel.h     PPP/pppParlist.h      \
    70           PPP/pppSatObs.h    PPP/pppRun.h
     70          PPP/pppSatObs.h    PPP/pppRun.h       PPP/pppCrdFile.h
    7171
    7272HEADERS       += serial/qextserialbase.h serial/qextserialport.h
     
    106106          PPP/pppObsPool.cpp PPP/pppStation.cpp PPP/pppFilter.cpp     \
    107107          PPP/pppEphPool.cpp PPP/pppModel.cpp   PPP/pppParlist.cpp    \
    108           PPP/pppSatObs.cpp  PPP/pppRun.cpp
     108          PPP/pppSatObs.cpp  PPP/pppRun.cpp     PPP/pppCrdFile.cpp
    109109
    110110SOURCES       += serial/qextserialbase.cpp serial/qextserialport.cpp
Note: See TracChangeset for help on using the changeset viewer.