PPL Logo

gk_option Struct Reference

The structure that stores the information about the command-line options. More...

#include <gk_getopt.h>

Collaboration diagram for gk_option:

Collaboration graph
[legend]

Data Fields

char * name
int has_arg
intflag
int val

Detailed Description

The structure that stores the information about the command-line options.

This structure describes a single long option name for the sake of gk_getopt_long(). The argument long_options must be an array of these structures, one for each long option. Terminate the array with an element containing all zeros.

Definition at line 30 of file gk_getopt.h.


Field Documentation

This field is the name of the option.

Definition at line 31 of file gk_getopt.h.

Referenced by gk_getopt_internal().

This field says whether the option takes an argument. It is an integer, and there are three legitimate values: no_argument, required_argument and optional_argument.

Definition at line 32 of file gk_getopt.h.

Referenced by gk_getopt_internal().

See the discussion on gk_option::val

Definition at line 36 of file gk_getopt.h.

Referenced by gk_getopt_internal().

These fields control how to report or act on the option when it occurs.

If flag is a null pointer, then the val is a value which identifies this option. Often these values are chosen to uniquely identify particular long options.

If flag is not a null pointer, it should be the address of an int variable which is the flag for this option. The value in val is the value to store in the flag to indicate that the option was seen.

Definition at line 37 of file gk_getopt.h.

Referenced by gk_getopt_internal(), reorder_centroid(), test_dkvsort(), test_fkvsort(), test_idxkvsort(), test_ikvsort(), and test_skvsort().


The documentation for this struct was generated from the following file:

Generated on Mon Sep 21 08:25:11 2020 for Charm++ by  doxygen 1.5.5