sbuild  1.7.1
personality.h
1 /* Copyright © 2005-2013 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_PERSONALITY_H
20 #define SBUILD_CHROOT_FACET_PERSONALITY_H
21 
22 #include <sbuild/chroot/facet/facet.h>
23 #include <sbuild/personality.h>
24 
25 namespace sbuild
26 {
27  namespace chroot
28  {
29  namespace facet
30  {
31 
35  class personality : public facet
36  {
37  public:
39  typedef std::shared_ptr<personality> ptr;
40 
42  typedef std::shared_ptr<const personality> const_ptr;
43 
44  private:
46  personality ();
47 
48  public:
50  virtual ~personality ();
51 
57  static ptr
58  create ();
59 
60  virtual facet::ptr
61  clone () const;
62 
63  virtual std::string const&
64  get_name () const;
65 
71  sbuild::personality const&
72  get_persona () const;
73 
79  void
81 
82  virtual void
83  get_details (format_detail& detail) const;
84 
85  virtual void
86  get_used_keys (string_list& used_keys) const;
87 
88  virtual void
89  get_keyfile (keyfile& keyfile) const;
90 
91  virtual void
92  set_keyfile (const keyfile& keyfile);
93 
94  private:
97  };
98 
99  }
100  }
101 }
102 
103 #endif /* SBUILD_CHROOT_FACET_PERSONALITY_H */
104 
105 /*
106  * Local Variables:
107  * mode:C++
108  * End:
109  */