Go to the source code of this file.
Namespaces | |
generate_nerian_config_cpp | |
Variables | |
string | generate_nerian_config_cpp.CODE_TEMPLATE |
generate_nerian_config_cpp.infile = sys.stdin | |
generate_nerian_config_cpp.outfile = sys.stdout | |
string | generate_nerian_config_cpp.paramchange = '\n'.join(TEMPLATE_PARAMETER_CHANGE.format(varname=vt[0]) for vt in varnames_and_types) |
string | generate_nerian_config_cpp.setdefaults = '\n'.join(TEMPLATE_SETDEFAULTS.format(varname=vt[0], typ=vt[1]) for vt in varnames_and_types if vt[0] != 'reboot') |
string | generate_nerian_config_cpp.setparam = '\n'.join(TEMPLATE_SETPARAM.format(varname=vt[0], typ=vt[1]) for vt in varnames_and_types if vt[0] != 'reboot') |
string | generate_nerian_config_cpp.TEMPLATE_PARAMETER_CHANGE |
string | generate_nerian_config_cpp.TEMPLATE_SETDEFAULTS |
string | generate_nerian_config_cpp.TEMPLATE_SETPARAM = ''' getNH().setParam(node_name + "/{varname}", cfg.get("{varname}").getCurrent<{typ}>());''' |
generate_nerian_config_cpp.typ = line.split(',')[1].strip().split('_')[0] | |
generate_nerian_config_cpp.varname = line.split('"')[1] | |
list | generate_nerian_config_cpp.varnames_and_types = [] |