|
void | fileCreated (efsw::WatchID watchId, const std::string &dir, const std::string &fileName) |
| Signal emitted whenever a file/directory is created. More...
|
|
void | fileDeleted (efsw::WatchID watchId, const std::string &dir, const std::string &fileName) |
| Signal emitted whenever a file/directory is deleted. More...
|
|
void | fileModified (efsw::WatchID watchId, const std::string &dir, const std::string &fileName) |
| Signal emitted whenever a file/directory is modified. More...
|
|
void | fileMoved (efsw::WatchID watchId, const std::string &dir, const std::string &oldFilename, const std::string &newFileName) |
| Signal emitted whenever a file/directory is moved. More...
|
|
| SignalEmitter (SignalEmitter &&)=default |
|
SignalEmitter & | operator= (SignalEmitter &&)=default |
|
void | poll () |
| Polls this object for incomming signal emissions. More...
|
|
|
template<typename Caller , typename Function , typename R , typename Class , typename... Args> |
static std::shared_ptr< const SignalSink > | connect (Caller &caller, R(Class::*source)(Args...), Function function) |
| Creates a direct connection from the given emitter object to the given function. More...
|
|
template<typename Caller , typename Callee , typename Function , typename R , typename Class , typename... Args> |
static std::shared_ptr< const SignalSink > | connect (Caller &caller, R(Class::*source)(Args...), Callee &callee, Function function) |
| Creates a direct connection from the given emitter object to the given function, using an specific callee object. More...
|
|
template<typename Caller , typename Function , typename R , typename Class , typename... Args> |
static std::shared_ptr< const SignalSink > | connect_async (Caller &caller, R(Class::*source)(Args...), Function function) |
| Creates an asynchronous connection between a signal and a function. More...
|
|
template<typename Caller , typename Callee , typename Function , typename R , typename Class , typename... Args> |
static std::shared_ptr< const SignalSink > | connect_async (Caller &caller, R(Class::*source)(Args...), Callee &callee, Function function) |
| Creates an asynchronous connection between a signal and a function using an specific callee object. More...
|
|
template<typename Caller , typename Callee , typename R , typename... Args> |
static std::shared_ptr< const SignalSink > | bypass (Caller &caller, R(Caller::*source)(Args...), Callee &callee, R(Callee::*dest)(Args...)) |
| Connects two signals synchronously. More...
|
|
template<typename Caller , typename Callee , typename R , typename... Args> |
static std::shared_ptr< const SignalSink > | bypass_async (Caller &caller, R(Caller::*source)(Args...), Callee &callee, R(Callee::*dest)(Args...)) |
| Connects two signals asynchronously. More...
|
|
template<typename Class , typename R , typename... FArgs, typename... Args> |
static void | emit (Class &emitter, R(Class::*function)(FArgs...), Args &&...args) |
| Emits a signal on the given emitter. More...
|
|
template<typename Function , typename... Args> |
void | invoke (Function function, Args &&...args) |
|
File system listener class that notifies filesystem changed through signals.
FileSystemListener is a wrapper of an [Euforia Filesystem Watcher]() filesystem listener that uses siplasplas signals to notify changes on the file system, using a different signal for each change type (File created, file modified, etc). The class implements the efsw::FileWatchListener interface, and can be passed as listener for efsw watchers. The signals are raised from the background thread the filesystem watcher is running.
- Examples:
- fswatch/fswatch.cpp.