paramfile.h File Reference

#include <map>
#include <set>
#include <string>
#include "datatypes.h"
#include "string_utils.h"

Go to the source code of this file.

Classes

class  paramfile

Functions

paramfile getParamsFromCmdline (int argc, const char **argv, bool verbose=true)


Detailed Description

Class for parsing parameter files

Copyright (C) 2003-2014 Max-Planck-Society Authors: Martin Reinecke

Definition in file paramfile.h.


Function Documentation

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.


Generated on Thu Oct 8 14:48:51 2015 for LevelS C++ support library