EvolvingObjects
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 
00049 class eoGnuplot1DMonitor : public eoFileMonitor, public eoGnuplot
00050 {
00051 public:
00052 
00053   // this "using" directive generates a compiler internal error in GCC 4.0.0 ...
00054   // it's been removed, and the only call to vec was replaced by this->vec in eoGnuplot1DMonitor.cpp
00055   //    using eoMonitor::vec;
00056 
00058     eoGnuplot1DMonitor(std::string _filename, bool _top=false) :
00059         eoFileMonitor(_filename, " "),
00060         eoGnuplot(_filename,(_top?"":"set key bottom"))
00061         {}
00062 
00064     virtual ~eoGnuplot1DMonitor(){}
00065 
00066     virtual eoMonitor& operator()();
00067 
00068     virtual void FirstPlot();
00069 
00071     virtual std::string className() const
00072         { return "eoGnuplot1DMonitor"; }
00073 };
00074 
00075 
00076 #endif // EO_eoGnuplot1DMonitor_H
00077 
00078 
00079 
00080 // Local Variables:
00081 // c-file-style: "Stroustrup"
00082 // comment-column: 35
00083 // fill-column: 80
00084 // mode: C++
00085 // End:
 All Classes Namespaces Files Functions Variables Typedefs Friends