EvolvingObjects
eoGnuplot1DSnapshot.cpp
00001 #ifdef HAVE_CONFIG_H
00002 #include <config.h>
00003 #endif
00004 
00005 #include "eoGnuplot1DSnapshot.h"
00006 
00007 
00008 
00009 eoMonitor& eoGnuplot1DSnapshot::operator()()
00010 {
00011     // update file using the eoFileMonitor method
00012     eoFileSnapshot::operator()();
00013 #ifdef HAVE_GNUPLOT
00014     // sends plot order to gnuplot
00015     std::ostringstream os;
00016     os << "set title 'Gen. " << getCounter() << "'; plot '"
00017         // mk: had to use getFilename().c_str(),
00018         // because it seems the string(stream) lib is screwed in gcc3.2
00019        << getFileName().c_str() << "' notitle with points ps " << pointSize
00020        << std::endl;
00021     PipeComSend(gpCom, os.str().c_str());
00022 #endif
00023     return *this;
00024 }
00025 
00026 
00027 // Local Variables:
00028 // coding: iso-8859-1
00029 // mode: C++
00030 // c-file-offsets: ((c . 0))
00031 // c-file-style: "Stroustrup"
00032 // fill-column: 80
00033 // End:
 All Classes Namespaces Files Functions Variables Typedefs Friends