18#if !defined(_LOG4CXX_ROLLING_ROLLING_POLICY_BASE_H)
19#define _LOG4CXX_ROLLING_ROLLING_POLICY_BASE_H
54 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(RollingPolicyBasePrivate, m_priv)
base class for java-like objects.
Definition: object.h:105
Implements methods common to most, it not all, rolling policies.
Definition: rollingpolicybase.h:46
log4cxx::pattern::PatternConverterPtr getIntegerPatternConverter() const
void formatFileName(const helpers::ObjectPtr &obj, LogString &buf, helpers::Pool &p) const
Format file name.
void parseFileNamePattern()
Parse file name pattern.
LogString getFileNamePattern() const
Get file name pattern.
RollingPolicyBase(LOG4CXX_PRIVATE_PTR(RollingPolicyBasePrivate) priv)
PatternConverterList getPatternConverterList() const
log4cxx::pattern::PatternConverterPtr getDatePatternConverter() const
virtual pattern::PatternMap getFormatSpecifiers() const =0
A map from a name to the object implementing the (date or index) formatting.
void setCreateIntermediateDirectories(bool createIntermediate)
void setFileNamePattern(const LogString &fnp)
Set file name pattern.
void setOption(const LogString &option, const LogString &value) override
Set option to value.
void activateOptions(helpers::Pool &p) override
Activate the options that were previously set with calls to option setters.
bool getCreateIntermediateDirectories() const
virtual ~RollingPolicyBase()
A RollingPolicy is responsible for performing the rolling over of the active log file.
Definition: rollingpolicy.h:43
A string based interface to configure package components.
Definition: optionhandler.h:35
std::shared_ptr< Object > ObjectPtr
Definition: optionconverter.h:41
std::map< LogString, PatternConstructor > PatternMap
Definition: patternparser.h:35
std::shared_ptr< FormattingInfo > FormattingInfoPtr
Definition: formattinginfo.h:32
LOG4CXX_LIST_DEF(PatternConverterList, log4cxx::pattern::PatternConverterPtr)
Definition: configuration.h:25
std::basic_string< logchar > LogString
Definition: logstring.h:60
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:157
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition: object.h:38
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:151
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:145