Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages | Examples

cmdoptns.h File Reference

Command line option parsing interface. More...

#include <cc++/string.h>

Go to the source code of this file.

Namespaces

namespace  ost

Functions

__EXPORT CommandOptionParse * makeCommandOptionParse (int argc, char **argv, char *comment, CommandOption *options=defaultCommandOptionList)
 makeCommandOptionParse will create an implementation of a CommandOptionParse object.

Variables

class __EXPORT CommandOption * defaultCommandOptionList
 This defines a linked list head pointer for all the command line options that use the default list.


Detailed Description

Command line option parsing interface.


Function Documentation

__EXPORT CommandOptionParse* makeCommandOptionParse int  argc,
char **  argv,
char *  comment,
CommandOption *  options = defaultCommandOptionList
 

makeCommandOptionParse will create an implementation of a CommandOptionParse object.

This particular implementation is a wrapper around getopt_long(3). That interface unfortunatly does not provide enough information to give the best error messages with malformed input. If the implementation changes there is a good chance that the binary interface will remain the same.

Examples:
cmdlineopt.cpp.


Variable Documentation

class class __EXPORT CommandOption* ost::defaultCommandOptionList
 

This defines a linked list head pointer for all the command line options that use the default list.

It will most likely be used in most cases without being explicitly referenced in application code. It is a default value of various method's parameters.


Generated on Wed Jul 5 08:05:27 2006 for GNU CommonC++ by  doxygen 1.4.1