TSDuck v3.40-3963
MPEG Transport Stream Toolkit
|
Interface for classes listening for file modification. More...
#include <tsPollFilesListener.h>
Public Member Functions | |
virtual | ~PollFilesListener () |
Virtual destructor. | |
virtual bool | handlePolledFiles (const PolledFileList &files)=0 |
Invoked when files have changed. | |
virtual bool | updatePollFiles (UString &wildcard, cn::milliseconds &poll_interval, cn::milliseconds &min_stable_delay) |
Invoked before each poll to give the opportunity to change where and how the files are polled. | |
Interface for classes listening for file modification.
|
pure virtual |
Invoked when files have changed.
[in] | files | List of changed files since last time. The entries in the list are sorted by file names. |
|
virtual |
Invoked before each poll to give the opportunity to change where and how the files are polled.
This is an optional feature, the default implementation does not change anything.
[in,out] | wildcard | Wildcard specification of files to poll (eg "/path/to/*.dat"). |
[in,out] | poll_interval | Interval in milliseconds between two poll operations. |
[in,out] | min_stable_delay | A file size needs to be stable during that duration for the file to be reported as added or modified. This prevent too frequent poll notifications when a file is being written and his size modified at each poll. |