Kea 2.7.5
isc::dhcp::TokenUpperCase Class Reference

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

#include <token.h>

+ Inheritance diagram for isc::dhcp::TokenUpperCase:

Public Member Functions

 TokenUpperCase ()
 Constructor (does nothing)
 
virtual unsigned evaluate (Pkt &pkt, ValueStack &values)
 Token evaluation (puts value of the evaluated string expression converted to upper case on the stack)
 
- Public Member Functions inherited from isc::dhcp::Token
virtual ~Token ()
 Virtual destructor.
 
virtual unsigned getLabel () const
 Return the label of this token.
 

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 upper case string.

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

Definition at line 195 of file token.h.

Constructor & Destructor Documentation

◆ TokenUpperCase()

isc::dhcp::TokenUpperCase::TokenUpperCase ( )
inline

Constructor (does nothing)

Definition at line 198 of file token.h.

Member Function Documentation

◆ evaluate()

unsigned TokenUpperCase::evaluate ( Pkt & pkt,
ValueStack & values )
virtual

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

Parameters
pkt(ignored)
values(represented string will be pushed here)
Returns
0 which means evaluate next token if any.

Implements isc::dhcp::Token.

Definition at line 115 of file token.cc.

References isc::dhcp::EVAL_DBG_STACK, isc::dhcp::EVAL_DEBUG_UCASE, isc::dhcp::eval_logger, isc_throw, and LOG_DEBUG.


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