eoGnuplot1DMonitor.h

00001 //-----------------------------------------------------------------------------
00002 // eoGnuplot1DMonitor.h
00003 // (c) Marc Schoenauer, Maarten Keijzer and GeNeura Team, 2000
00004 /*
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public
00007    License as published by the Free Software Foundation; either
00008    version 2 of the License, or (at your option) any later version.
00009 
00010    This library 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    Lesser General Public License for more details.
00014 
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with this library; if not, write to the Free Software
00017    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 
00019    Contact: todos@geneura.ugr.es, http://geneura.ugr.es
00020              Marc.Schoenauer@polytechnique.fr
00021              mkeijzer@dhi.dk
00022  */
00023 //-----------------------------------------------------------------------------
00024 #ifndef EO_eoGnuplot1DMonitor_H
00025 #define EO_eoGnuplot1DMonitor_H
00026 
00027 #include <fstream>
00028 #include <string>
00029 
00030 #include "eoObject.h"
00031 #include "utils/eoFileMonitor.h"
00032 #include "utils/eoGnuplot.h"
00033 #include "utils/pipecom.h"
00034 
00047 class eoGnuplot1DMonitor : public eoFileMonitor, public eoGnuplot
00048 {
00049 public:
00050 
00051   // this "using" directive generates a compiler internal error in GCC 4.0.0 ...
00052   // it's been removed, and the only call to vec was replaced by this->vec in eoGnuplot1DMonitor.cpp
00053   //    using eoMonitor::vec;
00054 
00056     eoGnuplot1DMonitor(std::string _filename, bool _top=false) :
00057         eoFileMonitor(_filename, " "),
00058         eoGnuplot(_filename,(_top?"":"set key bottom"))
00059         {}
00060 
00062     virtual ~eoGnuplot1DMonitor(){}
00063 
00064     virtual eoMonitor& operator()();
00065 
00066     virtual void FirstPlot();
00067 
00069     virtual std::string className() const
00070         { return "eoGnuplot1DMonitor"; }
00071 };
00072 
00073 
00074 #endif // EO_eoGnuplot1DMonitor_H
00075 
00076 
00077 
00078 // Local Variables:
00079 // c-file-style: "Stroustrup"
00080 // comment-column: 35
00081 // fill-column: 80
00082 // mode: C++
00083 // End:

Generated on Thu Apr 19 11:02:27 2007 for EO by  doxygen 1.4.7