00001 #ifndef UTILS_H_
00002 #define UTILS_H_
00003
00004 #include <vector>
00005 #include <string>
00006 using namespace std;
00007
00008 namespace dtn
00009 {
00010 namespace utils
00011 {
00012 class Utils
00013 {
00014 public:
00015 static vector<string> tokenize(string token, string data);
00016 static double distance(double lat1, double lon1, double lat2, double lon2);
00017
00018 private:
00019 static double toRad(double value);
00020 static const double pi;
00021 };
00022 }
00023 }
00024
00025 #endif