diff options
| author | Li Jin <dragon-fly@qq.com> | 2022-11-15 17:23:46 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2022-11-15 17:52:09 +0800 |
| commit | 94f8330613877b3582d32bd11abd83a97b4399ad (patch) | |
| tree | 5359de314be1ebde17f8d1e48632a97d18f9e50f /src/3rdParty/efsw/WatcherGeneric.hpp | |
| parent | 60f8f00a022ac08701792b2897b72d8c99b50f52 (diff) | |
| download | yuescript-94f8330613877b3582d32bd11abd83a97b4399ad.tar.gz yuescript-94f8330613877b3582d32bd11abd83a97b4399ad.tar.bz2 yuescript-94f8330613877b3582d32bd11abd83a97b4399ad.zip | |
adding -w option to Yuescript tool.
Diffstat (limited to 'src/3rdParty/efsw/WatcherGeneric.hpp')
| -rwxr-xr-x | src/3rdParty/efsw/WatcherGeneric.hpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/3rdParty/efsw/WatcherGeneric.hpp b/src/3rdParty/efsw/WatcherGeneric.hpp new file mode 100755 index 0000000..9cf8365 --- /dev/null +++ b/src/3rdParty/efsw/WatcherGeneric.hpp | |||
| @@ -0,0 +1,29 @@ | |||
| 1 | #ifndef EFSW_WATCHERGENERIC_HPP | ||
| 2 | #define EFSW_WATCHERGENERIC_HPP | ||
| 3 | |||
| 4 | #include <efsw/FileWatcherImpl.hpp> | ||
| 5 | |||
| 6 | namespace efsw { | ||
| 7 | |||
| 8 | class DirWatcherGeneric; | ||
| 9 | |||
| 10 | class WatcherGeneric : public Watcher { | ||
| 11 | public: | ||
| 12 | FileWatcherImpl* WatcherImpl; | ||
| 13 | DirWatcherGeneric* DirWatch; | ||
| 14 | |||
| 15 | WatcherGeneric( WatchID id, const std::string& directory, FileWatchListener* fwl, | ||
| 16 | FileWatcherImpl* fw, bool recursive ); | ||
| 17 | |||
| 18 | ~WatcherGeneric(); | ||
| 19 | |||
| 20 | void watch(); | ||
| 21 | |||
| 22 | void watchDir( std::string dir ); | ||
| 23 | |||
| 24 | bool pathInWatches( std::string path ); | ||
| 25 | }; | ||
| 26 | |||
| 27 | } // namespace efsw | ||
| 28 | |||
| 29 | #endif | ||
