18#ifndef _LOG4CXX_HELPERS_FILEWATCHDOG_H
19#define _LOG4CXX_HELPERS_FILEWATCHDOG_H
85 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(FileWatchdogPrivate, m_priv)
An abstract representation of file and directory path names.
Definition file.h:41
static long DEFAULT_DELAY
The default delay between every file modification check, set to 60 seconds.
Definition filewatchdog.h:42
void setDelay(long delay)
Use delay as the number of milliseconds to wait between each check for file changes.
bool is_active()
Is the task that periodically checks for a file change running?
void start()
Create an asynchronous task that periodically checks for a file change after first calling doOnChange...
void stop()
Stop the task that periodically checks for a file change.
FileWatchdog(const File &filename)
static void stopAll()
Stop all tasks that periodically check for a file change.
virtual void doOnChange()=0
void setFile(const File &filename)
Change the watched file to filename.