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:
legrand 2006-12-12 14:49:08 +00:00
commit c3aec878e5
3609 changed files with 342772 additions and 0 deletions

View file

@ -0,0 +1,58 @@
<!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: valueParam.h 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&nbsp;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&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a> | <span class="search"><u>S</u>earch&nbsp;for&nbsp;<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>&nbsp;/&nbsp;<a class="el" href="dir_000001.html">pyeo</a></div>
<h1>valueParam.h</h1><div class="fragment"><pre class="fragment">00001 <span class="preprocessor">#ifndef VALUEPARAM_H</span>
00002 <span class="preprocessor"></span><span class="preprocessor">#define VALUEPARAM_H</span>
00003 <span class="preprocessor"></span>
00004 <span class="preprocessor">#include &lt;string&gt;</span>
00005 <span class="preprocessor">#include &lt;boost/python.hpp&gt;</span>
00006
00007 <span class="keyword">class </span>ValueParam : <span class="keyword">public</span> <a class="code" href="classeo_param.html">eoParam</a> <span class="comment">// ValueParam containing python object</span>
00008 {
00009 boost::python::object obj;
00010
00011 <span class="keyword">public</span>:
00012
00013 ValueParam() : <a class="code" href="classeo_param.html">eoParam</a>(), obj() {}
00014
00015 ValueParam(boost::python::object o,
00016 std::string longName,
00017 std::string d = <span class="stringliteral">"No Description"</span>,
00018 <span class="keywordtype">char</span> s = 0,
00019 <span class="keywordtype">bool</span> r = <span class="keyword">false</span>) : <a class="code" href="classeo_param.html">eoParam</a>(longName, <span class="stringliteral">""</span>, d, s, r)
00020 {
00021 std::cerr &lt;&lt; <span class="stringliteral">"HI"</span> &lt;&lt; std::endl;
00022 obj = o;
00023 <a class="code" href="classeo_param.html#a8">eoParam::defValue</a>(<a class="code" href="classeo_param.html#a3">getValue</a>());
00024 }
00025
00026
00027 std::string <a class="code" href="classeo_param.html#a3">getValue</a>()<span class="keyword"> const</span>
00028 <span class="keyword"> </span>{
00029 boost::python::str s = boost::python::str(obj);
00030 <span class="keywordflow">return</span> std::string(boost::python::extract&lt;const char*&gt;(s));
00031 }
00032
00033 <span class="keywordtype">void</span> <a class="code" href="classeo_param.html#a4">setValue</a>(<span class="keyword">const</span> std::string&amp; v)
00034 {
00035 std::cerr &lt;&lt; <span class="stringliteral">"not implemented yet"</span> &lt;&lt; std::endl;
00036 }
00037
00038 boost::python::object getObj()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> obj;}
00039 <span class="keywordtype">void</span> setObj(boost::python::object o) { obj = o; }
00040
00041 };
00042
00043 <span class="preprocessor">#endif</span>
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Thu Oct 19 05:06:44 2006 for EO by&nbsp;
<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>