Go to the documentation of this file.00001 #ifndef UTILS_H_
00002 #define UTILS_H_
00003
00004
00005 #include "ibrdtn/data/Bundle.h"
00006 #include "ibrdtn/data/CustodySignalBlock.h"
00007 #include "ibrdtn/data/StatusReportBlock.h"
00008 #include "ibrdtn/data/PayloadBlock.h"
00009
00010 namespace dtn
00011 {
00012 namespace utils
00013 {
00014 class Utils
00015 {
00016 public:
00017 static vector<string> tokenize(string token, string data);
00018 static double distance(double lat1, double lon1, double lat2, double lon2);
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 private:
00030 static double toRad(double value);
00031 static const double pi;
00032 };
00033 }
00034 }
00035
00036 #endif