LevelS C++ support library  3.83
Classes | Functions
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

◆ getParamsFromCmdline()

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 Wed Nov 13 2024 12:18:16 for LevelS C++ support library