Kea 2.6.0
isc::dhcp::TokenInt32ToText Class Reference

Token representing a 32 bit integer as a string. More...

#include <token.h>

+ Inheritance diagram for isc::dhcp::TokenInt32ToText:

Public Member Functions

 TokenInt32ToText ()
 Constructor (does nothing)
 
void evaluate (Pkt &pkt, ValueStack &values)
 Token evaluation (puts value of the string on the stack after decoding)
 
- 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 32 bit integer as a string.

This token holds the value of a 32 bit integer as a string, for instance 0xffffffff is '-1'

Definition at line 298 of file token.h.

Constructor & Destructor Documentation

◆ TokenInt32ToText()

isc::dhcp::TokenInt32ToText::TokenInt32ToText ( )
inline

Constructor (does nothing)

Definition at line 301 of file token.h.

Member Function Documentation

◆ evaluate()

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

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

Parameters
pkt(ignored)
values(represented 32 bit integer as a string will be pushed here)

Implements isc::dhcp::Token.

Definition at line 250 of file token.cc.

References isc::dhcp::EVAL_DBG_STACK, isc::dhcp::EVAL_DEBUG_INT32TOTEXT, isc::dhcp::eval_logger, isc::dhcp::Pkt::getLabel(), isc_throw, LOG_DEBUG, and isc::util::readUint32().

+ Here is the call graph for this function:

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