sbuild  1.7.1
plain.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_PLAIN_H
20 #define SBUILD_CHROOT_FACET_PLAIN_H
21 
22 #include <sbuild/config.h>
23 #include <sbuild/chroot/facet/directory-base.h>
24 
25 namespace sbuild
26 {
27  namespace chroot
28  {
29  namespace facet
30  {
31 
39  class plain : public directory_base
40  {
41  public:
43  typedef std::shared_ptr<plain> ptr;
44 
46  typedef std::shared_ptr<const plain> const_ptr;
47 
48  protected:
50  plain ();
51 
53  plain (const plain& rhs);
54 
55  friend class chroot;
56 
57  public:
59  virtual ~plain ();
60 
61  virtual std::string const&
62  get_name () const;
63 
69  static ptr
70  create ();
71 
72  virtual facet::ptr
73  clone () const;
74 
75  virtual std::string
76  get_path () const;
77  };
78 
79  }
80  }
81 }
82 
83 #endif /* SBUILD_CHROOT_FACET_PLAIN_H */
84 
85 /*
86  * Local Variables:
87  * mode:C++
88  * End:
89  */