sbuild::chroot_directory_base Class Reference

A base class for chroots located in a local directory. More...

#include <sbuild-chroot-directory-base.h>

Inheritance diagram for sbuild::chroot_directory_base:
Inheritance graph
[legend]
Collaboration diagram for sbuild::chroot_directory_base:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual ~chroot_directory_base ()
 The destructor.
std::string const & get_directory () const
 Get the directory containing the chroot.
void set_directory (std::string const &directory)
 Set the directory containing the chroot.
virtual void setup_env (chroot const &chroot, environment &env) const

Protected Member Functions

 chroot_directory_base ()
 The constructor.
virtual void get_details (chroot const &chroot, format_detail &detail) const
virtual void get_keyfile (chroot const &chroot, keyfile &keyfile) const
virtual void set_keyfile (chroot &chroot, keyfile const &keyfile, string_list &used_keys)

Private Attributes

std::string directory
 The directory to use.

Friends

class chroot

Detailed Description

A base class for chroots located in a local directory.

This class doesn't implement a chroot (get_chroot_type is not implemented). plain and directory chroots inherit from this class.

Originally plain inherited from the directory chroot, but this had to be changed when union support was introduced. As plain chroots don't run any setup scripts and basically just call 'chroot' on a directory, they can't support union based sessions.


Constructor & Destructor Documentation

chroot_directory_base::chroot_directory_base (  )  [protected]

The constructor.

chroot_directory_base::~chroot_directory_base (  )  [virtual]

The destructor.


Member Function Documentation

void chroot_directory_base::get_details ( chroot const &  chroot,
format_detail detail 
) const [protected, virtual]
std::string const & chroot_directory_base::get_directory (  )  const

Get the directory containing the chroot.

Returns:
the location.

References directory.

Referenced by get_details(), get_keyfile(), sbuild::chroot_plain::get_path(), and setup_env().

void chroot_directory_base::get_keyfile ( chroot const &  chroot,
keyfile keyfile 
) const [protected, virtual]
void chroot_directory_base::set_directory ( std::string const &  directory  ) 

Set the directory containing the chroot.

Parameters:
directory the directory.

References sbuild::chroot::DIRECTORY_ABS, and sbuild::is_absname().

Referenced by set_keyfile().

void chroot_directory_base::set_keyfile ( chroot chroot,
keyfile const &  keyfile,
string_list used_keys 
) [protected, virtual]
void chroot_directory_base::setup_env ( chroot const &  chroot,
environment env 
) const [virtual]

Friends And Related Function Documentation

friend class chroot [friend]

Member Data Documentation

The directory to use.

Referenced by get_directory().


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

Generated on Fri Feb 12 03:19:07 2010 for sbuild by  doxygen 1.6.1