![]() |
Kea 2.7.3
|
Token representing a 16 bit integer as a string. More...
#include <token.h>
Public Member Functions | |
TokenInt16ToText () | |
Constructor (does nothing) | |
virtual unsigned | evaluate (Pkt &pkt, ValueStack &values) |
Token evaluation (puts value of the string on the stack after decoding) | |
![]() | |
virtual | ~Token () |
Virtual destructor. | |
virtual unsigned | getLabel () const |
Return the label of this token. | |
Additional Inherited Members | |
![]() | |
static bool | toBool (std::string value) |
Coverts a (string) value to a boolean. | |
Token representing a 16 bit integer as a string.
This token holds the value of a 16 bit integer as a string, for instance 0xffff is '-1'
|
inline |
|
virtual |
Token evaluation (puts value of the string on the stack after decoding)
pkt | (ignored) |
values | (represented 16 bit integer as a string will be pushed here) |
Implements isc::dhcp::Token.
Definition at line 233 of file token.cc.
References isc::dhcp::EVAL_DBG_STACK, isc::dhcp::EVAL_DEBUG_INT16TOTEXT, isc::dhcp::eval_logger, isc_throw, LOG_DEBUG, and isc::util::readUint16().