Belle II Software
prerelease-10-00-00a
KeyValuePrinter.cc
1
/**************************************************************************
2
* basf2 (Belle II Analysis Software Framework) *
3
* Author: The Belle II Collaboration *
4
* *
5
* See git log for contributors and copyright holders. *
6
* This file is licensed under LGPL-3.0, see LICENSE.md. *
7
**************************************************************************/
8
9
#include <framework/utilities/KeyValuePrinter.h>
10
#include <boost/property_tree/json_parser.hpp>
11
12
using namespace
Belle2
;
13
14
std::string
KeyValuePrinter::escape
(
const
std::string& value)
const
15
{
16
using namespace
boost::property_tree::json_parser;
17
18
if
(
m_json
)
19
return
"\""
+ create_escapes(value) +
"\""
;
20
else
21
return
value;
22
}
Belle2::KeyValuePrinter::escape
std::string escape(const std::string &value) const
escape string.
Definition
KeyValuePrinter.cc:14
Belle2::KeyValuePrinter::m_json
bool m_json
create JSON output?
Definition
KeyValuePrinter.h:94
Belle2
Abstract base class for different kinds of events.
Definition
MillepedeAlgorithm.h:17
framework
utilities
src
KeyValuePrinter.cc
Generated on Wed Jul 2 2025 03:31:03 for Belle II Software by
1.13.2