|
Aegis
4.25.D505
|
00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 1991-1993, 2001, 2002, 2004-2006, 2008, 2012 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 (at 00008 // 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 GNU 00013 // 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 <http://www.gnu.org/licenses/>. 00017 // 00018 00019 #ifndef LIBAEGIS_COL_H 00020 #define LIBAEGIS_COL_H 00021 00022 #include <libaegis/output.h> 00023 00024 struct string_ty; // forward 00025 00030 class col 00031 { 00032 public: 00033 typedef aegis_shared_ptr<col> pointer; 00034 00038 virtual ~col(); 00039 00040 protected: 00044 col(); 00045 00046 public: 00059 static col::pointer open(struct string_ty *filename); 00060 00072 static col::pointer open(output::pointer op); 00073 00096 virtual output::pointer create(int left, int right, const char *title) 00097 = 0; 00098 00108 virtual void title(const char *first, const char *second); 00109 00119 virtual void title(const nstring &first, const nstring &second) = 0; 00120 00133 virtual void eoln() = 0; 00134 00144 virtual void need(int n) = 0; 00145 00150 virtual void eject() = 0; 00151 00155 virtual void flush() = 0; 00156 00163 virtual void forget(const output::pointer &op) = 0; 00164 00165 private: 00169 col(const col &); 00170 00174 col &operator=(const col &); 00175 }; 00176 00177 #endif // LIBAEGIS_COL_H 00178 // vim: set ts=8 sw=4 et :
1.7.6.1