Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions

RollingPolicyBase Class Reference

Implements methods common to most, it not all, rolling policies. More...

Inherits log4cxx::rolling::RollingPolicy, and log4cxx::helpers::ObjectImpl.

Inherited by FixedWindowRollingPolicy, and TimeBasedRollingPolicy.

List of all members.

Classes

class  ClazzRollingPolicyBase

Public Member Functions

virtual const helpers::ClassgetClass () const
const void * cast (const helpers::Class &clazz) const
bool instanceof (const helpers::Class &clazz) const
 RollingPolicyBase ()
virtual ~RollingPolicyBase ()
void addRef () const
void releaseRef () const
virtual void activateOptions (log4cxx::helpers::Pool &p)=0
virtual
log4cxx::pattern::PatternMap 
getFormatSpecifiers () const =0
virtual void setOption (const LogString &option, const LogString &value)
void setFileNamePattern (const LogString &fnp)
 Set file name pattern.
LogString getFileNamePattern () const
 Get file name pattern.

Static Public Member Functions

static const helpers::ClassgetStaticClass ()
static const
log4cxx::helpers::ClassRegistration
registerClass ()

Protected Member Functions

void parseFileNamePattern ()
 Parse file name pattern.
void formatFileName (log4cxx::helpers::ObjectPtr &obj, LogString &buf, log4cxx::helpers::Pool &p) const
 Format file name.
log4cxx::pattern::PatternConverterPtr getIntegerPatternConverter () const
log4cxx::pattern::PatternConverterPtr getDatePatternConverter () const

Detailed Description

Implements methods common to most, it not all, rolling policies.


Constructor & Destructor Documentation

virtual ~RollingPolicyBase (  )  [virtual]

Member Function Documentation

virtual void activateOptions ( log4cxx::helpers::Pool p  )  [pure virtual]

Implemented in FixedWindowRollingPolicy.

void addRef (  )  const [virtual]

Reimplemented from ObjectImpl.

const void* cast ( const helpers::Class clazz  )  const [inline, virtual]

Implements Object.

void formatFileName ( log4cxx::helpers::ObjectPtr obj,
LogString buf,
log4cxx::helpers::Pool p 
) const [protected]

Format file name.

Parameters:
obj object to be evaluted in formatting, may not be null.
buf string buffer to which formatted file name is appended, may not be null.
p memory pool.
virtual const helpers::Class& getClass (  )  const [virtual]

Reimplemented from Object.

log4cxx::pattern::PatternConverterPtr getDatePatternConverter (  )  const [protected]
LogString getFileNamePattern (  )  const

Get file name pattern.

Returns:
file name pattern.
virtual log4cxx::pattern::PatternMap getFormatSpecifiers (  )  const [pure virtual]

Implemented in FixedWindowRollingPolicy.

log4cxx::pattern::PatternConverterPtr getIntegerPatternConverter (  )  const [protected]
static const helpers::Class& getStaticClass (  )  [static]

Reimplemented from Object.

bool instanceof ( const helpers::Class clazz  )  const [inline, virtual]

Implements Object.

void parseFileNamePattern (  )  [protected]

Parse file name pattern.

static const log4cxx::helpers::ClassRegistration& registerClass (  )  [static]

Reimplemented from Object.

void releaseRef (  )  const [virtual]

Reimplemented from ObjectImpl.

void setFileNamePattern ( const LogString fnp  ) 

Set file name pattern.

Parameters:
fnp file name pattern.
virtual void setOption ( const LogString option,
const LogString value 
) [virtual]

Reimplemented in FixedWindowRollingPolicy.


The documentation for this class was generated from the following file: