Kea  1.5.0
bin/agent/simple_parser.h
Go to the documentation of this file.
1 // Copyright (C) 2017 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 
40  void parse(const CtrlAgentCfgContextPtr& ctx,
41  const isc::data::ConstElementPtr& config,
42  bool check_only);
43 
44  // see simple_parser.cc for comments for those parameters
47 };
48 
49 };
50 };
51 #endif
isc::agent::AgentSimpleParser::parse
void parse(const CtrlAgentCfgContextPtr &ctx, const isc::data::ConstElementPtr &config, bool check_only)
Parses the control agent configuration.
Definition: bin/agent/simple_parser.cc:83
isc::data::SimpleDefaults
std::vector< SimpleDefault > SimpleDefaults
This specifies all default values in a given scope (e.g. a subnet)
Definition: lib/cc/simple_parser.h:31
ca_cfg_mgr.h
isc
Defines the logger used by the top-level component of kea-dhcp-ddns.
Definition: agent_parser.cc:144
isc::data::SimpleParser
A simple parser.
Definition: lib/cc/simple_parser.h:60
isc::agent::AgentSimpleParser::SOCKET_DEFAULTS
static const isc::data::SimpleDefaults SOCKET_DEFAULTS
This table defines default values for control sockets.
Definition: bin/agent/simple_parser.h:46
isc::agent::AgentSimpleParser::AGENT_DEFAULTS
static const isc::data::SimpleDefaults AGENT_DEFAULTS
This table defines default values for global options.
Definition: bin/agent/simple_parser.h:45
isc::agent::CtrlAgentCfgContextPtr
boost::shared_ptr< CtrlAgentCfgContext > CtrlAgentCfgContextPtr
Pointer to a configuration context.
Definition: ca_cfg_mgr.h:20
isc::agent::AgentSimpleParser
Definition: bin/agent/simple_parser.h:23
isc::data::ElementPtr
boost::shared_ptr< Element > ElementPtr
Definition: data.h:20
isc::data::ConstElementPtr
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:23
isc::agent::AgentSimpleParser::setAllDefaults
static size_t setAllDefaults(const isc::data::ElementPtr &global)
Sets all defaults for Control Agent configuration.
Definition: bin/agent/simple_parser.cc:54
simple_parser.h