首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > C/C++/VC++ > 简单、跨平台、面向对象、文件监控和通知图书馆。

简单、跨平台、面向对象、文件监控和通知图书馆。

资 源 简 介

SimpleFileWatcher is a C++ wrapper for OS file monitoring systems. Currently it uses Win32 ReadDirectoryChangesW for monitoring changes in Windows, and inotify in linux. OSX is supported via kqueue and directory scans. Some example code: ``` // Create the object FW::FileWatcher* fileWatcher = new FW::FileWatcher(); // add a directory watch FW::WatchID watchid = fileWatcher->addWatch("..\media", new UpdateListener()); ... // somewhere in your update loop call update fileWatcher->update(); // where UpdateListener is defined as such class UpdateListener : public FW::FileWatchListener { public: UpdateListener() {} void handleFileAction(FW::WatchID watchid, const String& dir, const String& filename, FW::Action action) { switch(action) { case FW::Actions::Add: std::cout << "File (" << dir + "\" + filename << ") Added! " << std::endl

文 件 列 表

OgreDemoDependency
bin
include
lib
VIP VIP
  • x 55分钟前 成为了本站会员

  • 南屏晚钟 2小时前 成为了本站会员

  • 沧海明月 3小时前 成为了本站会员

  • byhejun 3小时前 成为了本站会员

  • Hygr 6小时前 成为了本站会员

  • *levo 6小时前 成为了本站会员

  • 期待与你相见 1天前 成为了本站会员

  • 浩之一荡 1天前 成为了本站会员

  • 后来- 2天前 成为了本站会员

  • 2天前 成为了本站会员

0.219321s