48 LOGGER( testlog,
"test_param_node" )
54 LINFO( testlog,
"Creating param node" );
57 LINFO( testlog,
"Adding a value" );
58 node.
add(
"five", 5 );
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,
"After copy, should be full: " << subarray1 );
72 LINFO( testlog,
"After move, should be empty: " << subarray2 );
74 LINFO( testlog,
"Access:" );
76 LINFO( testlog, node[
"five"]() );
77 LINFO( testlog, node[
"subarray1"][0]() );
78 LINFO( testlog, node[
"subarray2"][0]() );
std::string get_value(const std::string &a_name, const std::string &a_default) const
Contains the logger class and macros, based on Kasper's KLogger class.
void push_back(const param &a_value)
bool add(const std::string &a_name, const param &a_value)