Poco

class PurgeByCountStrategy

File Information

Library: Foundation
Package: Logging
Header: Poco/PurgeStrategy.h

Description

This purge strategy ensures that a maximum number of archived files is not exceeded. Files are deleted based on their age, with oldest files deleted first.

Inheritance

Direct Base Classes: PurgeStrategy

All Base Classes: PurgeStrategy

Member Summary

Member Functions: purge

Inherited Functions: list, purge

Constructors

PurgeByCountStrategy

PurgeByCountStrategy(
    int count
);

Destructor

~PurgeByCountStrategy virtual

~PurgeByCountStrategy();

Member Functions

purge virtual

void purge(
    const std::string & path
);