sbuild  1.6.10
sbuild-chroot-facet-source.h
1 /* Copyright © 2005-2009 Roger Leigh <rleigh@debian.org>
2  *
3  * schroot is free software: you can redistribute it and/or modify it
4  * under the terms of the GNU General Public License as published by
5  * the Free Software Foundation, either version 3 of the License, or
6  * (at your option) any later version.
7  *
8  * schroot is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see
15  * <http://www.gnu.org/licenses/>.
16  *
17  *********************************************************************/
18 
19 #ifndef SBUILD_CHROOT_FACET_SOURCE_H
20 #define SBUILD_CHROOT_FACET_SOURCE_H
21 
22 #include <sbuild/sbuild-chroot-facet.h>
23 
24 namespace sbuild
25 {
26 
36  {
37  public:
39  typedef std::shared_ptr<chroot_facet_source> ptr;
40 
42  typedef std::shared_ptr<const chroot_facet_source> const_ptr;
43 
44  private:
47 
48  public:
50  virtual ~chroot_facet_source ();
51 
57  static ptr
58  create ();
59 
60  virtual chroot_facet::ptr
61  clone () const;
62 
63  virtual std::string const&
64  get_name () const;
65 
66  virtual void
67  setup_env (chroot const& chroot,
68  environment& env) const;
69 
70  virtual chroot::session_flags
71  get_session_flags (chroot const& chroot) const;
72 
73  virtual void
74  get_details (chroot const& chroot,
75  format_detail& detail) const;
76 
77  virtual void
78  get_keyfile (chroot const& chroot,
79  keyfile& keyfile) const;
80 
81  virtual void
83  keyfile const& keyfile,
84  string_list& used_keys);
85  };
86 
87 }
88 
89 #endif /* SBUILD_CHROOT_FACET_SOURCE_H */
90 
91 /*
92  * Local Variables:
93  * mode:C++
94  * End:
95  */
virtual ~chroot_facet_source()
The destructor.
Definition: sbuild-chroot-facet-source.cc:35
virtual std::string const & get_name() const
Get the name of the chroot facet.
Definition: sbuild-chroot-facet-source.cc:52
Debian source builder components.
Definition: sbuild-auth-null.h:24
chroot_facet_source()
The constructor.
Definition: sbuild-chroot-facet-source.cc:30
virtual void get_keyfile(chroot const &chroot, keyfile &keyfile) const
Copy the chroot properties into a keyfile.
Definition: sbuild-chroot-facet-source.cc:78
std::shared_ptr< chroot_facet_source > ptr
A shared_ptr to a chroot facet object.
Definition: sbuild-chroot-facet-source.h:39
Container of environment variables.
Definition: sbuild-environment.h:38
virtual void get_details(chroot const &chroot, format_detail &detail) const
Get detailed information about the chroot for output.
Definition: sbuild-chroot-facet-source.cc:72
virtual void setup_env(chroot const &chroot, environment &env) const
Set environment.
Definition: sbuild-chroot-facet-source.cc:60
std::shared_ptr< const chroot_facet_source > const_ptr
A shared_ptr to a const chroot facet object.
Definition: sbuild-chroot-facet-source.h:42
Configuration file parser.
Definition: sbuild-basic-keyfile.h:138
virtual chroot_facet::ptr clone() const
Copy the chroot facet.
Definition: sbuild-chroot-facet-source.cc:46
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
Format names and values for output.
Definition: sbuild-format-detail.h:38
virtual chroot::session_flags get_session_flags(chroot const &chroot) const
Get the session flags of the chroot.
Definition: sbuild-chroot-facet-source.cc:66
static ptr create()
Create a chroot facet.
Definition: sbuild-chroot-facet-source.cc:40
Common chroot data.
Definition: sbuild-chroot.h:45
Chroot support for clonable sources.
Definition: sbuild-chroot-facet-source.h:35
Common chroot data.
Definition: sbuild-chroot-facet.h:40
virtual void set_keyfile(chroot &chroot, keyfile const &keyfile, string_list &used_keys)
Set the chroot properties from a keyfile.
Definition: sbuild-chroot-facet-source.cc:84