Kea  1.9.9-git
evaluate.h
Go to the documentation of this file.
1 // Copyright (C) 2015-2017 Internet Systems Consortium, Inc. ("ISC")
2 //
3 // This Source Code Form is subject to the terms of the Mozilla Public
4 // License, v. 2.0. If a copy of the MPL was not distributed with this
5 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 
7 #ifndef EVALUATE_H
8 #define EVALUATE_H
9 
10 #include <eval/token.h>
11 #include <string>
12 
13 namespace isc {
14 namespace dhcp {
15 
26 bool evaluateBool(const Expression& expr, Pkt& pkt);
27 
28 
29 std::string evaluateString(const Expression& expr, Pkt& pkt);
30 
31 }; // end of isc::dhcp namespace
32 }; // end of isc namespace
33 
34 #endif
std::string evaluateString(const Expression &expr, Pkt &pkt)
Definition: evaluate.cc:28
bool evaluateBool(const Expression &expr, Pkt &pkt)
Evaluate a RPN expression for a v4 or v6 packet and return a true or false decision.
Definition: evaluate.cc:14
Defines the logger used by the top-level component of kea-dhcp-ddns.
std::vector< TokenPtr > Expression
This is a structure that holds an expression converted to RPN.
Definition: token.h:28