Go to the source code of this file.
Functions | |
| double | val (string s) |
| Converts string to float. | |
| string | prompt (string filename, string variable, string def_val="0.0", int p=0) |
Variables | |
| const char | STD_INPUT [] = "" |
| const char | STD_INPUT_FILE [] = "<stdin>" |
Functions to parse user input of parameters in a way safe to parallel programs
Licensed under GPL2 license Read attached license in file mdp_license.pdf This file cannot be distributed without file mdp_license.pdf
| string prompt | ( | string | filename, | |
| string | variable, | |||
| string | def_val = "0.0", |
|||
| int | p = 0 | |||
| ) |
Try prompt("<stdin>","VALUE","4.0") It will prompt the user for variable VALUE and take 4.0 as default
| double val | ( | string | s | ) |
Converts string to float.
| const char STD_INPUT[] = "" |
| const char STD_INPUT_FILE[] = "<stdin>" |
1.6.1