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