libpsynth 0.2.1
Classes | Namespaces | Typedefs
/home/raskolnikov/dev/psynth/trunk/src/psynth/base/arg_parser.hpp File Reference

Time-stamp: <2011-03-08 21:05:16 raskolnikov> More...

#include <sstream>
#include <cstring>
#include <string>
#include <limits>
#include <list>
#include <map>
#include <psynth/base/exception.hpp>
#include <psynth/base/iterator.hpp>
#include <psynth/base/util.hpp>
Include dependency graph for arg_parser.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  psynth::base::parse_error
 A parsing error. More...
struct  psynth::base::detail::ltstr
 Less-than functor for cstrings. More...
struct  psynth::base::detail::atoi_func
 Functor wrapper for atoi. More...
struct  psynth::base::detail::atof_func
 Functor wrapper for atof. More...
struct  psynth::base::detail::atoany_func< T >
 Functor for convertin from a const char* to another if it has defined a converter contructor. More...
class  psynth::base::option
 The interface of an option of the argument parser. More...
class  psynth::base::option_generic< T, ConvFunc >
 Option that catches the argument and stores its value, converted to any desired type. More...
class  psynth::base::option_flag
 A boolan option that is set to true if the option exists. More...
class  psynth::base::option_not_flag
 A boolan option that is set to true if the option exists. More...
class  psynth::base::option_stream< T >
 Option that parses the param using a stringstream. More...
class  psynth::base::arg_parser
 Class for parsing program arguments. More...

Namespaces

namespace  psynth
namespace  psynth::base
namespace  psynth::base::detail

Typedefs

typedef option_generic< int,
detail::atoi_func > 
psynth::base::option_int
 An int option.
typedef option_generic< float,
detail::atof_func > 
psynth::base::option_float
 A float option.
typedef option_generic
< std::string > 
psynth::base::option_string
 A std::string option.
typedef option_generic< const
char * > 
psynth::base::option_cstring
 A cstring option.

Detailed Description

Time-stamp: <2011-03-08 21:05:16 raskolnikov>

Author:
Juan Pedro BolĂ­var Puente <raskolnikov@es.gnu.org>
Date:
2007

Command line argument parsing facility.