X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Fvserver.hh;fp=src%2Fext2fs.h;h=b0059dccf369ec5b468373fdf0af6eb55993dda3;hb=780710c3d80b8776944dd1fc65a0fda64f399db0;hp=745be0c37ca1769fddb124d1a0d18584b7594657;hpb=8cf13bb177d92c93eb73dc8939777150536c2d00;p=util-vserver.git diff --git a/src/ext2fs.h b/src/vserver.hh similarity index 50% rename from src/ext2fs.h rename to src/vserver.hh index 745be0c..b0059dc 100644 --- a/src/ext2fs.h +++ b/src/vserver.hh @@ -1,4 +1,4 @@ -// $Id: ext2fs.h,v 1.1.2.2 2004/01/26 18:22:00 ensc Exp $ --*- c -*-- +// $Id: vserver.hh,v 1.1 2003/10/21 13:26:21 ensc Exp $ --*- c++ -*-- // Copyright (C) 2003 Enrico Scholz // @@ -16,15 +16,30 @@ // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -#ifndef H_UTIL_VSERVER_SRC_EXT2FS_H -#define H_UTIL_VSERVER_SRC_EXT2FS_H +#ifndef HH_UTIL_VSERVER_SRC_VSERVSER_HH +#define HH_UTIL_VSERVER_SRC_VSERVSER_HH -#ifdef ENSC_HAVE_EXT2FS_EXT2_FS_H -# include -#elif defined(ENSC_HAVE_LINUX_EXT2_FS_H) -# include -#else -# error Do not know how to include -#endif +#include +#include -#endif // H_UTIL_VSERVER_SRC_EXT2FS_H +class Vserver +{ + public: + Vserver(std::string const &name); + + std::string const & getConfDir() const { return conf_dir_; } + std::string const & getVdir() const { return vdir_; } + std::string const & getRPMDbPath() const { return rpmdb_path_; } + std::string const & getName() const { return name_; } + + private: + std::string conf_dir_; + std::string vdir_; + std::string rpmdb_path_; + std::string name_; +}; + +std::ostream & operator << (std::ostream &lhs, Vserver const &rhs); + + +#endif // HH_UTIL_VSERVER_SRC_VSERVSER_HH