schroot-options.h

00001 /* schroot-options - schroot options parser
00002  *
00003  * Copyright © 2005  Roger Leigh <rleigh@debian.org>
00004  *
00005  * schroot is free software; you can redistribute it and/or modify it
00006  * under the terms of the GNU General Public License as published by
00007  * the Free Software Foundation; either version 2 of the License, or
00008  * (at your option) any later version.
00009  *
00010  * schroot is distributed in the hope that it will be useful, but
00011  * WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
00018  * MA  02111-1307  USA
00019  *
00020  *********************************************************************/
00021 
00022 #ifndef SBUILD_SCHROOT_OPTIONS_H
00023 #define SBUILD_SCHROOT_OPTIONS_H
00024 
00025 #include <string>
00026 #include <vector>
00027 
00028 #include "sbuild-session.h"
00029 #include "sbuild-types.h"
00030 
00031 namespace schroot
00032 {
00033 
00037   class Options
00038   {
00039   public:
00046     Options(int   argc,
00047             char *argv[]);
00048 
00050     virtual ~Options();
00051 
00053     sbuild::string_list  chroots;
00055     sbuild::string_list  command;
00057     std::string          user;
00059     bool                 preserve;
00061     bool                 quiet;
00063     bool                 verbose;
00065     bool                 list;
00067     bool                 info;
00069     bool                 all;
00071     bool                 all_chroots;
00073     bool                 all_sessions;
00075     bool                 load_chroots;
00077     bool                 load_sessions;
00079     bool                 version;
00081     sbuild::Session::Operation  session_operation;
00083     bool                 session_force;
00084 
00085   private:
00092     void
00093     set_session_operation (sbuild::Session::Operation operation);
00094   };
00095 
00096 }
00097 
00098 #endif /* SBUILD_SCHROOT_OPTIONS_H */
00099 
00100 /*
00101  * Local Variables:
00102  * mode:C++
00103  * End:
00104  */
00105 

Generated on Thu Dec 29 17:20:02 2005 for schroot by  doxygen 1.4.5