LevelS C++ support library
3.83
|
Go to the source code of this file.
Classes | |
class | paramfile |
Functions | |
paramfile | getParamsFromCmdline (int argc, const char **argv, bool verbose=true) |
Class for parsing parameter files
Copyright (C) 2003-2014 Max-Planck-Society Authors: Martin Reinecke
Definition in file paramfile.h.
paramfile getParamsFromCmdline | ( | int | argc, |
const char ** | argv, | ||
bool | verbose = true |
||
) |
Tries to build a paramfile object from the contents of a command line. If argc==2 and argv[1] does not contain the character "=", the function tries to input parameters from the file argv[1]. Otherwise the function interprets each command line argument as a "key=value" statement.
Definition at line 155 of file paramfile.cc.