Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gamepad64/simplefilewatcher
Automatically exported from code.google.com/p/simplefilewatcher
https://github.com/gamepad64/simplefilewatcher
Last synced: 17 days ago
JSON representation
Automatically exported from code.google.com/p/simplefilewatcher
- Host: GitHub
- URL: https://github.com/gamepad64/simplefilewatcher
- Owner: GamePad64
- License: other
- Created: 2015-04-11T23:39:55.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-11T23:42:28.000Z (over 9 years ago)
- Last Synced: 2023-04-04T01:41:08.833Z (over 1 year ago)
- Language: C++
- Size: 1.19 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: ReadMe.txt
- License: License.txt
Awesome Lists containing this project
README
-- FileWatcher --
Description:
FileWatcher 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.TODO:
* Create a pure directory scan based fallback mode.
* Optimize the kqueue implementation.
* Thorough UnitTest
* Add proper Unicode support.Compiling:
Build scripts for Visual Studio 2005, Visual Studio 2008, and GNU Make
can be found within the build directory, or can be regenerated using
premake 4.0.SimpleDemo:
To run the demo, create a directory relative to the execution directory
called "test". Start SimpleDemo, then create/change/delete files inside
"test". If "test" does not exist when SimpleDemo starts, it will throw
an exception and exit.OgreDemo:
Check the OgreDemo directory for an example integration with Ogre.
Caveats:
When some programs write data in Win32, they will generate both an Add,
and a Modify event. This is likely because the program is actually using
two separate calls to write its data.Because of the time it takes to write the data to the file, it may be
necessary in some cases to wait a few milliseconds after the event to be
able to safely access the file's contents.------------------------------
Written by James Wynn
Contact: [email protected]The most recent version can be located at:
http://simplefilewatcher.googlecode.com