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_COL_UNFORMATTED_H 00021 #define LIBAEGIS_COL_UNFORMATTED_H 00022 00023 #include <common/ac/stddef.h> 00024 00025 #include <libaegis/col.h> 00026 #include <libaegis/wide_output/column.h> 00027 00028 00034 class col_unformatted: 00035 public col 00036 { 00037 public: 00041 virtual ~col_unformatted(); 00042 00043 private: 00051 col_unformatted(const wide_output::pointer &deeper); 00052 00053 public: 00061 static pointer create(const wide_output::pointer &deeper); 00062 00063 protected: 00064 // See base class for documentation. 00065 output::pointer create(int, int, const char*); 00066 00067 // See base class for documentation. 00068 void title(const char*, const char*); 00069 00070 // See base class for documentation. 00071 void eoln(); 00072 00073 // See base class for documentation. 00074 void need(int); 00075 00076 // See base class for documentation. 00077 void eject(); 00078 00079 // See base class for documentation. 00080 void flush(); 00081 00082 // See base class for documentation. 00083 void forget(const output::pointer &op); 00084 00085 private: 00086 struct column_ty 00087 { 00088 ~column_ty(); 00089 column_ty(); 00090 00091 wide_output_column::cpointer content; 00092 output::pointer content_filter; 00093 00094 void clear(); 00095 }; 00096 00097 wide_output::pointer deeper; 00098 wchar_t separator; 00099 size_t ncolumns; 00100 size_t ncolumns_max; 00101 column_ty *column; 00102 00106 col_unformatted(); 00107 00111 col_unformatted(const col_unformatted &); 00112 00116 col_unformatted &operator=(const col_unformatted &); 00117 }; 00118 00119 #endif // LIBAEGIS_COL_UNFORMATTED_H