Kea 2.7.6
cfgrpt.cc
Go to the documentation of this file.
1// Copyright (C) 2015-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#include <config.h>
8
9#include <sstream>
10
12
13namespace isc {
14namespace detail {
15
16// The config_report array ends with an empty line ("")
17// Each line before this final one starts with four semicolons (;;;;)
18// in order to be easy to extract from binaries.
19std::string
21 std::stringstream tmp;
22
23 size_t linenum = 0;
24 for (;;) {
25 const char* const line = config_report[linenum++];
26 if (line[0] == '\0')
27 break;
28 tmp << line + 4 << std::endl;
29 }
30 return (tmp.str());
31}
32
33}
34}
std::string getConfigReport()
Definition cfgrpt.cc:20
const char *const config_report[]
Defines the logger used by the top-level component of kea-lfc.