33 #ifndef __H__UG__parameter_parsing__
34 #define __H__UG__parameter_parsing__
53 UG_API bool FindParam(
const char* param,
int argc,
const char *
const * argv);
60 UG_API bool ParamToInt(
int& iOut,
const char* param,
int argc,
const char *
const * argv);
67 UG_API bool ParamToDouble(
double &dOut,
const char *param,
int argc,
const char *
const * argv);
76 UG_API bool ParamToString(
const char** strOut,
const char* param,
int argc,
const char *
const * argv);
80 UG_API double ParamToDouble(
const char *param,
int argc,
const char *
const * argv,
double dDefault);
81 UG_API int ParamToInt(
const char *param,
int argc,
const char *
const * argv,
int iDefault);
bool FindParam(const char *param, int argc, const char *const *argv)
Definition: parameter_parsing.cpp:50
bool ParamToDouble(double &dOut, const char *param, int argc, const char *const *argv)
Definition: parameter_parsing.cpp:66
bool ParamToInt(int &iOut, const char *param, int argc, const char *const *argv)
Definition: parameter_parsing.cpp:56
int GetParamIndex(const char *param, int argc, const char *const *argv)
Definition: parameter_parsing.cpp:40
bool ParamToString(const char **strOut, const char *param, int argc, const char *const *argv)
Definition: parameter_parsing.cpp:78
#define UG_API
Definition: ug_config.h:65