schroot_listmounts::main Class Reference

Frontend for schroot. More...

#include <schroot-listmounts-main.h>

Inheritance diagram for schroot_listmounts::main:

Inheritance graph
[legend]
Collaboration diagram for schroot_listmounts::main:

Collaboration graph
[legend]

List of all members.

Public Types

enum  error_code { FIND }
 Error codes. More...
typedef sbuild::custom_error
< error_code
error
 Exception type.

Public Member Functions

 main (options::ptr &options)
 The constructor.
virtual ~main ()
 The destructor.

Protected Member Functions

virtual int run_impl ()
 Run the program.

Private Member Functions

virtual void action_listmounts ()
 List mounts.

Private Attributes

options::ptr opts
 The program options.


Detailed Description

Frontend for schroot.

This class is used to "run" schroot.

Definition at line 34 of file schroot-listmounts-main.h.


Member Typedef Documentation

typedef sbuild::custom_error<error_code> schroot_listmounts::main::error

Exception type.

Definition at line 44 of file schroot-listmounts-main.h.


Member Enumeration Documentation

enum schroot_listmounts::main::error_code

Error codes.

Enumerator:
FIND  Failed to find file.

Definition at line 38 of file schroot-listmounts-main.h.


Constructor & Destructor Documentation

main::main ( options::ptr options  ) 

The constructor.

Parameters:
options the command-line options to use.

Definition at line 70 of file schroot-listmounts-main.cc.

main::~main (  )  [virtual]

The destructor.

Reimplemented from schroot_base::main.

Definition at line 81 of file schroot-listmounts-main.cc.


Member Function Documentation

void main::action_listmounts (  )  [private, virtual]

List mounts.

Definition at line 86 of file schroot-listmounts-main.cc.

References sbuild::mntstream::mntentry::directory, FIND, and sbuild::normalname().

Referenced by run_impl().

Here is the caller graph for this function:

int main::run_impl (  )  [protected, virtual]

Run the program.

Returns:
0 on success, 1 on failure or the exit status of the chroot command.

Implements schroot_base::main.

Definition at line 127 of file schroot-listmounts-main.cc.

References schroot_base::main::action_help(), schroot_base::options::ACTION_HELP, action_listmounts(), schroot_listmounts::options::ACTION_LISTMOUNTS, schroot_base::main::action_version(), and schroot_base::options::ACTION_VERSION.


Member Data Documentation

options::ptr schroot_listmounts::main::opts [private]

The program options.

Definition at line 75 of file schroot-listmounts-main.h.


The documentation for this class was generated from the following files:
Generated on Mon Jan 21 00:39:03 2008 for schroot by  doxygen 1.5.4