Kea: isc::dhcp::TokenUInt8ToText Class Reference

| Kea 2.2.0

Public Member Functions | List of all members
isc::dhcp::TokenUInt8ToText Class Reference

Token representing an 8 bit unsigned integer as a string. More...

`#include <token.h>`

Inheritance diagram for isc::dhcp::TokenUInt8ToText:
[legend]

## Public Member Functions
| TokenUInt8ToText ()
| Constructor (does nothing) More...
void | evaluate (Pkt &pkt, ValueStack &values)
| Token evaluation (puts value of the string on the stack after decoding) More...
Public Member Functions inherited from isc::dhcp::Token
virtual | ~Token ()
| Virtual destructor. More...
virtual void | evaluate (Pkt &pkt, ValueStack &values)=0
| This is a generic method for evaluating a packet. More...

## 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. More...

## Detailed Description

Token representing an 8 bit unsigned integer as a string.

This token holds the value of an 8 bit unsigned integer as a string, for instance 0xff is '255'

Definition at line 285 of file token.h.

## Constructor & Destructor Documentation

## ◆ TokenUInt8ToText()

isc::dhcp::TokenUInt8ToText::TokenUInt8ToText | ( |  | ) |
| inline

Constructor (does nothing)

Definition at line 288 of file token.h.

## Member Function Documentation

## ◆ evaluate()

void TokenUInt8ToText::evaluate | ( | Pkt & | pkt,
|  | ValueStack & | values
| ) |  |
| virtual

Token evaluation (puts value of the string on the stack after decoding)

Parameters

  pkt | (ignored)
  values | (represented 8 bit unsigned integer as a string will be pushed here)

Implements isc::dhcp::Token.

Definition at line 237 of file token.cc.

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

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

- token.h
- token.cc