Using run time string on the operators

This commit is contained in:
Felipe Zimmerle
2018-01-22 18:05:02 -03:00
parent 6a97dbee7a
commit a299997e02
74 changed files with 6884 additions and 6111 deletions

View File

@@ -23,6 +23,8 @@
#include <libxml/xpath.h>
#include <string>
#include <memory>
#include <utility>
#include "src/operators/operator.h"
@@ -33,13 +35,8 @@ namespace operators {
class ValidateSchema : public Operator {
public:
/** @ingroup ModSecurity_Operator */
ValidateSchema(std::string o, std::string p, bool i)
: Operator(o, p, i),
m_parserCtx(NULL),
m_validCtx(NULL),
m_schema(NULL) { }
explicit ValidateSchema(std::string param)
: Operator("ValidateSchema", param),
explicit ValidateSchema(std::unique_ptr<RunTimeString> param)
: Operator("ValidateSchema", std::move(param)),
m_parserCtx(NULL),
m_validCtx(NULL),
m_schema(NULL) { }