45 #include <sys/types.h> 56 class fileMonitorWatcher;
83 const bool useInotify_;
104 void checkFiles()
const;
145 const bool masterOnly,
static const NamedEnum< fileState, 3 > fileStateNames_
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
Checking for changes to files.
fileState
Enumeration defining the file state.
void setUnmodified(const label watchFd)
Reset state (e.g. after having read it) using handle.
fileState getState(const label watchFd) const
Check state using handle.
bool removeWatch(const label watchFd)
Remove file to watch. Return true if successful.
~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...
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_.