00001 #ifndef _theplu_yat_utility_option_in_file_ 00002 #define _theplu_yat_utility_option_in_file_ 00003 00004 // $Id: OptionInFile.h 1797 2009-02-12 18:07:10Z peter $ 00005 00006 /* 00007 Copyright (C) 2008 Jari Häkkinen, Peter Johansson 00008 00009 This file is part of the yat library, http://dev.thep.lu.se/yat 00010 00011 The yat library is free software; you can redistribute it and/or 00012 modify it under the terms of the GNU General Public License as 00013 published by the Free Software Foundation; either version 3 of the 00014 License, or (at your option) any later version. 00015 00016 The yat library is distributed in the hope that it will be useful, 00017 but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00019 General Public License for more details. 00020 00021 You should have received a copy of the GNU General Public License 00022 along with yat. If not, see <http://www.gnu.org/licenses/>. 00023 */ 00024 00025 #include "OptionFile.h" 00026 00027 #include <iosfwd> 00028 #include <string> 00029 00030 namespace theplu { 00031 namespace yat { 00032 namespace utility { 00033 00034 class CommandLine; 00038 class OptionInFile : public OptionFile 00039 { 00040 public: 00051 OptionInFile(CommandLine& cmd, std::string name, std::string desc, 00052 bool required=false); 00053 00057 virtual ~OptionInFile(void); 00058 00063 std::istream& istream(void); 00064 00065 private: 00066 std::ifstream* is_; 00067 00068 }; 00069 00070 }}} // of namespace utility, yat, and theplu 00071 00072 #endif