dchroot::main_base Class Reference

Frontend base class for dchroot. More...

#include <dchroot-main-base.h>

Inheritance diagram for dchroot::main_base:

Inheritance graph
[legend]
Collaboration diagram for dchroot::main_base:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 main_base (std::string const &program_name, std::string const &program_usage, schroot::options_base::ptr &options)
 The constructor.
virtual ~main_base ()
 The destructor.

Protected Member Functions

void check_dchroot_conf ()
 Check dchroot.conf exists.
virtual void compat_check ()
 Check compatibility.
virtual void action_config ()
 Dump configuration file for chroots.
virtual void action_list ()
 List chroots.

Protected Attributes

bool use_dchroot_conf
 Use dchroot.conf as the configuration file.

Detailed Description

Frontend base class for dchroot.

This class contains frontend functionality common to dchroot and dchroot-dsa.

Definition at line 32 of file dchroot-main-base.h.


Constructor & Destructor Documentation

main_base::main_base ( std::string const &  program_name,
std::string const &  program_usage,
schroot::options_base::ptr options 
)

The constructor.

Parameters:
program_name the program name.
program_usage the program usage message.
options the command-line options to use.

Reimplemented from schroot::main_base.

Definition at line 44 of file dchroot-main-base.cc.

main_base::~main_base (  )  [virtual]

The destructor.

Reimplemented from schroot::main_base.

Definition at line 52 of file dchroot-main-base.cc.


Member Function Documentation

void main_base::check_dchroot_conf (  )  [protected]

Check dchroot.conf exists.

If it exists, and using verbose messages, print a warning about upgrading to schroot.conf.

Definition at line 116 of file dchroot-main-base.cc.

References _, sbuild::log_info(), sbuild::log_warning(), schroot_base::main::program_name, and use_dchroot_conf.

Referenced by dchroot::main::load_config(), and dchroot_dsa::main::load_config().

Here is the call graph for this function:

Here is the caller graph for this function:

void main_base::compat_check (  )  [protected, virtual]

Check compatibility.

Does nothing, but derived classes may use it as they see fit.

Reimplemented from schroot::main_base.

Definition at line 98 of file dchroot-main-base.cc.

References _, sbuild::log_info(), sbuild::log_warning(), and schroot_base::main::program_name.

Here is the call graph for this function:

void main_base::action_config (  )  [protected, virtual]

Dump configuration file for chroots.

Implements schroot::main_base.

Definition at line 57 of file dchroot-main-base.cc.

References _, schroot::main_base::config, and schroot_base::main::program_name.

void main_base::action_list (  )  [protected, virtual]

List chroots.

Implements schroot::main_base.

Definition at line 92 of file dchroot-main-base.cc.

References schroot::main_base::config.


Member Data Documentation

bool dchroot::main_base::use_dchroot_conf [protected]

Use dchroot.conf as the configuration file.

Definition at line 67 of file dchroot-main-base.h.

Referenced by check_dchroot_conf().


The documentation for this class was generated from the following files:
Generated on Sat Jan 27 16:12:24 2007 for schroot by  doxygen 1.5.1