1 /*
2  * ModSecurity, http://www.modsecurity.org/
3  * Copyright (c) 2015 - 2021 Trustwave Holdings, Inc. (http://www.trustwave.com/)
4  *
5  * You may not use this file except in compliance with
6  * the License.  You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * If any of the files related to licensing are missing or if you have any
11  * other questions related to licensing please contact Trustwave Holdings, Inc.
12  * directly using the email address security@modsecurity.org.
13  *
14  */
15 
16 #include <string>
17 #include <memory>
18 #include <utility>
19 
20 #include "modsecurity/transaction.h"
21 #include "src/operators/operator.h"
22 
23 
24 #ifndef SRC_OPERATORS_STR_EQ_H_
25 #define SRC_OPERATORS_STR_EQ_H_
26 
27 
28 namespace modsecurity {
29 namespace operators {
30 
31 class StrEq : public Operator {
32  public:
33     /** @ingroup ModSecurity_Operator */
StrEq(std::unique_ptr<RunTimeString> param)34     explicit StrEq(std::unique_ptr<RunTimeString> param)
35         : Operator("StrEq", std::move(param)) { }
36 
37     bool evaluate(Transaction *transaction, const std::string &str) override;
38 };
39 
40 }  // namespace operators
41 }  // namespace modsecurity
42 
43 
44 #endif  // SRC_OPERATORS_STR_EQ_H_
45