48 LOGGER( testlog,
"test_param_array" )
54 LINFO( testlog,
"Creating param array" );
57 LINFO( testlog,
"Adding a value" );
60 LINFO( testlog,
"Adding an array" );
62 subnode.
add(
"five-hundred", 500 );
69 LINFO( testlog,
"Printing contents:" << array );
71 LINFO( testlog,
"After copy, should be full: " << subnode );
72 LINFO( testlog,
"After move, should be empty: " << subarray );
74 LINFO( testlog,
"Access:" );
76 LINFO( testlog, array[0]() );
77 LINFO( testlog, array[1][
"five-hundred"]() );
78 LINFO( testlog, array[2].get_value( 0,
"value doesn't exist" ) );
std::string get_value(unsigned a_index, 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)