123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- #ifndef _CMDLINE_H_
- #define _CMDLINE_H_
- #warning "CmdLine is deprecated ! Please use baselib/Config"
- #ifdef __cplusplus
- #define DEFAULT_ARGUMENT_VALUE(x) = (x)
- extern "C" {
- #else
- #define DEFAULT_ARGUMENT_VALUE(x)
- #endif
- struct CmdLineOption {
-
- const char *name;
-
- const char *description;
-
- const char *default_value;
-
- const char *parameters;
-
- void *storage;
- };
- int parse_arguments(int argc, const char **argv,
- const struct CmdLineOption *options,
- char **moreParameters DEFAULT_ARGUMENT_VALUE(0),
- const char *helpText DEFAULT_ARGUMENT_VALUE(0));
- int print_help ( const struct CmdLineOption *options, const char *helpText DEFAULT_ARGUMENT_VALUE(0) );
- #ifdef __cplusplus
- }
- #endif
- #undef DEFAULT_ARGUMENT_VALUE
- #endif
|