|
BDE 4.39.x Production Release
|
#include <balb_filecleanerconfiguration.h>
This simply constrained (value-semantic) attribute class characterizes configuration parameters for a file cleaner. See the Attributes for information on the class attributes.
This class:
bdex serializationconst thread-safe For terminology see bsldoc_glossary .Friends | |
| bool | operator== (const FileCleanerConfiguration &, const FileCleanerConfiguration &) |
|
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, minNumFiles, maxNumFiles attribute values. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.
0 <= minNumFiles, and minNumFiles <= maxNumFiles.
|
inline |
|
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 |
Destroy this object.
| balb::FileCleanerConfiguration::BSLMF_NESTED_TRAIT_DECLARATION | ( | FileCleanerConfiguration | , |
| bslma::UsesBslmaAllocator | |||
| ) |
|
inline |
Return a const reference to the file pattern attribute of this object.
|
inline |
Return the maximum file age attribute of this object.
|
inline |
Return the maximum number of files to keep attribute of this object.
|
inline |
Return the minimum number of files to keep attribute of this object.
|
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 maximum number of files to keep attribute of this object to the specified maxNumFiles.
maxNumFiles < 0 or maxNumFiles < minNumFiles().
|
inline |
Set the minimum number of files to keep attribute of this object to the specified minNumFiles.
minNumFiles < 0 or maxNumFiles() < minNumFiles.
|
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.