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