8#ifndef INCLUDED_BALB_FILECLEANERCONFIGURATION
9#define INCLUDED_BALB_FILECLEANERCONFIGURATION
125#include <balscm_version.h>
136#include <bsl_iosfwd.h>
137#include <bsl_string.h>
250 bsl::ostream&
print(bsl::ostream& stream,
252 int spacesPerLevel = 4)
const;
289: d_filePattern(basicAllocator)
301: d_filePattern(filePattern, basicAllocator)
302, d_maxFileAge(maxAge)
303, d_minNumFiles(minNumber)
311: d_filePattern(original.d_filePattern, basicAllocator)
312, d_maxFileAge(original.d_maxFileAge)
313, d_minNumFiles(original.d_minNumFiles)
322 d_filePattern = rhs.d_filePattern;
323 d_maxFileAge = rhs.d_maxFileAge;
324 d_minNumFiles = rhs.d_minNumFiles;
339 d_maxFileAge = maxAge;
346 d_minNumFiles = minNumber;
353 return d_filePattern;
365 return d_minNumFiles;
375 return lhs.d_filePattern == rhs.d_filePattern
376 && lhs.d_maxFileAge == rhs.d_maxFileAge
377 && lhs.d_minNumFiles == rhs.d_minNumFiles;
384 return !(lhs == rhs);
389 bsl::ostream& stream,
392 return configuration.
print(stream);
Definition balb_filecleanerconfiguration.h:161
void setFilePattern(const bsl::string_view &filePattern)
Definition balb_filecleanerconfiguration.h:330
FileCleanerConfiguration & operator=(const FileCleanerConfiguration &rhs)
Definition balb_filecleanerconfiguration.h:320
const bsl::string & filePattern() const
Definition balb_filecleanerconfiguration.h:351
BSLMF_NESTED_TRAIT_DECLARATION(FileCleanerConfiguration, bslma::UsesBslmaAllocator)
int minNumFiles() const
Return the minimum number of files to keep attribute of this object.
Definition balb_filecleanerconfiguration.h:363
void setMinNumFiles(int minNumber)
Definition balb_filecleanerconfiguration.h:343
friend bool operator==(const FileCleanerConfiguration &, const FileCleanerConfiguration &)
FileCleanerConfiguration(bslma::Allocator *basicAllocator=0)
Definition balb_filecleanerconfiguration.h:287
bsls::TimeInterval maxFileAge() const
Return the maximum file age attribute of this object.
Definition balb_filecleanerconfiguration.h:357
bsl::ostream & print(bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
~FileCleanerConfiguration()=default
void setMaxFileAge(const bsls::TimeInterval &maxAge)
Definition balb_filecleanerconfiguration.h:337
Definition bslstl_stringview.h:441
Definition bslstl_string.h:1281
Definition bslma_allocator.h:457
Definition bsls_timeinterval.h:301
#define BSLS_ASSERT(X)
Definition bsls_assert.h:1804
#define BSLS_IDENT(str)
Definition bsls_ident.h:195
Definition balb_controlmanager.h:133
bsl::ostream & operator<<(bsl::ostream &stream, const FileCleanerConfiguration &configuration)
bool operator!=(const FileCleanerConfiguration &lhs, const FileCleanerConfiguration &rhs)
bool operator==(const FileCleanerConfiguration &lhs, const FileCleanerConfiguration &rhs)
Definition bslma_usesbslmaallocator.h:343