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();
 
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 delay)
Use delay as the number of milliseconds to wait between each check for 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
 
#define LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(T, V)
Definition: log4cxx.h:85
 
#define LOG4CXX_EXPORT
Definition: log4cxx.h:101
 
#define LOG4CXX_NS
Definition: log4cxx.h:104