TSDuck v3.40-3963
MPEG Transport Stream Toolkit
|
Representation of a file name and an associated repetition rate. More...
#include <tsFileNameRate.h>
Public Member Functions | |
FileNameRate (const UString &name=UString(), cn::milliseconds rep=cn::milliseconds::zero()) | |
Default constructor. | |
bool | operator< (const FileNameRate &other) const |
Comparison "less than" operator. | |
bool | operator== (const FileNameRate &other) const |
Comparison operator. | |
bool | scanFile (size_t retry=1, Report &report=(ts::NullReport::Instance())) |
Scan the file for update. | |
Public Attributes | |
UString | display_name {} |
File name in display form. | |
Time | file_date {} |
Last modification date of file. | |
UString | file_name {} |
File name. | |
bool | inline_xml = false |
File name contains inline XML text (not a real file name). | |
cn::milliseconds | repetition {} |
Repetition rate in milliseconds. | |
size_t | retry_count = 1 |
Number of allowed retry in case of error when using the file. | |
Representation of a file name and an associated repetition rate.
This is typically used to handle section files to inject into transport streams.
|
explicit |
Default constructor.
[in] | name | File name. |
[in] | rep | Repetition rate in milliseconds. |
bool ts::FileNameRate::operator== | ( | const FileNameRate & | other | ) | const |
Comparison operator.
[in] | other | Other instance to compare. |
bool ts::FileNameRate::operator< | ( | const FileNameRate & | other | ) | const |
Comparison "less than" operator.
It does not really makes sense. Only defined to allow usage in containers.
[in] | other | Other instance to compare. |
bool ts::FileNameRate::scanFile | ( | size_t | retry = 1 , |
Report & | report = (ts::NullReport::Instance()) |
||
) |
Scan the file for update.
Update the modification date of the file in file_date.
[in] | retry | Number of allowed retry in case of error when using the file. |
[in] | report | Where to report a verbose message when a file changed. |