18 #if !defined(_LOG4CXX_ROLLING_ACTION_H)
19 #define _LOG4CXX_ROLLING_ACTION_H
33 class Action :
public virtual LOG4CXX_NS::helpers::Object
40 LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(ActionPrivate, m_priv)
47 Action(LOG4CXX_PRIVATE_PTR(ActionPrivate) priv);
56 #if LOG4CXX_ABI_VERSION <= 15
63 #define LOG4CXX_EXECUTE_ACTION_FORMAL_PARAMETERS helpers::Pool& p
65 virtual bool execute()
const = 0;
66 #define LOG4CXX_EXECUTE_ACTION_FORMAL_PARAMETERS
70 [[deprecated(
"Use execute() without a Pool parameter instead")]]
71 bool execute(helpers::Pool& pool)
const;
91 #if LOG4CXX_ABI_VERSION <= 15
A file system action performed as part of a rollover event.
Definition: action.h:34
bool execute() const
Perform the action.
virtual bool execute(helpers::Pool &pool) const =0
void reportException(const std::exception &)
bool isComplete() const
Is action is complete?
Action(LOG4CXX_PRIVATE_PTR(ActionPrivate) priv)
void run(helpers::Pool &pool)
LogString getName() const
std::basic_string< logchar > LogString
Definition: logstring.h:60
#define LOG4CXX_CAST_ENTRY(Interface)
Definition: object.h:154
#define DECLARE_ABSTRACT_LOG4CXX_OBJECT(object)
Definition: object.h:37
#define END_LOG4CXX_CAST_MAP()
Definition: object.h:148
#define BEGIN_LOG4CXX_CAST_MAP()
Definition: object.h:142