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
11
#include <
process/cfgrpt/config_report.h
>
12
13
namespace
isc
{
14
namespace
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.
19
std::string
20
getConfigReport
() {
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
}
config_report.h
isc::detail::getConfigReport
std::string getConfigReport()
Definition
cfgrpt.cc:20
isc::detail::config_report
const char *const config_report[]
isc
Defines the logger used by the top-level component of kea-lfc.
Definition
agent_parser.cc:148
src
lib
process
cfgrpt
cfgrpt.cc
Generated on Fri Dec 20 2024 08:29:25 for Kea by
1.12.0