TSDuck v3.40-4148
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches

Description of a polled file. More...

#include <tsPolledFile.h>

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 Member Functions

static const NamesStatusEnumeration ()
 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

◆ StatusEnumeration()

static const Names & ts::PolledFile::StatusEnumeration ( )
static

Enumeration names for Status.

Returns
A constant reference to the enumeration description.

◆ 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: