Kea  2.1.7-git
isc::dhcp::TokenIpAddressToText Class Reference

Token representing an IP address as a string. More...

#include <token.h>

+ Inheritance diagram for isc::dhcp::TokenIpAddressToText:

Public Member Functions

 TokenIpAddressToText ()
 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...
 

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 IP address as a string.

This token holds the value of an IP address as a string, for instance 10.0.0.1 is '10.0.0.1'

Definition at line 214 of file token.h.

Constructor & Destructor Documentation

◆ TokenIpAddressToText()

isc::dhcp::TokenIpAddressToText::TokenIpAddressToText ( )
inline

Constructor (does nothing)

Definition at line 217 of file token.h.

Member Function Documentation

◆ evaluate()

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

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

Parameters
pkt(ignored)
values(represented IP address as a string will be pushed here)

Implements isc::dhcp::Token.

Definition at line 112 of file token.cc.

References isc_throw.


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