Kea  2.3.5-git
dbaccess_parser.h
Go to the documentation of this file.
1 // Copyright (C) 2012-2023 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 
52  void parse(std::string& access_string,
53  isc::data::ConstElementPtr database_config);
54 
64  return (values_);
65  }
66 protected:
67 
73  std::string getDbAccessString() const;
74 
75 private:
76 
78 };
79 
80 } // namespace db
81 } // namespace isc
82 
83 #endif // DBACCESS_PARSER_H
Parse Database Parameters.
const DatabaseConnection::ParameterMap & getDbAccessParameters() const
Get database access parameters.
DbAccessParser()
Constructor.
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:27
Defines the logger used by the top-level component of kea-lfc.
std::string getDbAccessString() const
Construct database access string.
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.