Actions refactoring: now there is a clear definiation on the action name

This commit is contained in:
Felipe Zimmerle
2016-05-17 14:36:59 -03:00
parent 1b88947d9b
commit 8c714af8e1
62 changed files with 431 additions and 359 deletions

View File

@@ -21,7 +21,6 @@
#define SRC_ACTIONS_SEVERITY_H_
#ifdef __cplusplus
class Transaction;
namespace modsecurity {
class Transaction;
@@ -31,15 +30,19 @@ namespace actions {
class Severity : public Action {
public:
explicit Severity(std::string action);
explicit Severity(std::string action)
: Action(action),
m_severity(0) { }
bool evaluate(Rule *rule, Transaction *transaction,
RuleMessage *rm) override;
bool init(std::string *error);
private:
int m_severity;
};
} // namespace actions
} // namespace modsecurity
#endif