61class fileMonitorWatcher;
88 const bool useInotify_;
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...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Checking for changes to files.
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.
void updateStates(const bool masterOnly, const bool syncPar) const
Check state of all files. Updates state_.
fileState
Enumeration defining the file state.
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.