IOR
Data Structures | Macros | Typedefs | Enumerations | Functions
option.h File Reference
#include <stdint.h>
Include dependency graph for option.h:
This graph shows which files directly or indirectly include this file:

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_helpoption_merge (option_help *a, option_help *b)
 
int option_parse_key_value (char *key, char *value, options_all_t *opt_all)
 

Macro Definition Documentation

◆ LAST_OPTION

#define LAST_OPTION   {0, 0, 0, (option_value_type) 0, 0, NULL}

Typedef Documentation

◆ aiori_mod_opt_t

Definition at line 26 of file option.h.

Enumeration Type Documentation

◆ option_value_type

Enumerator
OPTION_FLAG 
OPTION_OPTIONAL_ARGUMENT 
OPTION_REQUIRED_ARGUMENT 

Definition at line 10 of file option.h.

Function Documentation

◆ option_merge()

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().

Here is the caller graph for this function:

◆ option_parse()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ option_parse_key_value()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ option_parse_str()

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().

Here is the call graph for this function:

◆ option_print_current()

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().

Here is the call graph for this function:

◆ string_to_bytes()

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().

Here is the caller graph for this function: