My Project
|
Gnuplot interface. More...
#include <GnuplotInterface.hh>
Public Member Functions | |
GnuplotInterface (string Command="gnuplot") | |
~GnuplotInterface () | |
void | ExeCommand (string Command) |
void | e (string Command) |
void | ExeCommandSave (string Command) |
void | Clear () |
void | Dump () |
void | Save (string FileName) |
void | Replot () |
Gnuplot interface.
Gnuplot in your system is called and gnuplot commands are passed with this class. Each gnuplot command is passed to the gnuplot through the standard input of the Gnuplot connected by the constructor, and each gnuplot command is stored in this class object. The history of the gnuplot command can be shown and saved to files.
GnuplotInterface::GnuplotInterface | ( | string | Command = "gnuplot" | ) |
Constructor. If Gnuplot is not installed with its command name is "gnuplot" in your system, you must specify your gnuplot command.
Destructor. Gnuplot called by the constructor is terminated.
void GnuplotInterface::Clear | ( | ) |
The buffer storing command history is initialized. See the comment of "Save(string)".
void GnuplotInterface::Dump | ( | ) |
The contents of the buffer storing command history is shown to std-out.
void GnuplotInterface::e | ( | string | Command | ) | [inline] |
Alias of ExeCommand(string)
void GnuplotInterface::ExeCommand | ( | string | Command | ) |
The argument of this method is sent to Gnuplot called by the constructor.
void GnuplotInterface::Replot | ( | ) |
The contents of the butter storing command history is executed with this command.
void GnuplotInterface::Save | ( | string | FileName | ) |
The contents of the butter storing command history is saved to the file named "FileName".