28#ifndef _OptionParser_h_
29#define _OptionParser_h_
39 #pragma warning(disable : 4251)
73 int (*type_conv)(
const char *from,
void *to);
137 vector<struct _OptRec *> _optTbl;
139 _OptRec_T *_get_option(
const char *name);
140 int _parse_options(
const Option_T *opts);
int AppendOptions(const OptDescRec_T *odr)
Append a list of option descriptions.
int ParseOptions(int *argc, char **argv, Option_T *opts)
Parse a command line argument vector.
void PrintOptionHelp(FILE *fp, int linelimit=80, bool docopyright=true)
int ParseOptions(const EnvOpt_T *envv, Option_T *opts)
friend bool opt_cmp(OptionParser::_OptRec_T *a, OptionParser::_OptRec_T *b)
void RemoveOptions(std::vector< string > options)
COMMON_API int CvtToCPPStr(const char *from, void *to)
COMMON_API int CvtToIntRange(const char *from, void *to)
COMMON_API int CvtToFloatVec(const char *from, void *to)
COMMON_API int CvtToChar(const char *from, void *to)
COMMON_API int CvtToStrVec(const char *from, void *to)
COMMON_API int CvtToDoubleVec(const char *from, void *to)
COMMON_API int CvtToFloat(const char *from, void *to)
COMMON_API int CvtToDimension2D(const char *from, void *to)
COMMON_API int CvtToIntVec(const char *from, void *to)
COMMON_API int CvtToDimension3D(const char *from, void *to)
COMMON_API int CvtToString(const char *from, void *to)
COMMON_API int CvtToInt(const char *from, void *to)
COMMON_API int CvtToBoolean(const char *from, void *to)
COMMON_API int CvtToSize_tVec(const char *from, void *to)
COMMON_API int CvtToDouble(const char *from, void *to)
An option description record (odr)
const char * default_value