IOR
|
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | option_help |
struct | option_module |
struct | options_all_t |
Macros | |
#define | LAST_OPTION {0, 0, 0, (option_value_type) 0, 0, NULL} |
Typedefs | |
typedef struct aiori_mod_opt_t | aiori_mod_opt_t |
Enumerations | |
enum | option_value_type { OPTION_FLAG, OPTION_OPTIONAL_ARGUMENT, OPTION_REQUIRED_ARGUMENT } |
Functions | |
int64_t | string_to_bytes (char *size_str) |
void | option_print_current (option_help *args) |
int | option_parse (int argc, char **argv, options_all_t *args) |
int | option_parse_str (char *val, options_all_t *opt_all) |
option_help * | option_merge (option_help *a, option_help *b) |
int | option_parse_key_value (char *key, char *value, options_all_t *opt_all) |
#define LAST_OPTION {0, 0, 0, (option_value_type) 0, 0, NULL} |
Definition at line 39 of file option.h.
Referenced by aio_options(), createGlobalOptions(), DFS_options(), DUMMY_options(), HDF5_options(), HDFS_options(), IME_Options(), mdtest_run(), MMAP_options(), MPIIO_options(), NCMPI_options(), POSIX_options(), and S3_options().
typedef struct aiori_mod_opt_t aiori_mod_opt_t |
enum option_value_type |
option_help* option_merge | ( | option_help * | a, |
option_help * | b | ||
) |
Definition at line 12 of file option.c.
References option_help::type.
Referenced by aio_options().
int option_parse | ( | int | argc, |
char ** | argv, | ||
options_all_t * | args | ||
) |
Definition at line 414 of file option.c.
References options_all_t::module_count, options_all_t::modules, NULL, o, option_parse_token(), option_print_help(), OPTION_REQUIRED_ARGUMENT, option_module::options, and option_module::prefix.
Referenced by md_workbench_run(), mdtest_run(), and ParseCommandLine().
int option_parse_key_value | ( | char * | key, |
char * | value, | ||
options_all_t * | opt_all | ||
) |
Definition at line 402 of file option.c.
References NULL, and option_parse_token().
Referenced by DecodeDirective().
int option_parse_str | ( | char * | val, |
options_all_t * | opt_all | ||
) |
Definition at line 392 of file option.c.
References NULL, and option_parse_token().
void option_print_current | ( | option_help * | args | ) |
Definition at line 242 of file option.c.
References OPTION_FLAG, OPTION_OPTIONAL_ARGUMENT, OPTION_REQUIRED_ARGUMENT, and print_current_option_section().
int64_t string_to_bytes | ( | char * | size_str | ) |
Definition at line 30 of file option.c.
References rc.
Referenced by DecodeDirective(), NodeMemoryStringToBytes(), and option_parse_token().