00001 /* 00002 * Copyright 2007 Martin von Gagern 00003 * 00004 * 00005 * This file is part of bande. 00006 * 00007 * bande is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 3 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * bande is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00019 */ 00020 00021 00022 /** 00023 * @file 00024 * Interface of class bande::Settings. 00025 */ 00026 00027 namespace bande { 00028 00029 /** 00030 * The Settings class handles command line settings. 00031 */ 00032 class Settings { 00033 00034 public: 00035 Settings(); 00036 virtual ~Settings(); 00037 00038 void args(int argc, char** argv); 00039 void run(); 00040 00041 static unsigned debug; 00042 00043 private: 00044 static const struct option opts[]; 00045 00046 /** 00047 * The name of the input file. 00048 */ 00049 const char* inFile; 00050 00051 /** 00052 * The name of the output file or 0. 00053 */ 00054 const char* outFile; 00055 00056 void usage(char* prog, std::ostream& out, int ret); 00057 00058 }; 00059 00060 }
1.6.0