conf::Option Struct Reference

An option. More...

#include <conf.hh>

List of all members.

Public Member Functions

int get_int () const
 Return the integer value of the option.
float get_float () const
 Return the float value of the option.
double get_double () const
 Return the double value of the option.
const std::string & get_str () const
 Return the string of the option.
const char * get_c_str () const
 Return the string of the option.

Public Attributes

unsigned char short_name
 The short name used for command line.
std::string long_name
 The long name used also in configuration files.
std::string value
 The value parsed from command line or file.
bool required
 Is the option required.
bool needs_argument
 Does the option need an argument.
bool specified
 Has the user specified the option.
std::string help
 The help string of the option.
std::string name
 The name string of the option: "-h --help", for example.


Detailed Description

An option.


The documentation for this struct was generated from the following files:
Generated on Tue Apr 8 09:58:19 2008 for GoCam by  doxygen 1.4.6