Kea  2.3.2-git
bin/agent/simple_parser.h
Go to the documentation of this file.
1 // Copyright (C) 2017-2021 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 
7 #ifndef AGENT_SIMPLE_PARSER_H
8 #define AGENT_SIMPLE_PARSER_H
9 
10 #include <cc/simple_parser.h>
11 #include <agent/ca_cfg_mgr.h>
12 
13 namespace isc {
14 namespace agent {
15 
24 public:
31  static size_t setAllDefaults(const isc::data::ElementPtr& global);
32 
37  void checkTlsSetup(const isc::data::ConstElementPtr& config);
38 
46  void parse(const CtrlAgentCfgContextPtr& ctx,
47  const isc::data::ConstElementPtr& config,
48  bool check_only);
49 
50  // see simple_parser.cc for comments for those parameters
54 };
55 
56 }
57 }
58 #endif
static size_t setAllDefaults(const isc::data::ElementPtr &global)
Sets all defaults for Control Agent configuration.
std::vector< SimpleDefault > SimpleDefaults
This specifies all default values in a given scope (e.g. a subnet).
static const isc::data::SimpleDefaults SOCKET_DEFAULTS
This table defines default values for control sockets.
boost::shared_ptr< Element > ElementPtr
Definition: data.h:24
static const isc::data::SimpleDefaults AUTH_DEFAULTS
This table defines default values for authentication.
static const isc::data::SimpleDefaults AGENT_DEFAULTS
This table defines default values for global options.
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:27
Defines the logger used by the top-level component of kea-lfc.
void checkTlsSetup(const isc::data::ConstElementPtr &config)
Check TLS setup consistency i.e.
void parse(const CtrlAgentCfgContextPtr &ctx, const isc::data::ConstElementPtr &config, bool check_only)
Parses the control agent configuration.
boost::shared_ptr< CtrlAgentCfgContext > CtrlAgentCfgContextPtr
Pointer to a configuration context.
Definition: ca_cfg_mgr.h:21