00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 1999, 2002, 2005, 2006, 2008 Peter Miller 00004 // 00005 // This program is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation; either version 3 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU 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, see 00017 // <http://www.gnu.org/licenses/>. 00018 // 00019 00020 #ifndef LIBAEGIS_WIDE_OUTPUT_EXPAND_H 00021 #define LIBAEGIS_WIDE_OUTPUT_EXPAND_H 00022 00023 #include <libaegis/wide_output.h> 00024 00032 class wide_output_expand: 00033 public wide_output 00034 { 00035 public: 00039 virtual ~wide_output_expand(); 00040 00041 private: 00049 wide_output_expand(const wide_output::pointer &deeper); 00050 00051 protected: 00052 // See base class for documentation. 00053 nstring filename(); 00054 00055 // See base class for documentation. 00056 int page_width(); 00057 00058 // See base class for documentation. 00059 int page_length(); 00060 00061 // See base class for documentation. 00062 const char *type_name() const; 00063 00064 // See base class for documentation. 00065 void write_inner(const wchar_t *data, size_t len); 00066 00067 // See base class for documentation. 00068 void flush_inner(); 00069 00070 // See base class for documentation. 00071 void end_of_line_inner(); 00072 00073 public: 00081 static pointer open(const wide_output::pointer &deeper); 00082 00083 private: 00084 pointer deeper; 00085 int column; 00086 00087 void put_hex(int n); 00088 00092 wide_output_expand(); 00093 00097 wide_output_expand(const wide_output_expand &); 00098 00102 wide_output_expand &operator=(const wide_output_expand &); 00103 }; 00104 00105 #endif // LIBAEGIS_WIDE_OUTPUT_EXPAND_H