/Users/mdipierro/fermiqcd/development/Libraries/mdp_prompt.h File Reference

Go to the source code of this file.


double val (string s)
 Converts string to float.
string prompt (string filename, string variable, string def_val="0.0", int p=0)


const char STD_INPUT [] = ""
const char STD_INPUT_FILE [] = "<stdin>"

Detailed Description

Massimo Di Pierro <mdipierro@cs.depaul.edu>

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

Function Documentation

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.

Variable Documentation

const char STD_INPUT[] = ""
const char STD_INPUT_FILE[] = "<stdin>"
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines

Generated on Wed Dec 23 14:03:14 2009 for fermiqcd by  doxygen 1.6.1