TSDuck v3.46-4930
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches

#include <tsPolledFile.h>

Public Types

enum  Status {
  MODIFIED ,
  ADDED ,
  DELETED
}

Public Member Functions

bool deleted () const
const UString & getFileName () const
std::uintmax_t getSize () const
Status getStatus () const
bool updated () const

Static Public Member Functions

static const Names & StatusEnumeration ()

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

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: