Adds support to the action `maturity'

This commit is contained in:
Felipe Zimmerle
2016-02-10 13:55:12 -03:00
parent 714df8db20
commit 8143f8ea89
6 changed files with 100 additions and 3 deletions

View File

@@ -81,6 +81,7 @@ class Rule {
std::string m_log_message;
std::string m_log_data;
int m_accuracy;
int m_maturity;
private:
bool m_unconditional;
@@ -99,7 +100,7 @@ class RuleMessage {
m_data = std::string("");
m_severity = 0;
m_ver = rule->m_ver;
m_maturity = 0;
m_maturity = rule->m_maturity;
m_rule = rule;
};
RuleMessage(Rule *rule, std::string message) {
@@ -112,7 +113,7 @@ class RuleMessage {
m_data = std::string("");
m_severity = 0;
m_ver = rule->m_ver;
m_maturity = 0;
m_maturity = rule->m_maturity;
m_rule = rule;
};