18#ifndef _LOG4CXX_HELPERS_FILEWATCHDOG_H
19#define _LOG4CXX_HELPERS_FILEWATCHDOG_H
27#include <condition_variable>
45 static long DEFAULT_DELAY ;
76 bool is_interrupted();
82 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(FileWatchdogPrivate, m_priv)
An abstract representation of file and directory path names.
Definition: file.h:41
Check every now and then that a certain file has not changed.
Definition: filewatchdog.h:39
void setDelay(long delay1)
Set the delay to observe between each check of the file changes.
bool is_active()
Is the thread that periodically checks for a file change running?
void start()
Create a thread that periodically checks for a file change after first calling doOnChange() on the cu...
void stop()
Stop the thread that periodically checks for a file change.
FileWatchdog(const File &filename)
virtual void doOnChange()=0