16 LOGGER( slog,
"test_yaml" );
18 int main(
int argc,
char** argv )
22 LERROR( slog,
"Please provide a YAML file to read" );
29 if( ! t_param_location )
31 LERROR( slog,
"File did not read!" );
35 LINFO( slog,
"File read and parsed: \n" << *t_param_location );
39 bool t_did_write_file = t_output.
write_file( *t_param_location,
"test_output.yaml" );
41 if( ! t_did_write_file )
43 LERROR( slog,
"File did not write!" );
47 LINFO( slog,
"File written successfully (test_output.yaml)" );
LOGGER(mtlog, "authentication")
virtual bool write_file(const param &a_to_write, const std::string &a_filename, const param_node &a_options=param_node())
Contains the logger class and macros, based on Kasper's KLogger class.
std::unique_ptr< param > param_ptr_t
int main(int argc, char **argv)