TSDuck v3.40-3968
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::PolledFile Class Reference

Description of a polled file. More...

#include <tsPolledFile.h>

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.
 
const UStringgetFileName () const
 Get the file name.
 
std::uintmax_t getSize () const
 Get file size in bytes.
 
Status getStatus () const
 Get file status since last notification.
 
bool updated () const
 Check if the file has been updated (created or modified) since last notification.
 

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()

std::uintmax_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: