Google

Main Page   Namespace List   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

LeoArg::Setting Struct Reference

< structure handling a whole parameter setting. More...

#include <LeoArg.hh>

List of all members.

Public Methods

 Setting ( int argc, char **argv, std::string long_option_switch, std::string short_option_switch )
 Setting ()
void add ( const Option& option )
 adds an new option to the option list.

void short_option_string ( bool short_os )
 enable/disable the short option string.

bool short_option_string () const
 returns true if short option string parsing is enabled.


Public Attributes

int argc
char** argv
std::string long_option_switch
 the long option switch, eg.: "--".

std::string short_option_switch
 the short option switch, eg.: "-".

OptionList option_list
 the list of options.

bool sos
 true of short option string enabled.


Detailed Description

< structure handling a whole parameter setting.


Constructor & Destructor Documentation

LeoArg::Setting::Setting ( int argc,
char ** argv,
std::string long_option_switch,
std::string short_option_switch ) [inline]
 

LeoArg::Setting::Setting ( ) [inline]
 


Member Function Documentation

void LeoArg::Setting::add ( const Option & option ) [inline]
 

adds an new option to the option list.

bool LeoArg::Setting::short_option_string ( ) const [inline]
 

returns true if short option string parsing is enabled.

void LeoArg::Setting::short_option_string ( bool short_os ) [inline]
 

enable/disable the short option string.


Member Data Documentation

int LeoArg::Setting::argc
 

char ** LeoArg::Setting::argv
 

std::string LeoArg::Setting::long_option_switch
 

the long option switch, eg.: "--".

OptionList LeoArg::Setting::option_list [mutable]
 

the list of options.

std::string LeoArg::Setting::short_option_switch
 

the short option switch, eg.: "-".

bool LeoArg::Setting::sos
 

true of short option string enabled.


The documentation for this struct was generated from the following file:
LeoArg (C) under the terms of the GPL by King Leo (Martin Oberzalek)
Documentation created by Doxygen 1.2.2