Navigation

Operators and Keywords

Function List:

C++ API

prog_args Class Reference

#include <prog-args.h>

Collaboration diagram for prog_args:

List of all members.


Public Types

enum  option_argument { no_arg = 0, required_arg = 1, optional_arg = 2 }

Public Member Functions

 prog_args (int argc, char *const *argv, const char *s_opts, const long_options *l_opts=0)
 ~prog_args (void)
int getopt (void)
const char * optarg (void)
int optind (void)

Member Enumeration Documentation

Enumerator:
no_arg 
required_arg 
optional_arg 


Constructor & Destructor Documentation

prog_args::prog_args ( int  argc,
char *const argv,
const char *  s_opts,
const long_options l_opts = 0 
) [inline]

prog_args::~prog_args ( void   )  [inline]


Member Function Documentation

int prog_args::getopt ( void   ) 

const char * prog_args::optarg ( void   ) 

int prog_args::optind ( void   ) 


The documentation for this class was generated from the following files: