Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

dsGetopt Class Reference

#include <dsGetopt.h>

List of all members.

Public Methods

 dsGetopt (int argc, char **argv)
virtual int next (char *optstr)
char * optarg ()
int optind ()


Detailed Description

This class is designed to provide portable, C++ version of getopt Now it operates only in posix standard "REQUIRE_ORDER" mode, i. e. first non-option argument stops option processing. Argv[0] ignored.


Constructor & Destructor Documentation

dsGetopt::dsGetopt int    argc,
char **    argv
 

Construct an object, set argc and argv for future processing

Parameters:
argc argument count
argv pointer to argument array
Exceptions:
dsGetoptException if no arguments given


Member Function Documentation

int dsGetopt::next char *    optstr [virtual]
 

Return next option

Parameters:
optstr getopt option string
Exceptions:
dsGetoptException 

char* dsGetopt::optarg   [inline]
 

Returns:
argument of last option

int dsGetopt::optind   [inline]
 

Returns:
iposition of last option


The documentation for this class was generated from the following files:
Generated on Mon May 16 18:26:59 2005 for libdms4 by doxygen1.3-rc2