18 #ifndef _LOG4CXX_PATTERN_PATTERN_CONVERTER_H
19 #define _LOG4CXX_PATTERN_PATTERN_CONVERTER_H
27 #define DECLARE_LOG4CXX_PATTERN(cls) DECLARE_ABSTRACT_LOG4CXX_OBJECT(cls)
49 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(PatternConverterPrivate, m_priv)
74 #if LOG4CXX_ABI_VERSION <= 15
80 virtual void format(
const helpers::ObjectPtr& obj,
83 #define LOG4CXX_FORMAT_OBJECT_FORMAL_PARAMETERS const helpers::ObjectPtr& obj, LogString& toAppendTo, helpers::Pool& p
85 virtual void format(
const helpers::ObjectPtr& obj,
LogString& toAppendTo)
const = 0;
86 #define LOG4CXX_FORMAT_OBJECT_FORMAL_PARAMETERS const helpers::ObjectPtr& obj, LogString& toAppendTo
90 [[deprecated(
"Use format() without a Pool parameter instead")]]
91 virtual void format(
const helpers::ObjectPtr& obj,
LogString& toAppendTo, helpers::Pool& p)
const;
base class for java-like objects.
Definition: object.h:102
Definition: patternconverter.h:47
const FormattingInfo & getFormattingInfo() const
Provides a minimum width, a maximum width and the alignment.
LogString getName() const
This method returns the name of the conversion pattern.
static void append(LogString &toAppendTo, const std::string &src)
Appends content in the locale code page to a LogString.
void setFormattingInfo(const FormattingInfoPtr &newValue)
Use newValue for the minimum width, a maximum width and the alignment.
virtual LogString getStyleClass(const helpers::ObjectPtr &e) const
This method returns the CSS style class that should be applied to the LoggingEvent passed as paramete...
virtual void format(const helpers::ObjectPtr &obj, LogString &toAppendTo, helpers::Pool &p) const =0
void format(const helpers::ObjectPtr &obj, LogString &toAppendTo) const
Formats an object into a string buffer.
LOG4CXX_PTR_DEF(PatternConverter)
std::vector< LogString > OptionsList
Definition: patternconverter.h:34
std::shared_ptr< FormattingInfo > FormattingInfoPtr
Definition: formattinginfo.h:31
std::basic_string< logchar > LogString
Definition: logstring.h:60
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:154
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:148
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:142
#define DECLARE_LOG4CXX_PATTERN(cls)
Definition: patternconverter.h:27