# 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
    00014 #ifdef HAVE_GNUPLOT
    00015     // sends plot order to gnuplot
    00016     std::ostringstream os;
    00017     os << "set title 'Gen. " << getCounter() << "'; plot '"
    00018         // mk: had to use getFilename().c_str(),
    00019         // because it seems the string(stream) lib is screwed in gcc3.2
    00020        << getFileName().c_str() << "' notitle with points ps " << pointSize
    00021        << std::endl;
    00022     PipeComSend(gpCom, os.str().c_str());
    00023 #endif
    00024     return *this;
    00025 }
    00026
    00027
    00028
    00029 // Local Variables:
    00030 // c-file-style: "Stroustrup"
    00031 // fill-column: 80
    00032 // End: