Kea  2.3.2-git
cfgrpt.cc
Go to the documentation of this file.
1 // Copyright (C) 2015 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 <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
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 }
Defines the logger used by the top-level component of kea-lfc.
const char *const config_report[]
std::string getConfigReport()
Definition: cfgrpt.cc:20