diff options
author | Marcin Siodelski <marcin@isc.org> | 2015-11-23 22:01:47 +0100 |
---|---|---|
committer | Marcin Siodelski <marcin@isc.org> | 2015-11-23 22:01:47 +0100 |
commit | 77e78881aa8da9542e5a01c9715702610e2bd2dc (patch) | |
tree | 77c377ce1f55f890a71669b9839374b39cdb46a4 /src/lib/eval/eval_context.h | |
parent | [4204] OptionDef config parser updates runtime definitions in libdhcp. (diff) | |
download | kea-77e78881aa8da9542e5a01c9715702610e2bd2dc.tar.xz kea-77e78881aa8da9542e5a01c9715702610e2bd2dc.zip |
[4204] Eval parser allows for referencing option by its name.
Diffstat (limited to 'src/lib/eval/eval_context.h')
-rw-r--r-- | src/lib/eval/eval_context.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/lib/eval/eval_context.h b/src/lib/eval/eval_context.h index 6b28e2b161..1e7b9b9e30 100644 --- a/src/lib/eval/eval_context.h +++ b/src/lib/eval/eval_context.h @@ -42,7 +42,11 @@ class EvalContext { public: /// @brief Default constructor. - EvalContext(); + /// + /// @param option_universe Option universe: DHCPv4 or DHCPv6. This is used + /// by the parser to determine which option definitions set should be used + /// to map option names to option codes. + EvalContext(const Option::Universe& option_universe); /// @brief destructor virtual ~EvalContext(); @@ -55,7 +59,7 @@ public: /// @brief Method called after the last tokens are scanned from a string. void scanStringEnd(); - + /// @brief Run the parser on the string specified. /// /// @param str string to be written @@ -87,7 +91,12 @@ public: /// @brief Flag determing parser debugging. bool trace_parsing_; - + + /// @brief Option universe: DHCPv4 or DHCPv6. + /// + /// This is used by the parser to determine which option definitions + /// set should be used to map option name to option code. + Option::Universe option_universe_; }; }; // end of isc::eval namespace |