BloombergLP::balb::FileCleanerConfiguration::FileCleanerConfiguration

Create a file cleaner configuration object having the specified filePattern, maxAge, minNumFiles, and maxNumFiles attribute values.

Synopsis

Declared in <balb_filecleanerconfiguration.h>

FileCleanerConfiguration(
    std::string_view const& filePattern,
    bsls::TimeInterval const& maxAge,
    int minNumFiles,
    int maxNumFiles,
    bslma::Allocator* basicAllocator = 0);

Description

Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless 0 <= minNumFiles, and minNumFiles <= maxNumFiles.

Parameters

NameDescription
filePatternfilesystem pattern used for file matching
maxAgemaximum file age (since last modification)
minNumFilesminimum number of newest matching files to keep
maxNumFilesmaximum number of newest matching files to keep
basicAllocatormemory allocator; null uses the default