跨平台C ++文件系统观察器 [英] Cross platform C++ filesystem watcher

查看:222
本文介绍了跨平台C ++文件系统观察器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个跨平台的文件系统监视器,类似于 FileSystemWatcher 类。对于守护进程/服务,我并不热衷于Qt的 QFileSystemWatcher 。我真的想避免它,因为我不想依赖于Qt,因为我的程序将成为一个守护进程。



我也见过一个建议这样一个类将包括在Boost中,但据我所知,这样的一个类还没有被包括进去。

是否有跨平台的C ++文件系统监视器?

解决方案

Qt分为 modules ,所以使用这个特性并不意味着你必须使用GUI库。

QFileSystemWatcher在 QtCore ,它没有GUI功能。


I'm looking for a cross platform file system watcher, similar to the FileSystemWatcher class in .NET. As it's for a daemon/service, I'm not keen on Qt's QFileSystemWatcher. I'd really like to avoid it as I don't want to have a dependency on Qt as my program is going to be a daemon.

I've also seen a proposal for such a class to be included in Boost, but as far as I know such a class has not yet been included.

Is there a cross platform C++ file system watcher?

解决方案

Qt is divided into modules, so using this feature doesn't mean you have to use the GUI library.

QFileSystemWatcher is in QtCore, which has no GUI functionality.

这篇关于跨平台C ++文件系统观察器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆