Apache Log4cxx
Version 1.2.0
|
Modifies the output of a pattern converter for a specified minimum and maximum width and alignment. More...
#include <formattinginfo.h>
Public Member Functions | |
FormattingInfo (const bool leftAlign, const int minLength, const int maxLength) | |
Creates new instance. | |
~FormattingInfo () | |
bool | isLeftAligned () const |
Determine if left aligned. | |
int | getMinLength () const |
Get minimum length. | |
int | getMaxLength () const |
Get maximum length. | |
void | format (const int fieldStart, LogString &buffer) const |
Adjust the content of the buffer based on the specified lengths and alignment. | |
![]() | |
virtual | ~Object () |
virtual const helpers::Class & | getClass () const =0 |
virtual bool | instanceof (const Class &clazz) const =0 |
virtual const void * | cast (const Class &clazz) const =0 |
Static Public Member Functions | |
static FormattingInfoPtr | getDefault () |
Gets default instance. | |
Modifies the output of a pattern converter for a specified minimum and maximum width and alignment.
log4cxx::pattern::FormattingInfo::FormattingInfo | ( | const bool | leftAlign, |
const int | minLength, | ||
const int | maxLength | ||
) |
Creates new instance.
leftAlign | left align if true. |
minLength | minimum length. |
maxLength | maximum length. |
log4cxx::pattern::FormattingInfo::~FormattingInfo | ( | ) |
Adjust the content of the buffer based on the specified lengths and alignment.
fieldStart | start of field in buffer. |
buffer | buffer to be modified. |
|
static |
Gets default instance.
int log4cxx::pattern::FormattingInfo::getMaxLength | ( | ) | const |
Get maximum length.
int log4cxx::pattern::FormattingInfo::getMinLength | ( | ) | const |
Get minimum length.
bool log4cxx::pattern::FormattingInfo::isLeftAligned | ( | ) | const |
Determine if left aligned.