EvolvingObjects
|
00001 //----------------------------------------------------------------------------- 00002 // eoGnuplot1DMonitor.h 00003 // (c) Marc Schoenauer, 2001 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: Marc.Schoenauer@polytechnique.fr 00020 */ 00021 //----------------------------------------------------------------------------- 00022 #ifndef EO_eoGnuplot_H 00023 #define EO_eoGnuplot_H 00024 00025 #include <string> 00026 00027 #include "pipecom.h" 00028 00029 00040 class eoGnuplot 00041 { 00042 public: 00043 00049 eoGnuplot(std::string _title, std::string _extra = std::string("")); 00050 00055 virtual ~eoGnuplot(); 00056 00058 virtual std::string className() const 00059 { return "eoGnuplot"; } 00060 00062 void gnuplotCommand(const char * _command); 00063 00068 void gnuplotCommand(std::string _command) 00069 { gnuplotCommand(_command.c_str()); } 00070 00071 00072 protected: 00073 00079 void initGnuPlot(std::string _title, std::string _extra); 00080 00082 bool firstTime; 00083 00085 PCom *gpCom; 00086 00088 static unsigned numWindow; 00089 }; 00090 00091 00092 #endif // EO_eoGnuplot_H 00093 00094 00095 00096 // Local Variables: 00097 // c-file-style: "Stroustrup" 00098 // comment-column: 35 00099 // fill-column: 80 00100 // mode: C++ 00101 // End: