Public Member Functions | Public Attributes | List of all members
fileMonitorWatcher Class Reference
Collaboration diagram for fileMonitorWatcher:
Collaboration graph
[legend]

Public Member Functions

 fileMonitorWatcher (const bool useInotify, const label sz=20)
 
 ~fileMonitorWatcher ()
 
bool addWatch (const label watchFd, const fileName &fName)
 
bool removeWatch (const label watchFd)
 

Public Attributes

const bool useInotify_
 
int inotifyFd_
 
DynamicList< label > dirWatches_
 
DynamicList< fileNamedirFiles_
 
DynamicList< double > lastMod_
 

Detailed Description

Definition at line 102 of file fileMonitor.C.

Constructor & Destructor Documentation

◆ fileMonitorWatcher()

fileMonitorWatcher ( const bool  useInotify,
const label  sz = 20 
)
inline

◆ ~fileMonitorWatcher()

~fileMonitorWatcher ( )
inline

Definition at line 174 of file fileMonitor.C.

References fileMonitorWatcher::dirWatches_, Foam::endl(), forAll, fileMonitorWatcher::inotifyFd_, fileMonitorWatcher::useInotify_, and WarningInFunction.

Here is the call graph for this function:

Member Function Documentation

◆ addWatch()

bool addWatch ( const label  watchFd,
const fileName fName 
)
inline

◆ removeWatch()

bool removeWatch ( const label  watchFd)
inline

Member Data Documentation

◆ useInotify_

const bool useInotify_

◆ inotifyFd_

int inotifyFd_

◆ dirWatches_

DynamicList<label> dirWatches_

◆ dirFiles_

DynamicList<fileName> dirFiles_

◆ lastMod_

DynamicList<double> lastMod_

The documentation for this class was generated from the following file: