Kea  1.9.9-git
dbaccess_parser.h
Go to the documentation of this file.
1 // Copyright (C) 2012-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 DBACCESS_PARSER_H
8 #define DBACCESS_PARSER_H
9 
10 #include <cc/data.h>
11 #include <cc/simple_parser.h>
13 #include <exceptions/exceptions.h>
14 
15 #include <string>
16 
17 namespace isc {
18 namespace db {
19 
26 public:
29 
31  virtual ~DbAccessParser()
32  {}
33 
53  void parse(std::string& access_string,
54  isc::data::ConstElementPtr database_config);
55 
65  return (values_);
66  }
67 protected:
68 
74  std::string getDbAccessString() const;
75 
76 private:
77 
79 };
80 
81 } // namespace db
82 } // namespace isc
83 
84 #endif // DBACCESS_PARSER_H
Parse Database Parameters.
std::string getDbAccessString() const
Construct database access string.
DbAccessParser()
Constructor.
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:23
Defines the logger used by the top-level component of kea-dhcp-ddns.
const DatabaseConnection::ParameterMap & getDbAccessParameters() const
Get database access parameters.
virtual ~DbAccessParser()
The destructor.
std::map< std::string, std::string > ParameterMap
Database configuration parameter map.
void parse(std::string &access_string, isc::data::ConstElementPtr database_config)
Parse configuration value.