61class fileMonitorWatcher;
88 const bool useInotify_;
103 mutable std::unique_ptr<fileMonitorWatcher> watcher_;
109 void checkFiles()
const;
150 const bool masterOnly,
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
Enum is a wrapper around a list of names/values that represent particular enumeration (or int) values...
Checking for changes to files.
label addWatch(const fileName &)
Add file to watch. Return watch descriptor.
fileState getState(const label watchFd) const
Check state using handle.
label addWatch(const fileName &)
Add file to watch. Return watch descriptor.
static const Enum< fileState > fileStateNames_
void setUnmodified(const label watchFd)
Reset state (e.g. after having read it) using handle.
~fileMonitor()
Destructor.
const fileName & getFile(const label watchFd) const
Get name of file being watched.
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.
fileState getState(const label watchFd) const
Check state using handle.
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.
#define ClassName(TypeNameString)
Add typeName information from argument TypeNameString to a class.