KXQTS::ProgramArguments< T > Class Template Reference

Allows reading program arguments in a practical way. More...

#include <ProgramArguments.h>

List of all members.

Public Member Functions

void addArgument (const ProgramArgument< T > &argument)
void addStandardHelp ()
void addStandardVersion ()
QList< ProgramArgument< T > > arguments () const
int count (const T argument) const
bool isSet (const T argument) const
void parseCommandline ()
 ProgramArguments (int argc, char *argv[])


Detailed Description

template<typename T>
class KXQTS::ProgramArguments< T >

Allows reading program arguments in a practical way.

See also:
ProgramArgument
Author:
Frans Englich <frans.englich@telia.com>
Examples:

Example-ProgramArguments.cpp.

Definition at line 32 of file ProgramArguments.h.


Member Function Documentation

template<typename T>
int KXQTS::ProgramArguments< T >::count ( const T  argument  )  const [inline]

If it is of interest to determine whether an argument is set or not, use isSet(), which is slightly faster than this function.

Definition at line 72 of file ProgramArguments.h.

template<typename T>
bool KXQTS::ProgramArguments< T >::isSet ( const T  argument  )  const [inline]

Determines whether the argument identified by argument is set by the user.

This returns true for all kind of arguments, ProgramArgument::Switch as well as ProgramArgument::Parameter.

Definition at line 63 of file ProgramArguments.h.


The documentation for this class was generated from the following file:
Generated on Thu Feb 8 14:54:31 2007 for Patternist by  doxygen 1.5.1