Kea 2.7.3
isc::dhcp::TokenLabel Class Reference

Token label i.e. More...

#include <token.h>

+ Inheritance diagram for isc::dhcp::TokenLabel:

Public Member Functions

 TokenLabel (const unsigned label)
 Constructor.
 
virtual unsigned evaluate (Pkt &pkt, ValueStack &values)
 Does nothing.
 
virtual unsigned getLabel () const
 Returns label.
 
- Public Member Functions inherited from isc::dhcp::Token
virtual ~Token ()
 Virtual destructor.
 

Protected Attributes

unsigned label_
 

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 label i.e.

target of branches.

For instance label(123): at evaluation when a branch returns 123 remaining expression is scanned until label(123) is reached.

Definition at line 1421 of file token.h.

Constructor & Destructor Documentation

◆ TokenLabel()

TokenLabel::TokenLabel ( const unsigned label)

Constructor.

Parameters
labelthe label (unsigned > 0)
Exceptions
EvalParseErrorwhen label is 0

Definition at line 1509 of file token.cc.

References isc_throw.

Member Function Documentation

◆ evaluate()

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

Does nothing.

Parameters
pkt(unused)
values- stack of values (unused)
Returns
0 which means evaluate next token if any.

Implements isc::dhcp::Token.

Definition at line 1516 of file token.cc.

◆ getLabel()

virtual unsigned isc::dhcp::TokenLabel::getLabel ( ) const
inlinevirtual

Returns label.

Returns
the label

Reimplemented from isc::dhcp::Token.

Definition at line 1432 of file token.h.

References label_.

Member Data Documentation

◆ label_

unsigned isc::dhcp::TokenLabel::label_
protected

Definition at line 1444 of file token.h.

Referenced by getLabel().


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