csbuild::main Class Reference

Frontend for schroot. More...

#include <csbuild-main.h>

Inheritance diagram for csbuild::main:

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

Collaboration graph
[legend]

List of all members.

Public Types

enum  error_code { DEVICE_NOTBLOCK, DEVICE_OWNED, DEVICE_RELEASE, DEVICE_STAT }
 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.
virtual void action_build ()
 Build packages.
virtual int run_impl ()
 Run the program.

Public Attributes

options::ptr opts
 The program options.


Detailed Description

Frontend for schroot.

This class is used to "run" schroot.


Member Typedef Documentation

Exception type.


Member Enumeration Documentation

Error codes.

Enumerator:
DEVICE_NOTBLOCK  File is not a block device.
DEVICE_OWNED  Failed to release device lock (lock held by PID).
DEVICE_RELEASE  Failed to release device lock.
DEVICE_STAT  Failed to stat device.


Constructor & Destructor Documentation

main::main ( options::ptr options  ) 

The constructor.

Parameters:
options the command-line options to use.

main::~main (  )  [virtual]

The destructor.

Reimplemented from schroot_base::main.


Member Function Documentation

void main::action_build (  )  [virtual]

Build packages.

Referenced by run_impl().

Here is the caller graph for this function:

int main::run_impl (  )  [virtual]


Member Data Documentation

The program options.

Referenced by run_impl().


The documentation for this class was generated from the following files:

Generated on Sat Jul 5 12:01:07 2008 for schroot by  doxygen 1.5.6