sbuild-chroot-directory-base.h

00001 /* Copyright © 2005-2007  Roger Leigh <rleigh@debian.org>
00002  *
00003  * schroot is free software: you can redistribute it and/or modify it
00004  * under the terms of the GNU General Public License as published by
00005  * the Free Software Foundation, either version 3 of the License, or
00006  * (at your option) any later version.
00007  *
00008  * schroot is distributed in the hope that it will be useful, but
00009  * WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011  * General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program.  If not, see
00015  * <http://www.gnu.org/licenses/>.
00016  *
00017  *********************************************************************/
00018 
00019 #ifndef SBUILD_CHROOT_DIRECTORY_BASE_H
00020 #define SBUILD_CHROOT_DIRECTORY_BASE_H
00021 
00022 #include <sbuild/sbuild-chroot.h>
00023 
00024 namespace sbuild
00025 {
00026 
00039   class chroot_directory_base : public chroot
00040   {
00041   protected:
00043     chroot_directory_base ();
00044 
00046     chroot_directory_base (const chroot_directory_base& rhs);
00047 
00049     chroot_directory_base (const chroot& rhs);
00050 
00051     friend class chroot;
00052 
00053   public:
00055     virtual ~chroot_directory_base ();
00056 
00062     std::string const&
00063     get_directory () const;
00064 
00070     void
00071     set_directory (std::string const& directory);
00072 
00073     virtual void
00074     setup_env (chroot const& chroot,
00075                environment& env) const;
00076 
00077   protected:
00078     virtual void
00079     get_details (chroot const& chroot,
00080                  format_detail& detail) const;
00081 
00082     virtual void
00083     get_keyfile (chroot const& chroot,
00084                  keyfile& keyfile) const;
00085 
00086     virtual void
00087     set_keyfile (chroot&        chroot,
00088                  keyfile const& keyfile,
00089                  string_list&   used_keys);
00090 
00091   private:
00093     std::string directory;
00094   };
00095 
00096 }
00097 
00098 #endif /* SBUILD_CHROOT_DIRECTORY_BASE_H */
00099 
00100 /*
00101  * Local Variables:
00102  * mode:C++
00103  * End:
00104  */

Generated on Wed Jun 1 08:00:09 2011 for sbuild by  doxygen 1.5.6