ug4
parameter_parsing.cpp File Reference
#include <cstring>
#include <cstdlib>
#include "parameter_parsing.h"

Namespaces

 ug
 the ug namespace
 

Functions

bool ug::FindParam (const char *param, int argc, const char *const *argv)
 
int ug::GetParamIndex (const char *param, int argc, const char *const *argv)
 
double ug::ParamToDouble (const char *param, int argc, const char *const *argv, double dDefault)
 
bool ug::ParamToDouble (double &dOut, const char *param, int argc, const char *const *argv)
 
int ug::ParamToInt (const char *param, int argc, const char *const *argv, int iDefault)
 
bool ug::ParamToInt (int &iOut, const char *param, int argc, const char *const *argv)
 
bool ug::ParamToString (const char **strOut, const char *param, int argc, const char *const *argv)