EvolvingObjects
|
00001 // -*- mode: c++; c-indent-level: 4; c++-member-init-indent: 8; comment-column: 35; -*- 00002 00003 /* 00004 (c) Marc Schoenauer, Maarten Keijzer and GeNeura Team, 2000 00005 (c) Thales group, 2010 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Lesser General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Lesser General Public License for more details. 00015 00016 You should have received a copy of the GNU Lesser General Public 00017 License along with this library; if not, write to the Free Software 00018 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 00020 00021 Contact: http://eodev.sourceforge.net 00022 00023 Authors: 00024 todos@geneura.ugr.es 00025 Marc.Schoenauer@polytechnique.fr 00026 mkeijzer@dhi.dk 00027 Johann Dréo <johann.dreo@thalesgroup.com> 00028 */ 00029 00030 #ifndef _eoStdoutMonitor_h 00031 #define _eoStdoutMonitor_h 00032 00033 #include <string> 00034 00035 #include <utils/eoOStreamMonitor.h> 00036 #include <eoObject.h> 00037 00043 class eoStdoutMonitor : public eoOStreamMonitor 00044 { 00045 public : 00046 /* FIXME remove in next release 00047 eoStdoutMonitor(bool _verbose, std::string _delim = "\t", unsigned int _width=20, char _fill=' ' ) : 00048 eoOStreamMonitor( std::cout, _verbose, _delim, _width, _fill) 00049 { 00050 #ifndef DEPRECATED_MESSAGES 00051 eo::log << eo::warnings << "WARNING: the use of the verbose parameter in eoStdoutMonitor constructor is deprecated and will be removed in the next release" << std::endl; 00052 #endif // !DEPRECATED_MESSAGES 00053 } 00054 */ 00055 00056 eoStdoutMonitor(std::string _delim = "\t", unsigned int _width=20, char _fill=' ' ) : 00057 eoOStreamMonitor( std::cout, _delim, _width, _fill) 00058 {} 00059 00060 virtual std::string className(void) const { return "eoStdoutMonitor"; } 00061 }; 00062 00063 #endif