Kea
1.5.0
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
isc::dhcp::Expression
std::vector< TokenPtr > Expression
This is a structure that holds an expression converted to RPN.
Definition:
token.h:28
isc
Defines the logger used by the top-level component of kea-dhcp-ddns.
Definition:
agent_parser.cc:144
isc::dhcp::evaluateBool
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
isc::dhcp::evaluateString
std::string evaluateString(const Expression &expr, Pkt &pkt)
Definition:
evaluate.cc:28
token.h
src
lib
eval
evaluate.h
Generated on Fri Jul 10 2020 09:12:51 for Kea by
1.8.18