BDE 4.14.0 Production release
|
#include <balb_filecleanerconfiguration.h>
Public Member Functions | |
BSLMF_NESTED_TRAIT_DECLARATION (FileCleanerConfiguration, bslma::UsesBslmaAllocator) | |
FileCleanerConfiguration (bslma::Allocator *basicAllocator=0) | |
FileCleanerConfiguration (const bsl::string_view &filePattern, const bsls::TimeInterval &maxAge, int minNumber, bslma::Allocator *basicAllocator=0) | |
FileCleanerConfiguration (const FileCleanerConfiguration &original, bslma::Allocator *basicAllocator=0) | |
~FileCleanerConfiguration ()=default | |
FileCleanerConfiguration & | operator= (const FileCleanerConfiguration &rhs) |
void | setFilePattern (const bsl::string_view &filePattern) |
void | setMaxFileAge (const bsls::TimeInterval &maxAge) |
void | setMinNumFiles (int minNumber) |
const bsl::string & | filePattern () const |
bsls::TimeInterval | maxFileAge () const |
Return the maximum file age attribute of this object. | |
int | minNumFiles () const |
Return the minimum number of files to keep attribute of this object. | |
bsl::ostream & | print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const |
Friends | |
bool | operator== (const FileCleanerConfiguration &, const FileCleanerConfiguration &) |
This simply constrained (value-semantic) attribute class characterizes configuration parameters for a file cleaner. See the {Attributes} section under @DESCRIPTION in the component-level documentation for information on the class attributes. Note that the class invariants are identically the constraints on the individual attributes.
This class:
bdex
serializationconst
thread-safe For terminology see bsldoc_glossary .
|
inlineexplicit |
Create a file cleaner configuration object having default values for all attributes. Optionally specify a basicAllocator
used to supply memory. If basicAllocator
is 0, the currently installed default allocator is used.
|
inline |
Create a file cleaner configuration object having the specified filePattern
, maxAge
, and minNumber
attribute values. Optionally specify a basicAllocator
used to supply memory. If basicAllocator
is 0, the currently installed default allocator is used.
|
inline |
Create a file cleaner configuration object having the in-core value of the specified original
object. Optionally specify a basicAllocator
used to supply memory. If basicAllocator
is 0, the currently installed default allocator is used.
|
default |
balb::FileCleanerConfiguration::BSLMF_NESTED_TRAIT_DECLARATION | ( | FileCleanerConfiguration | , |
bslma::UsesBslmaAllocator | |||
) |
|
inline |
Return a const
reference to the file pattern attribute of this object.
|
inline |
|
inline |
|
inline |
Assign to this file cleaner configuration object the in-core value of the specified rhs
object, and return a reference providing modifiable access to this object.
bsl::ostream & balb::FileCleanerConfiguration::print | ( | bsl::ostream & | stream, |
int | level = 0 , |
||
int | spacesPerLevel = 4 |
||
) | const |
Format a reasonable representation of this object to the specified output stream
at the (absolute value of) the optionally specified indentation level
and return a reference to stream
. If level
is specified, optionally specify spacesPerLevel
, the number of spaces per indentation level for this and all of its nested objects. If level
is negative, suppress indentation of the first line. If spacesPerLevel
is negative, suppress all indentation AND format the entire output on one line. If stream
is not valid on entry, this operation has no effect.
|
inline |
Set the file pattern attribute of this object to the specified filePattern
.
|
inline |
Set the maximum file age attribute of this object to the specified maxAge
.
|
inline |
Set the minimum number of files to keep attribute of this object to the specified minNumber
.
|
friend |
Return true
if the specified lhs
and rhs
attribute objects have the same (in-core) value, and false
otherwise. Two attribute objects have the same in-core value if each respective attribute has the same in-core value.