Kea 2.7.5
|
Token that represents client class membership. More...
#include <token.h>
Public Member Functions | |
TokenMember (const std::string &client_class) | |
Constructor. | |
virtual unsigned | evaluate (Pkt &pkt, ValueStack &values) |
Token evaluation (check if client_class_ was added to packet client classes) | |
const ClientClass & | getClientClass () const |
Returns client class name. | |
Public Member Functions inherited from isc::dhcp::Token | |
virtual | ~Token () |
Virtual destructor. | |
virtual unsigned | getLabel () const |
Return the label of this token. | |
Protected Attributes | |
ClientClass | client_class_ |
The client class name. | |
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. | |
Token that represents client class membership.
For example "not member('foo')" is the complement of class foo
|
inline |
|
virtual |
Token evaluation (check if client_class_ was added to packet client classes)
pkt | the class name will be check from this packet's client classes |
values | true (if found) or false (if not found) will be pushed here |
Implements isc::dhcp::Token.
Definition at line 1149 of file token.cc.
References client_class_, isc::dhcp::EVAL_DBG_STACK, isc::dhcp::EVAL_DEBUG_MEMBER, isc::dhcp::eval_logger, and LOG_DEBUG.
|
inline |
Returns client class name.
This method is used in testing to determine if the parser had instantiated TokenMember with correct parameters.
Definition at line 1113 of file token.h.
References client_class_.
|
protected |
The client class name.
Definition at line 1119 of file token.h.
Referenced by evaluate(), and getClientClass().