TSDuck Version 3.32-2769 (TSDuck - The MPEG Transport Stream Toolkit)
ts::PolledFile Class Reference

Description of a polled file. More...

Collaboration diagram for ts::PolledFile:

Public Types

enum  Status {
  MODIFIED,
  ADDED,
  DELETED
}
 Status of a polled file. More...
 

Public Member Functions

bool deleted () const
 Check if the file has been deleted since last notification. More...
 
const UStringgetFileName () const
 Get the file name. More...
 
int64_t getSize () const
 Get file size in bytes. More...
 
Status getStatus () const
 Get file status since last notification. More...
 
bool updated () const
 Check if the file has been updated (created or modified) since last notification. More...
 

Static Public Attributes

static const ts::Enumeration StatusEnumeration
 Enumeration names for Status.
 

Detailed Description

Description of a polled file.

Member Enumeration Documentation

◆ Status

Status of a polled file.

Enumerator
MODIFIED 

The file was modified since last time.

ADDED 

The file was added since last time.

DELETED 

The file was deleted since last time.

Member Function Documentation

◆ getFileName()

const UString& ts::PolledFile::getFileName ( ) const
inline

Get the file name.

Returns
The file name.

◆ getStatus()

Status ts::PolledFile::getStatus ( ) const
inline

Get file status since last notification.

Returns
The file status since last notification.

◆ updated()

bool ts::PolledFile::updated ( ) const
inline

Check if the file has been updated (created or modified) since last notification.

Returns
True if the file has been updated.

◆ deleted()

bool ts::PolledFile::deleted ( ) const
inline

Check if the file has been deleted since last notification.

Returns
True if the file has been deleted.

◆ getSize()

int64_t ts::PolledFile::getSize ( ) const
inline

Get file size in bytes.

Returns
The file size in bytes.

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