Modifies the output of a pattern converter for a specified minimum and maximum width and alignment. More...
Inherits log4cxx::helpers::ObjectImpl.
Classes | |
class | ClazzFormattingInfo |
Public Member Functions | |
virtual const helpers::Class & | getClass () const |
const void * | cast (const helpers::Class &clazz) const |
bool | instanceof (const helpers::Class &clazz) const |
FormattingInfo (const bool leftAlign, const int minLength, const int maxLength) | |
Creates new instance. | |
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. | |
Static Public Member Functions | |
static const helpers::Class & | getStaticClass () |
static const log4cxx::helpers::ClassRegistration & | registerClass () |
static FormattingInfoPtr | getDefault () |
Gets default instance. |
Modifies the output of a pattern converter for a specified minimum and maximum width and alignment.
FormattingInfo | ( | const bool | leftAlign, | |
const int | minLength, | |||
const int | maxLength | |||
) |
Creates new instance.
leftAlign | left align if true. | |
minLength | minimum length. | |
maxLength | maximum length. |
const void* cast | ( | const helpers::Class & | clazz | ) | const [inline, virtual] |
Implements Object.
void format | ( | const int | fieldStart, | |
LogString & | buffer | |||
) | const |
Adjust the content of the buffer based on the specified lengths and alignment.
fieldStart | start of field in buffer. | |
buffer | buffer to be modified. |
virtual const helpers::Class& getClass | ( | ) | const [virtual] |
Reimplemented from Object.
static FormattingInfoPtr getDefault | ( | ) | [static] |
Gets default instance.
int getMaxLength | ( | ) | const [inline] |
Get maximum length.
int getMinLength | ( | ) | const [inline] |
Get minimum length.
static const helpers::Class& getStaticClass | ( | ) | [static] |
Reimplemented from Object.
bool instanceof | ( | const helpers::Class & | clazz | ) | const [inline, virtual] |
Implements Object.
bool isLeftAligned | ( | ) | const [inline] |
Determine if left aligned.
static const log4cxx::helpers::ClassRegistration& registerClass | ( | ) | [static] |
Reimplemented from Object.