#include <schroot-base-options.h>
Inheritance diagram for schroot_base::options:
Public Types | |
typedef std::tr1::shared_ptr< options > | ptr |
A shared_ptr to an options object. | |
Public Member Functions | |
options () | |
The constructor. | |
virtual | ~options () |
The destructor. | |
void | parse (int argc, char *argv[]) |
boost::program_options::options_description const & | get_visible_options () const |
Public Attributes | |
bool | quiet |
Quiet messages. | |
bool | verbose |
Verbose messages. | |
Protected Member Functions | |
virtual void | add_options () |
virtual void | add_option_groups () |
virtual void | check_options () |
virtual void | check_actions () |
Protected Attributes | |
boost::program_options::options_description | general |
boost::program_options::options_description | hidden |
boost::program_options::positional_options_description | positional |
boost::program_options::options_description | visible |
boost::program_options::options_description | global |
boost::program_options::variables_map | vm |
Private Attributes | |
std::string | debug_level |
Debug level string. |
This is specialised by the frontends to suit their particular command-line options and behaviour. This class implements the functionality common to all options parsing classes.
typedef std::tr1::shared_ptr<options> schroot_base::options::ptr |
A shared_ptr to an options object.
Reimplemented in schroot_listmounts::options, schroot::options_base, and schroot_releaselock::options.
options::options | ( | ) |
The constructor.
argc | the number of arguments. | |
argv | the list of arguments. |
Reimplemented in schroot_listmounts::options, schroot::options, schroot_releaselock::options, dchroot::options, and dchroot_dsa::options.
options::~options | ( | ) | [virtual] |
The destructor.
Reimplemented in schroot_listmounts::options, schroot::options, schroot_releaselock::options, dchroot::options, and dchroot_dsa::options.
void options::add_option_groups | ( | ) | [protected, virtual] |
Reimplemented in schroot_listmounts::options, schroot::options_base, and schroot_releaselock::options.
void options::add_options | ( | ) | [protected, virtual] |
Reimplemented in schroot_listmounts::options, schroot::options_base, schroot::options, schroot_releaselock::options, dchroot::options, and dchroot_dsa::options.
void options::check_actions | ( | ) | [protected, virtual] |
Reimplemented in schroot::options_base.
void options::check_options | ( | ) | [protected, virtual] |
Reimplemented in schroot_listmounts::options, schroot::options_base, schroot::options, schroot_releaselock::options, dchroot::options, and dchroot_dsa::options.
boost::program_options::options_description const & options::get_visible_options | ( | ) | const |
void options::parse | ( | int | argc, | |
char * | argv[] | |||
) |
std::string schroot_base::options::debug_level [private] |
Debug level string.
boost::program_options::options_description schroot_base::options::general [protected] |
boost::program_options::options_description schroot_base::options::global [protected] |
boost::program_options::options_description schroot_base::options::hidden [protected] |
boost::program_options::positional_options_description schroot_base::options::positional [protected] |
Quiet messages.
Verbose messages.
boost::program_options::options_description schroot_base::options::visible [protected] |
boost::program_options::variables_map schroot_base::options::vm [protected] |