19 #ifndef SBUILD_CHROOT_FACET_H 20 #define SBUILD_CHROOT_FACET_H 22 #include <sbuild/sbuild-environment.h> 23 #include <sbuild/sbuild-format-detail.h> 24 #include <sbuild/sbuild-keyfile.h> 25 #include <sbuild/sbuild-types.h> 26 #include <sbuild/sbuild-chroot.h> 44 typedef std::shared_ptr<chroot_facet>
ptr;
47 typedef std::shared_ptr<const chroot_facet>
const_ptr;
61 this->
owner = &chroot;
83 virtual std::string
const&
140 keyfile
const& keyfile,
virtual std::string const & get_name() const =0
Get the name of the chroot facet.
virtual ptr clone() const =0
Copy the chroot facet.
virtual void get_keyfile(chroot const &chroot, keyfile &keyfile) const =0
Copy the chroot properties into a keyfile.
std::shared_ptr< const chroot_facet > const_ptr
A shared_ptr to a const chroot facet object.
Definition: sbuild-chroot-facet.h:47
Debian source builder components.
Definition: sbuild-auth-null.h:24
virtual ~chroot_facet()
The destructor.
Definition: sbuild-chroot-facet.h:68
virtual void setup_env(chroot const &chroot, environment &env) const =0
Set environment.
chroot_facet()
The constructor.
Definition: sbuild-chroot-facet.h:51
Container of environment variables.
Definition: sbuild-environment.h:38
Configuration file parser.
Definition: sbuild-basic-keyfile.h:138
std::vector< std::string > string_list
A string vector.
Definition: sbuild-types.h:38
session_flags
Chroot session properties.
Definition: sbuild-chroot.h:57
std::shared_ptr< chroot_facet > ptr
A shared_ptr to a chroot facet object.
Definition: sbuild-chroot-facet.h:44
virtual chroot::session_flags get_session_flags(chroot const &chroot) const =0
Get the session flags of the chroot.
Common chroot data.
Definition: sbuild-chroot.h:45
void set_chroot(chroot &chroot)
Set containing chroot.
Definition: sbuild-chroot-facet.h:59
chroot * owner
Chroot owning this facet.
Definition: sbuild-chroot-facet.h:145
virtual void set_keyfile(chroot &chroot, keyfile const &keyfile, string_list &used_keys)=0
Set the chroot properties from a keyfile.
Common chroot data.
Definition: sbuild-chroot-facet.h:40
virtual void get_details(chroot const &chroot, format_detail &detail) const =0
Get detailed information about the chroot for output.