Kea 2.5.8
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>
14
15#include <string>
16
17namespace isc {
18namespace db {
19
26public:
29
32 {}
33
52 void parse(std::string& access_string,
53 isc::data::ConstElementPtr database_config);
54
64 return (values_);
65 }
66protected:
67
73 std::string getDbAccessString() const;
74
75private:
76
78};
79
80} // namespace db
81} // namespace isc
82
83#endif // DBACCESS_PARSER_H
std::map< std::string, std::string > ParameterMap
Database configuration parameter map.
Parse Database Parameters.
void parse(std::string &access_string, isc::data::ConstElementPtr database_config)
Parse configuration value.
virtual ~DbAccessParser()
The destructor.
DbAccessParser()
Constructor.
std::string getDbAccessString() const
Construct database access string.
const DatabaseConnection::ParameterMap & getDbAccessParameters() const
Get database access parameters.
boost::shared_ptr< const Element > ConstElementPtr
Definition: data.h:29
Defines the logger used by the top-level component of kea-lfc.