RXtoRINEX  V2.1
RXtoRINEX provides tools to collect data from GPS / GNSS receivers in mobile devices, convert them to RINEX or RTK formats, and process RINEX files.
Utilities.h
Go to the documentation of this file.
1 
20 #ifndef UTILITIES_H
21 #define UTILITIES_H
22 
23 #include <string>
24 #include <vector>
25 
26 using namespace std;
27 
28 vector<string> getTokens (string source, char separator); //extract tokens from a string
29 bool isBlank (char* buffer, int n); //checks if all chars in the buffer are spaces
30 void formatGPStime (char* buffer, int bufferSize, char* fmtYtoM, char * fmtSec, int week, double tow); //convert to printable format the given GPS time
31 void formatLocalTime (char* buffer, int bufferSize, char* fmt); //convert to printable format the computer current local time
32 int getGPSweek (int year, int month, int day, int hour, int min, float sec); //computes GPS weeks from the GPS ephemeris (6/1/1980) to a given date
33 int getGPSweek (double secs); //computes GPS weeks from the GPS ephemeris (6/1/1980) to a given instant
34 double getGPStow (int year, int month, int day, int hour, int min, float sec); //computes the TOW for a given date
35 double getGPStow (double secs); //computes the GPS TOW for a given instant
36 void setWeekTow (int year, int month, int day, int hour, int min, double sec, int & week, double & tow);
37 double getSecsGPSEphe (int year, int month, int day, int hour, int min, float sec); //compute instant in seconds from the GPS ephemeris (6/1/1980) to a given date and time
38 double getSecsGPSEphe (int week, double tow); //compute instant seconds from the GPS ephemeris (6/1/1980) to a given GPS time (week and tow)
39 string strToUpper(string strToConvert);
40 int getTwosComplement(unsigned int number, unsigned int nbits);
41 int getSigned(unsigned int number, int nbits);
42 unsigned int reverseWord(unsigned int wordToReverse, int nBits=32);
43 unsigned int getBits(unsigned int *stream, int bitpos, int len);
44 #endif
int getGPSweek(int year, int month, int day, int hour, int min, float sec)
Definition: Utilities.cpp:93
void setWeekTow(int year, int month, int day, int hour, int min, double sec, int &week, double &tow)
Definition: Utilities.cpp:141
int getTwosComplement(unsigned int number, unsigned int nbits)
Definition: Utilities.cpp:229
double getSecsGPSEphe(int year, int month, int day, int hour, int min, float sec)
Definition: Utilities.cpp:178
vector< string > getTokens(string source, char separator)
Definition: Utilities.cpp:17
string strToUpper(string strToConvert)
Definition: Utilities.cpp:214
void formatLocalTime(char *buffer, int bufferSize, char *fmt)
Definition: Utilities.cpp:74
double getGPStow(int year, int month, int day, int hour, int min, float sec)
Definition: Utilities.cpp:116
int getSigned(unsigned int number, int nbits)
Definition: Utilities.cpp:245
void formatGPStime(char *buffer, int bufferSize, char *fmtYtoM, char *fmtSec, int week, double tow)
Definition: Utilities.cpp:46
bool isBlank(char *buffer, int n)
Definition: Utilities.cpp:32