mirror of
https://github.com/openappsec/openappsec.git
synced 2025-09-30 19:47:44 +03:00
My 11th 2023 update
This commit is contained in:
30
components/include/i_keywords_rule.h
Normal file
30
components/include/i_keywords_rule.h
Normal file
@@ -0,0 +1,30 @@
|
||||
#ifndef ___I_KEYWORDS_RULE_H__
|
||||
#define ___I_KEYWORDS_RULE_H__
|
||||
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "maybe_res.h"
|
||||
|
||||
class I_KeywordsRule
|
||||
{
|
||||
public:
|
||||
class VirtualRule
|
||||
{
|
||||
public:
|
||||
virtual ~VirtualRule() {};
|
||||
virtual bool isMatch() const = 0;
|
||||
};
|
||||
|
||||
virtual Maybe<std::shared_ptr<VirtualRule>> genRule(const std::string &rule) = 0;
|
||||
|
||||
static const std::string & getKeywordsRuleTag() { return keywords_tag; }
|
||||
|
||||
protected:
|
||||
virtual ~I_KeywordsRule() {}
|
||||
|
||||
private:
|
||||
static std::string keywords_tag;
|
||||
};
|
||||
|
||||
#endif // ___I_KEYWORDS_RULE_H__
|
Reference in New Issue
Block a user