19 #ifndef SBUILD_CHROOT_H
20 #define SBUILD_CHROOT_H
22 #include <sbuild/sbuild-custom-error.h>
23 #include <sbuild/sbuild-environment.h>
24 #include <sbuild/sbuild-format-detail.h>
25 #include <sbuild/sbuild-keyfile.h>
26 #include <sbuild/sbuild-regex.h>
104 typedef std::shared_ptr<chroot>
ptr;
127 create (std::string
const& type);
148 std::string
const& alias,
149 std::string
const& user,
150 bool root)
const = 0;
501 virtual std::string
const&
591 template <
typename T>
602 template <
typename T>
603 const std::shared_ptr<const T>
611 template <
typename T>
619 template <
typename T>
628 template <
typename T>
637 template <
typename T>
681 rhs->print_details(stream);
697 rhs->set_keyfile(keyfile);
713 rhs->get_keyfile(keyfile);
849 (
static_cast<int>(lhs) | static_cast<int>(rhs));
863 (
static_cast<int>(lhs) & static_cast<int>(rhs));
868 #include <sbuild/sbuild-chroot-facet.h>
873 template <
typename T>
877 std::shared_ptr<T> ret;
879 for (facet_list::const_iterator pos =
facets.begin();
883 if (ret = std::dynamic_pointer_cast<T>(*pos))
890 template <
typename T>
891 const std::shared_ptr<const T>
894 std::shared_ptr<T> ret;
896 for (facet_list::const_iterator pos =
facets.begin();
900 if (ret = std::dynamic_pointer_cast<T>(*pos))
904 return std::const_pointer_cast<T>(ret);
907 template <
typename T>
915 for (facet_list::const_iterator pos =
facets.begin();
919 if (std::dynamic_pointer_cast<T>(*pos))
923 new_facet->set_chroot(*
this);
924 facets.push_back(new_facet);
927 template <
typename T>
931 for (facet_list::iterator pos =
facets.begin();
935 if (std::dynamic_pointer_cast<T>(*pos))
943 template <
typename T>
950 template <
typename T>