Kea 2.5.8
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
13namespace isc {
14namespace dhcp {
15
26bool evaluateBool(const Expression& expr, Pkt& pkt);
27
28
29std::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:27
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
std::vector< TokenPtr > Expression
This is a structure that holds an expression converted to RPN.
Definition: token.h:28
Defines the logger used by the top-level component of kea-lfc.