Variables | |
string | CODE_TEMPLATE |
infile = sys.stdin | |
outfile = sys.stdout | |
string | paramchange = '\n'.join(TEMPLATE_PARAMETER_CHANGE.format(varname=vt[0]) for vt in varnames_and_types) |
string | setdefaults = '\n'.join(TEMPLATE_SETDEFAULTS.format(varname=vt[0], typ=vt[1]) for vt in varnames_and_types if vt[0] != 'reboot') |
string | setparam = '\n'.join(TEMPLATE_SETPARAM.format(varname=vt[0], typ=vt[1]) for vt in varnames_and_types if vt[0] != 'reboot') |
string | TEMPLATE_PARAMETER_CHANGE |
string | TEMPLATE_SETDEFAULTS |
string | TEMPLATE_SETPARAM = ''' getNH().setParam(node_name + "/{varname}", cfg.get("{varname}").getCurrent<{typ}>());''' |
typ = line.split(',')[1].strip().split('_')[0] | |
varname = line.split('"')[1] | |
list | varnames_and_types = [] |
string generate_nerian_config_cpp.CODE_TEMPLATE |
Definition at line 24 of file generate_nerian_config_cpp.py.
generate_nerian_config_cpp.infile = sys.stdin |
Definition at line 91 of file generate_nerian_config_cpp.py.
generate_nerian_config_cpp.outfile = sys.stdout |
Definition at line 92 of file generate_nerian_config_cpp.py.
string generate_nerian_config_cpp.paramchange = '\n'.join(TEMPLATE_PARAMETER_CHANGE.format(varname=vt[0]) for vt in varnames_and_types) |
Definition at line 106 of file generate_nerian_config_cpp.py.
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') |
Definition at line 108 of file generate_nerian_config_cpp.py.
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') |
Definition at line 107 of file generate_nerian_config_cpp.py.
string generate_nerian_config_cpp.TEMPLATE_PARAMETER_CHANGE |
Definition at line 76 of file generate_nerian_config_cpp.py.
string generate_nerian_config_cpp.TEMPLATE_SETDEFAULTS |
Definition at line 83 of file generate_nerian_config_cpp.py.
string generate_nerian_config_cpp.TEMPLATE_SETPARAM = ''' getNH().setParam(node_name + "/{varname}", cfg.get("{varname}").getCurrent<{typ}>());''' |
Definition at line 81 of file generate_nerian_config_cpp.py.
generate_nerian_config_cpp.typ = line.split(',')[1].strip().split('_')[0] |
Definition at line 102 of file generate_nerian_config_cpp.py.
generate_nerian_config_cpp.varname = line.split('"')[1] |
Definition at line 101 of file generate_nerian_config_cpp.py.
list generate_nerian_config_cpp.varnames_and_types = [] |
Definition at line 98 of file generate_nerian_config_cpp.py.