19 #ifndef SBUILD_CHROOT_FACET_SESSION_H
20 #define SBUILD_CHROOT_FACET_SESSION_H
22 #include <sbuild/chroot/facet/facet.h>
23 #include <sbuild/session.h>
46 typedef std::shared_ptr<session>
ptr;
70 virtual std::string
const&
void set_selected_name(const std::string &name)
Set the selected name of the chroot (alias used).
Definition: session.cc:112
virtual facet::ptr clone() const
Copy the chroot facet.
Definition: session.cc:81
Debian source builder components.
Definition: ctty.cc:31
void set_original_name(const std::string &name)
Set the original name of the chroot (prior to session cloning).
Definition: session.cc:99
Chroot support for sessions.
Definition: session.h:39
std::string const & get_selected_name() const
Get the selected name of the chroot (alias used).
Definition: session.cc:106
Container of environment variables.
Definition: environment.h:38
virtual void get_keyfile(keyfile &keyfile) const
Copy the chroot properties into a keyfile.
Definition: session.cc:206
virtual void set_keyfile(const keyfile &keyfile)
Set the chroot properties from a keyfile.
Definition: session.cc:218
static ptr create()
Create a chroot facet.
Definition: session.cc:75
virtual void get_details(format_detail &detail) const
Get detailed information about the chroot for output.
Definition: session.cc:183
virtual void get_used_keys(string_list &used_keys) const
Get a list of the keys used during keyfile parsing.
Definition: session.cc:194
std::shared_ptr< const session > const_ptr
A shared_ptr to a const chroot facet object.
Definition: session.h:49
virtual ~session()
The destructor.
Definition: session.cc:70
virtual void setup_env(environment &env) const
Set environment.
Definition: session.cc:171
Base class for all facets.
Definition: facet.h:50
std::vector< std::string > string_list
A string vector.
Definition: types.h:38
std::shared_ptr< session > ptr
A shared_ptr to a chroot facet object.
Definition: session.h:46
Custom error.
Definition: custom-error.h:31
session()
The constructor.
Definition: session.cc:63
std::string selected_chroot_name
Selected chroot name.
Definition: session.h:133
std::string original_chroot_name
Original chroot name prior to session cloning.
Definition: session.h:131
virtual std::string const & get_name() const
Get the name of the chroot facet.
Definition: session.cc:87
Configuration file parser.
Definition: keyfile.h:46
chroot::error error
Exception type.
Definition: session.h:43
std::shared_ptr< facet > ptr
A shared_ptr to a chroot facet object.
Definition: facet.h:63
std::string const & get_original_name() const
Get the original name of the chroot (prior to session cloning).
Definition: session.cc:93
void setup_session_info(bool start)
Set up persistent session information.
Definition: session.cc:120