00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 1991-1993, 2001, 2002, 2004-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 COL_H 00021 #define COL_H 00022 00023 #include <common/main.h> 00024 #include <libaegis/output.h> 00025 00026 struct string_ty; // forward 00027 00032 class col 00033 { 00034 public: 00035 typedef aegis_shared_ptr<col> pointer; 00036 00040 virtual ~col(); 00041 00042 protected: 00046 col(); 00047 00048 public: 00061 static col::pointer open(struct string_ty *filename); 00062 00085 virtual output::pointer create(int left, int right, const char *title) 00086 = 0; 00087 00097 virtual void title(const char *first, const char *second) = 0; 00098 00111 virtual void eoln() = 0; 00112 00122 virtual void need(int n) = 0; 00123 00128 virtual void eject() = 0; 00129 00133 virtual void flush() = 0; 00134 00141 virtual void forget(const output::pointer &op) = 0; 00142 00143 private: 00147 col(const col &); 00148 00152 col &operator=(const col &); 00153 }; 00154 00155 #endif // COL_H