Refactoring on {global,ip,resources,session,tx,user} collections

Now using the same name schema and interface for these "special"
collection.

Fix: #1754, #1778
This commit is contained in:
Felipe Zimmerle
2018-05-29 23:48:05 -03:00
parent 550e9d3f39
commit 892beb5360
7 changed files with 66 additions and 43 deletions

View File

@@ -35,13 +35,13 @@ class Tx_DictElement : public Variable {
public:
explicit Tx_DictElement(std::string dictElement)
: Variable("TX:" + dictElement),
m_dictElement(dictElement) { }
m_dictElement("TX:" + dictElement) { }
void evaluate(Transaction *t,
Rule *rule,
std::vector<const VariableValue *> *l) override {
t->m_collections.m_tx_collection->resolveMultiMatches(
m_dictElement, l);
m_name, l);
}
std::string m_dictElement;