48 LOGGER( testlog,
"test_param_node" )
54 LINFO( testlog,
"Creating param node" );
57 LINFO( testlog,
"Adding a value" );
60 LINFO( testlog,
"Adding an array" );
63 node.
add(
"subarray1", subarray1 );
67 node.
add(
"subarray2", std::move(subarray2) );
69 LINFO( testlog,
"Printing contents:" << node );
71 LINFO( testlog, subarray1 );
72 LINFO( testlog, subarray2 );
74 LINFO( testlog,
"Access:" );
76 LINFO( testlog, node[
"five"]() );
77 LINFO( testlog, node[
"subarray1"][0]() );
78 LINFO( testlog, node[
"subarray2"][0]() );
Contains the logger class and macros, based on Kasper's KLogger class.
std::string get_value(const std::string &a_name) const
void push_back(const param &a_value)
bool add(const std::string &a_name, const param &a_value)
Areates a copy of a_value.