Giter Club home page Giter Club logo

watchdog's People

Contributors

num3ric avatar rockolo avatar simongeilfus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

watchdog's Issues

Doesn't work on windows

std::string upload_folder="e:\\test1\\";
wd::watch(upload_folder, changed);

Exception: Failed to find file or directory at: e

On an elegant way to do the callbacks without Cinder.

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.

Line 119 causing issues without cinder available

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

Use C++ 17 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

More than one instance of overloaded function Watchdog::watch matches the argument list

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.