Go to the documentation of this file.
48 #include <sys/types.h>
60 class fileMonitorWatcher;
87 const bool useInotify_;
108 void checkFiles()
const;
149 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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
static const Enum< fileState > fileStateNames_
Macro definitions for declaring ClassName(), NamespaceName(), etc.
Checking for changes to files.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
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_.