⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 locfromfile.hh

📁 COPE the first practical network coding scheme which is developped on click
💻 HH
字号:
#ifndef LocFromFile_hh#define LocFromFile_hh 1/* * =c * LocFromFile(filename) * =s Grid * =d * Pretends to be a GridLocationInfo element, but actually reads the * locations from a file. Each line of the file looks like * *   interval lat lon * * This means means "spend interval seconds moving to lat/lon." * * Here's a reasonable test file that keeps the node more or * less within 250 meters of 0,0: * * 1 0 0 * 10 .002 .002 * 20 0 .003 * 30 0 0 * * =a * GridLocationInfo */#include <click/element.hh>#include "elements/grid/gridlocationinfo.hh"CLICK_DECLSclass LocFromFile : public GridLocationInfo {public:  LocFromFile();  ~LocFromFile();  const char *class_name() const { return "LocFromFile"; }  int configure(Vector<String> &, ErrorHandler *);  bool can_live_reconfigure() const { return true; }  virtual void *cast(const char *);protected:  virtual void choose_new_leg(double *, double *, double *);private:  struct delta {    double interval;    double lat;    double lon;  };  Vector<delta> _deltas;  int _next;};CLICK_ENDDECLS#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -