argumentParser.h File Reference

#include <iostream>
#include <stdlib.h>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <list>

Include dependency graph for argumentParser.h:

Go to the source code of this file.

Data Structures

struct  ArgumentBase
 Abstract base class for all command line arguments. More...
struct  Argument< T >
 Command line argument. More...
class  ArgumentParser
 Command line parser. More...

Typedefs

typedef std::istringstream istrstream

Functions

ArgumentParser parse (const std::string &helpstr="", char hs='h', const std::string &hl="help")
 Parse a command line.


Typedef Documentation

typedef std::istringstream istrstream

Definition at line 46 of file argumentParser.h.


Function Documentation

ArgumentParser parse ( const std::string &  helpstr = "",
char  hs = 'h',
const std::string &  hl = "help" 
) [inline]

Parse a command line.

Parameters:
helpstr General help message
hs short name for help
hl long name for help This method frees the programmer from explicitly creating an ArgumentParser, which makes the program (hopefully) more readable. Using this method, the ArgumentParser is transparently created, it receives and processes the arguments, then it is destroyed.

Definition at line 391 of file argumentParser.h.


Generated on Sun Nov 23 04:11:29 2008 for Sofa by  doxygen 1.5.7.1