Go to the documentation of this file.
52 #include <sys/types.h>
61 class fileMonitorWatcher;
88 const bool useInotify_;
103 mutable std::unique_ptr<fileMonitorWatcher> watcher_;
109 void checkFiles()
const;
150 const bool masterOnly,
A class for handling file names.
const fileName & getFile(const label watchFd) const
Get name of file being watched.
bool removeWatch(const label watchFd)
Remove file to watch. Return true if successful.
label addWatch(const fileName &)
Add file to watch. Return watch descriptor.
fileState
Enumeration defining the file state.
~fileMonitor()
Destructor.
static const Enum< fileState > fileStateNames_
Macro definitions for declaring ClassName(), NamespaceName(), etc.
Checking for changes to files.
fileState getState(const label watchFd) const
Check state using handle.
void setUnmodified(const label watchFd)
Reset state (e.g. after having read it) using handle.
void updateStates(const bool masterOnly, const bool syncPar) const
Check state of all files. Updates state_.