simple_parser4.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. // Copyright (C) 2016 Internet Systems Consortium, Inc. ("ISC")
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this
  5. // file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. #ifndef SIMPLE_PARSER4_H
  7. #define SIMPLE_PARSER4_H
  8. #include <cc/simple_parser.h>
  9. namespace isc {
  10. namespace dhcp {
  11. class SimpleParser4 : public isc::data::SimpleParser {
  12. public:
  13. /// @brief Sets all defaults for DHCPv4 configuration
  14. ///
  15. /// This method sets global, option data and option definitions defaults.
  16. ///
  17. /// @param global scope to be filled in with defaults.
  18. /// @return number of default values added
  19. static size_t setAllDefaults(isc::data::ElementPtr global);
  20. static const isc::data::SimpleDefaults OPTION4_DEF_DEFAULTS;
  21. static const isc::data::SimpleDefaults OPTION4_DEFAULTS;
  22. static const isc::data::SimpleDefaults GLOBAL4_DEFAULTS;
  23. static const isc::data::ParamsList INHERIT_GLOBAL_TO_SUBNET4;
  24. };
  25. };
  26. };
  27. #endif