Modifies the output of a pattern converter for a specified minimum and maximum width and alignment.
More...
#include <formattinginfo.h>
Modifies the output of a pattern converter for a specified minimum and maximum width and alignment.
◆ FormattingInfo()
log4cxx::pattern::FormattingInfo::FormattingInfo |
( |
const bool |
leftAlign, |
|
|
const int |
minLength, |
|
|
const int |
maxLength |
|
) |
| |
Creates new instance.
- Parameters
-
leftAlign | left align if true. |
minLength | minimum length. |
maxLength | maximum length. |
◆ ~FormattingInfo()
log4cxx::pattern::FormattingInfo::~FormattingInfo |
( |
| ) |
|
◆ format()
void log4cxx::pattern::FormattingInfo::format |
( |
const int |
fieldStart, |
|
|
LogString & |
buffer |
|
) |
| const |
Adjust the content of the buffer based on the specified lengths and alignment.
- Parameters
-
fieldStart | start of field in buffer. |
buffer | buffer to be modified. |
◆ getDefault()
Gets default instance.
- Returns
- default instance.
◆ getMaxLength()
int log4cxx::pattern::FormattingInfo::getMaxLength |
( |
| ) |
const |
Get maximum length.
- Returns
- maximum length.
◆ getMinLength()
int log4cxx::pattern::FormattingInfo::getMinLength |
( |
| ) |
const |
Get minimum length.
- Returns
- minimum length.
◆ isLeftAligned()
bool log4cxx::pattern::FormattingInfo::isLeftAligned |
( |
| ) |
const |
Determine if left aligned.
- Returns
- true if left aligned.
The documentation for this class was generated from the following file: