|
Apache Log4cxx
Version 1.5.0
|
Go to the documentation of this file.
18 #ifndef _LOG4CXX_HELPERS_FILEWATCHDOG_H
19 #define _LOG4CXX_HELPERS_FILEWATCHDOG_H
42 static long DEFAULT_DELAY ;
85 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(FileWatchdogPrivate, m_priv)
91 #endif // _LOG4CXX_HELPERS_FILEWATCHDOG_H
An abstract representation of file and directory path names.
Definition: file.h:41
static void stopAll()
Stop all tasks that periodically check for a file change.
Check every now and then that a certain file has not changed.
Definition: filewatchdog.h:36
bool is_active()
Is the task that periodically checks for a file change running?
void stop()
Stop the task that periodically checks for a file change.
void setFile(const File &filename)
Change the watched file to filename.
FileWatchdog(const File &filename)
void start()
Create an asynchronous task that periodically checks for a file change after first calling doOnChange...
void setDelay(long delay)
Use delay as the number of milliseconds to wait between each check for file changes.
virtual void doOnChange()=0