![]() |
Kea 3.3.3
|
Base option configuration. More...
#include <flex_option.h>
Public Member Functions | |
| OptionConfig (uint16_t code, isc::dhcp::OptionDefinitionPtr def) | |
| Constructor. | |
| virtual | ~OptionConfig () |
| Destructor. | |
| Action | getAction () const |
| Return action. | |
| const isc::dhcp::ClientClass & | getClass () const |
| Get client class. | |
| uint16_t | getCode () const |
| Return option code. | |
| bool | getDestination () const |
| Get destination. | |
| const isc::dhcp::ExpressionPtr & | getExpr () const |
| Get match expression. | |
| isc::dhcp::OptionDefinitionPtr | getOptionDef () const |
| Return option definition. | |
| bool | getSource () const |
| Get source. | |
| const std::string & | getText () const |
| Get textual expression. | |
| void | setAction (Action action) |
| Set action. | |
| void | setClass (const isc::dhcp::ClientClass &class_name) |
| Set client class. | |
| void | setDestination (bool dest_is_response) |
| Set destination. | |
| void | setExpr (const isc::dhcp::ExpressionPtr &expr) |
| Set match expression. | |
| void | setSource (bool source_is_query) |
| Set source. | |
| void | setText (const std::string &text) |
| Set textual expression. | |
| isc::flex_option::FlexOptionImpl::OptionConfig::OptionConfig | ( | uint16_t | code, |
| isc::dhcp::OptionDefinitionPtr | def ) |
Constructor.
| code | the option code. |
| def | the option definition. |
Definition at line 107 of file flex_option.cc.
References isc::flex_option::FlexOptionImpl::NONE.
Referenced by isc::flex_option::FlexOptionImpl::SubOptionConfig::SubOptionConfig().
|
virtual |
Destructor.
Definition at line 113 of file flex_option.cc.
|
inline |
|
inline |
|
inline |
|
inline |
Get destination.
Definition at line 164 of file flex_option.h.
|
inline |
|
inline |
|
inline |
Get source.
Definition at line 149 of file flex_option.h.
|
inline |
|
inline |
|
inline |
Set client class.
| class_name | the client class aka guard name. |
Definition at line 127 of file flex_option.h.
|
inline |
Set destination.
| dest_is_response | true if the destination is the response, false otherwise. |
Definition at line 157 of file flex_option.h.
|
inline |
Set match expression.
| expr | the match expression. |
Definition at line 113 of file flex_option.h.
|
inline |
Set source.
| source_is_query | true if the source is the query, false otherwise. |
Definition at line 142 of file flex_option.h.
|
inline |
Set textual expression.
| text | the textual expression. |
Definition at line 99 of file flex_option.h.