|
0.45.0
|
#include <iTaskWatchFilesystem.h>
Inherits igor::iTask.
Public Member Functions | |
| iTaskWatchFilesystem (const iaString &path, bool recursive) | |
| virtual | ~iTaskWatchFilesystem ()=default |
| void | abort () override |
Public Member Functions inherited from igor::iTask | |
| iTask (iWindowPtr window=nullptr, uint32 priority=iTask::TASK_PRIORITY_DEFAULT, bool isRepeating=false, iTaskContext taskContext=iTaskContext::Default) | |
| virtual | ~iTask ()=default |
| virtual void | abort () |
| bool | isRunning () |
| iTaskContext | getContext () |
| uint32 | getPriority () |
| void | setPriority (uint32 priority) |
| bool | isRepeating () |
| iTaskID | getID () |
| uint64 | getWorldID () |
| void | setWorldID (uint64 worldID) |
| iWindowPtr | getWindow () |
Protected Member Functions | |
| void | run () override |
| int | watchDir (const iaDirectory &dir) |
| bool | onWatchDir (const iaString &dir) |
Protected Member Functions inherited from igor::iTask | |
| void | setRepeating (bool repeat) |
| virtual void | run ()=0 |
Protected Attributes | |
| iaString | _path |
| bool | _recursive |
| std::unordered_map< int, iaString > | _subdirs |
| bool | _running |
| int | _inotify |
Additional Inherited Members | |
Static Public Attributes inherited from igor::iTask | |
| static const iTaskID | INVALID_TASK_ID = 0 |
| static const uint32 | TASK_PRIORITY_MAX = 0 |
| static const uint32 | TASK_PRIORITY_HIGH = 5 |
| static const uint32 | TASK_PRIORITY_DEFAULT = 10 |
| static const uint32 | TASK_PRIORITY_LOW = 20 |
task to watch changes in filesystem
| igor::iTaskWatchFilesystem::iTaskWatchFilesystem | ( | const iaString & | path, |
| bool | recursive | ||
| ) |
initializes member variables
| path | the path to watch recursively |
| recursive | if true watch recursively |
|
virtualdefault |
does nothing
|
overridevirtual |
aborts the task
Reimplemented from igor::iTask.
|
protected |
handle created directory event
| dir | the created directory |
|
overrideprotectedvirtual |
runs the task
Implements igor::iTask.
|
protected |
watch given directory for changes
| dir | the given directory |
|
protected |
inotify handle
|
protected |
path to watch
|
protected |
if true watch path recursively
|
protected |
if true this task keeps running
|
protected |
subdirectories to watch