Kea 2.5.9
isc::dhcp::TokenLowerCase Class Reference

Token representing a constant lower case string. More...

#include <token.h>

+ Inheritance diagram for isc::dhcp::TokenLowerCase:

Public Member Functions

 TokenLowerCase ()
 Constructor (does nothing)
 
void evaluate (Pkt &pkt, ValueStack &values)
 Token evaluation (puts value of the evaluated string expression converted to lower case on the stack)
 
- Public Member Functions inherited from isc::dhcp::Token
virtual ~Token ()
 Virtual destructor.
 
virtual void evaluate (Pkt &pkt, ValueStack &values)=0
 This is a generic method for evaluating a packet.
 

Additional Inherited Members

- Static Public Member Functions inherited from isc::dhcp::Token
static bool toBool (std::string value)
 Coverts a (string) value to a boolean.
 

Detailed Description

Token representing a constant lower case string.

This token converts a string expression value of the corresponding lower case string value e.g. it evaluates to "lower" in expression lcase('lOwEr')

Definition at line 159 of file token.h.

Constructor & Destructor Documentation

◆ TokenLowerCase()

isc::dhcp::TokenLowerCase::TokenLowerCase ( )
inline

Constructor (does nothing)

Definition at line 162 of file token.h.

Member Function Documentation

◆ evaluate()

void TokenLowerCase::evaluate ( Pkt pkt,
ValueStack values 
)
virtual

Token evaluation (puts value of the evaluated string expression converted to lower case on the stack)

Parameters
pkt(ignored)
values(represented string will be pushed here)

Implements isc::dhcp::Token.

Definition at line 90 of file token.cc.

References isc::dhcp::EVAL_DBG_STACK, isc::dhcp::EVAL_DEBUG_LCASE, isc::dhcp::eval_logger, isc::dhcp::Pkt::getLabel(), isc_throw, and LOG_DEBUG.

+ Here is the call graph for this function:

The documentation for this class was generated from the following files: