Panda3D
|
The implementation within this file of the various getopt() functions. More...
Classes | |
class | Option |
class | Param |
Public Member Functions | |
PandaGetopt (int argc, char *const argv[], const char *optstring, const struct option *longopts, bool allow_one_hyphen_long) | |
void | permute (int argc, char **mutable_argv) |
Permutes the argv array so that the non-option arguments are at the end of the list (if POSIXLY_CORRECT is not set), as the gnu implementation does. | |
int | process (int opterr, int *longindex, char *&optarg, int &optind, int &optopt) |
Can be called repeatedly to extract out the option arguments scanned from the argv list, one at a time. |
The implementation within this file of the various getopt() functions.
This class is not visible outside of this file; instead, the interface is via the getopt() functions themselves.
Definition at line 40 of file panda_getopt_impl.cxx.
void PandaGetopt::permute | ( | int | argc, |
char ** | mutable_argv | ||
) |
Permutes the argv array so that the non-option arguments are at the end of the list (if POSIXLY_CORRECT is not set), as the gnu implementation does.
Definition at line 193 of file panda_getopt_impl.cxx.
int PandaGetopt::process | ( | int | opterr, |
int * | longindex, | ||
char *& | optarg, | ||
int & | optind, | ||
int & | optopt | ||
) |
Can be called repeatedly to extract out the option arguments scanned from the argv list, one at a time.
Sets *longindex, optarg, optind, optopt. Returns EOF when finished.
Definition at line 222 of file panda_getopt_impl.cxx.