simongeilfus / watchdog Goto Github PK
View Code? Open in Web Editor NEWFile / directory watcher for c++11 and boost
File / directory watcher for c++11 and boost
std::string upload_folder="e:\\test1\\";
wd::watch(upload_folder, changed);
Exception: Failed to find file or directory at: e
Store a queue of std::functions and push the registered handler into it whenever a file changes. Lock access to the queue with a mutex.
Have the user process the queue at an appropriate point in their code (by calling something like wd::handleChanges()
).
If all of the watchers were running in a single thread, you could use Cinder's dispatchAsync to call handleChanges once if any callbacks were added to the queue that iteration.
static void touch( const ci::fs::path &path, ci::fs::file_time_type time = ci::fs::file_time_type::clock::now()
When using boost only ci::fs::file_time_type is not available since it isn't part of the boost filesystem
Hey, i wanted to ask if the boost dependency will get removed in favor of the C++ 17 filesystem which is already on some compilers
Hi there,
I'm trying to use Watchdog with Cinder, running Visual Studio Express 2013. Sadly, I can't get around the error mentioned in the title, even when simply trying to use your example call:
wd::watch( "shaders/lighting.*", [](const fs::path &path){
// do something
} );
Intellisense says it could mean a call to both variants of watch(). Do you have any idea what is going on here?
Thanks in advance,
Daniel
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.