45 #include <sys/types.h> 56 class fileMonitorWatcher;
85 const bool useInotify_;
106 void checkFiles()
const;
144 const bool masterOnly,
fileMonitor(const bool useInotify)
Construct null.
static const NamedEnum< fileState, 3 > fileStateNames_
A class for handling file names.
void operator=(const fileMonitor &)=delete
Disallow default bitwise assignment.
Checking for changes to files.
fileState getState(const label watchFd) const
Check state using handle.
fileState
Enumeration defining the file state.
void setUnmodified(const label watchFd)
Reset state (e.g. after having read it) using handle.
bool removeWatch(const label watchFd)
Remove file to watch. Return true if successful.
void updateStates(const bool masterOnly, const bool syncPar) const
Check state of all files. Updates state_.
const fileName & getFile(const label watchFd) const
Get name of file being watched.
~fileMonitor()
Destructor.
label addWatch(const fileName &)
Add file to watch. Return watch descriptor.
Macro definitions for declaring ClassName(), NamespaceName(), etc.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...