Paradiseo-eo sources added
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@40 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
bc1f453978
commit
c3aec878e5
3609 changed files with 342772 additions and 0 deletions
113
trunk/paradiseo-eo/doc/html/eo_gnuplot_8cpp-source.html
Normal file
113
trunk/paradiseo-eo/doc/html/eo_gnuplot_8cpp-source.html
Normal file
|
|
@ -0,0 +1,113 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||||
<title>EO: eoGnuplot.cpp Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- Generated by Doxygen 1.3.9.1 -->
|
||||
<div class="qindex"> <form class="search" action="search.php" method="get">
|
||||
<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div>
|
||||
<div class="nav">
|
||||
<a class="el" href="dir_000000.html">src</a> / <a class="el" href="dir_000011.html">utils</a></div>
|
||||
<h1>eoGnuplot.cpp</h1><div class="fragment"><pre class="fragment">00001 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
00002 <span class="comment">// (c) Marc Schoenauer, 2001</span>
|
||||
00003 <span class="comment">// Copyright (C) 2005 Jochen Küpper</span>
|
||||
00004 <span class="comment">/*</span>
|
||||
00005 <span class="comment"> This library is free software; you can redistribute it and/or modify it under</span>
|
||||
00006 <span class="comment"> the terms of the GNU Lesser General Public License as published by the Free</span>
|
||||
00007 <span class="comment"> Software Foundation; either version 2 of the License, or (at your option) any</span>
|
||||
00008 <span class="comment"> later version.</span>
|
||||
00009 <span class="comment"></span>
|
||||
00010 <span class="comment"> This library is distributed in the hope that it will be useful, but WITHOUT</span>
|
||||
00011 <span class="comment"> ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS</span>
|
||||
00012 <span class="comment"> FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more</span>
|
||||
00013 <span class="comment"> details.</span>
|
||||
00014 <span class="comment"></span>
|
||||
00015 <span class="comment"> You should have received a copy of the GNU Lesser General Public License</span>
|
||||
00016 <span class="comment"> along with this library; if not, write to the Free Software Foundation, Inc.,</span>
|
||||
00017 <span class="comment"> 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
|
||||
00018 <span class="comment"></span>
|
||||
00019 <span class="comment"> Contact: Marc.Schoenauer@polytechnique.fr</span>
|
||||
00020 <span class="comment"> */</span>
|
||||
00021 <span class="comment">//-----------------------------------------------------------------------------</span>
|
||||
00022
|
||||
00023 <span class="preprocessor">#ifdef HAVE_CONFIG_H</span>
|
||||
00024 <span class="preprocessor"></span><span class="preprocessor">#include <config.h></span>
|
||||
00025 <span class="preprocessor">#endif</span>
|
||||
00026 <span class="preprocessor"></span>
|
||||
00027 <span class="preprocessor">#include <sstream></span>
|
||||
00028 <span class="preprocessor">#include <stdexcept></span>
|
||||
00029
|
||||
00030 <span class="preprocessor">#include "eoGnuplot.h"</span>
|
||||
00031
|
||||
00032
|
||||
<a name="l00033"></a><a class="code" href="classeo_gnuplot.html#t0">00033</a> <span class="keywordtype">unsigned</span> <a class="code" href="classeo_gnuplot.html#t0">eoGnuplot::numWindow</a>=0;
|
||||
00034
|
||||
00035
|
||||
00036
|
||||
<a name="l00037"></a><a class="code" href="classeo_gnuplot.html#a0">00037</a> <a class="code" href="classeo_gnuplot.html#a0">eoGnuplot::eoGnuplot</a>(std::string _title, std::string _extra)
|
||||
00038 : firstTime(true)
|
||||
00039 {
|
||||
00040 <a class="code" href="classeo_gnuplot.html#b0">initGnuPlot</a>(_title, _extra);
|
||||
00041 }
|
||||
00042
|
||||
00043
|
||||
00044
|
||||
<a name="l00045"></a><a class="code" href="classeo_gnuplot.html#a1">00045</a> <a class="code" href="classeo_gnuplot.html#a1">eoGnuplot::~eoGnuplot</a>()
|
||||
00046 {
|
||||
00047 <span class="preprocessor">#ifdef HAVE_GNUPLOT</span>
|
||||
00048 <span class="preprocessor"></span> <span class="keywordflow">if</span>( gpCom ) {
|
||||
00049 PipeComSend( <a class="code" href="classeo_gnuplot.html#p1">gpCom</a>, <span class="stringliteral">"quit\n"</span> );
|
||||
00050 PipeComClose( <a class="code" href="classeo_gnuplot.html#p1">gpCom</a> );
|
||||
00051 <a class="code" href="classeo_gnuplot.html#p1">gpCom</a> =NULL;
|
||||
00052 }
|
||||
00053 <span class="preprocessor">#endif</span>
|
||||
00054 <span class="preprocessor"></span>}
|
||||
00055
|
||||
00056
|
||||
00057
|
||||
<a name="l00058"></a><a class="code" href="classeo_gnuplot.html#a3">00058</a> <span class="keywordtype">void</span> <a class="code" href="classeo_gnuplot.html#a3">eoGnuplot::gnuplotCommand</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *_command)
|
||||
00059 {
|
||||
00060 <span class="preprocessor">#ifdef HAVE_GNUPLOT</span>
|
||||
00061 <span class="preprocessor"></span> <span class="keywordflow">if</span>(gpCom) {
|
||||
00062 PipeComSend( <a class="code" href="classeo_gnuplot.html#p1">gpCom</a>, _command );
|
||||
00063 PipeComSend( <a class="code" href="classeo_gnuplot.html#p1">gpCom</a>, <span class="stringliteral">"\n"</span> );
|
||||
00064 }
|
||||
00065 <span class="preprocessor">#endif</span>
|
||||
00066 <span class="preprocessor"></span>}
|
||||
00067
|
||||
00068
|
||||
00069
|
||||
<a name="l00070"></a><a class="code" href="classeo_gnuplot.html#b0">00070</a> <span class="keywordtype">void</span> <a class="code" href="classeo_gnuplot.html#b0">eoGnuplot::initGnuPlot</a>(std::string _title, std::string _extra)
|
||||
00071 {
|
||||
00072 <span class="preprocessor">#ifdef HAVE_GNUPLOT</span>
|
||||
00073 <span class="preprocessor"></span> std::ostringstream os;
|
||||
00074 os << <span class="stringliteral">"250x150-0+"</span> << 170 * <a class="code" href="classeo_gnuplot.html#t0">numWindow</a>++;
|
||||
00075 <span class="keywordtype">char</span> *args[6];
|
||||
00076 args[0] = strdup( GNUPLOT_PROGRAM );
|
||||
00077 args[1] = strdup( <span class="stringliteral">"-geometry"</span> );
|
||||
00078 args[2] = strdup( os.str().c_str());
|
||||
00079 args[3] = strdup( <span class="stringliteral">"-title"</span> );
|
||||
00080 args[4] = strdup( _title.c_str() );
|
||||
00081 args[5] = 0;
|
||||
00082 <a class="code" href="classeo_gnuplot.html#p1">gpCom</a> = PipeComOpenArgv( GNUPLOT_PROGRAM, args );
|
||||
00083 <span class="keywordflow">if</span>(! gpCom )
|
||||
00084 <span class="keywordflow">throw</span> std::runtime_error(<span class="stringliteral">"Cannot spawn gnuplot\n"</span>);
|
||||
00085 <span class="keywordflow">else</span> {
|
||||
00086 PipeComSend( <a class="code" href="classeo_gnuplot.html#p1">gpCom</a>, <span class="stringliteral">"set grid\n"</span> );
|
||||
00087 PipeComSend( <a class="code" href="classeo_gnuplot.html#p1">gpCom</a>, _extra.c_str() );
|
||||
00088 PipeComSend( <a class="code" href="classeo_gnuplot.html#p1">gpCom</a>, <span class="stringliteral">"\n"</span> );
|
||||
00089 }
|
||||
00090 <span class="preprocessor">#endif</span>
|
||||
00091 <span class="preprocessor"></span>}
|
||||
00092
|
||||
00093
|
||||
00094
|
||||
00095 <span class="comment">// Local Variables:</span>
|
||||
00096 <span class="comment">// c-file-style: "Stroustrup"</span>
|
||||
00097 <span class="comment">// fill-column: 80</span>
|
||||
00098 <span class="comment">// End:</span>
|
||||
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Oct 19 05:06:35 2006 for EO by
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue