diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/classNLAIPYSERVER_1_1CPyExport.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to 'docs/doxygen/nel/classNLAIPYSERVER_1_1CPyExport.html')
-rw-r--r-- | docs/doxygen/nel/classNLAIPYSERVER_1_1CPyExport.html | 1270 |
1 files changed, 1270 insertions, 0 deletions
diff --git a/docs/doxygen/nel/classNLAIPYSERVER_1_1CPyExport.html b/docs/doxygen/nel/classNLAIPYSERVER_1_1CPyExport.html new file mode 100644 index 00000000..8a07fc6e --- /dev/null +++ b/docs/doxygen/nel/classNLAIPYSERVER_1_1CPyExport.html @@ -0,0 +1,1270 @@ +<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> +<HTML> +<HEAD> + <TITLE>nevrax.org : docs</TITLE> + <LINK REL=stylesheet TYPE="text/css" HREF="http://www.nevrax.org/inc/css/nevrax.css"> + <link href="doxygen.css" rel="stylesheet" type="text/css"> +</HEAD> +<BODY MARGINHEIGHT="0" MARGINWIDTH="0"> + +<!-- uplinks --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.org><b>Home</B></FONT></A> </TD> + <TD><IMG width=6 height=14 SRC="http://www.nevrax.org/inc/img/reddots.gif" ALT="#" VSPACE=2 HSPACE=2 BORDER=0 ></TD><TD VALIGN=middle> <A CLASS=uplinks HREF=http://www.nevrax.com><b>nevrax.com</B></FONT></A> </TD> + </TR> +</TABLE> + +<!-- banner Nevrax --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 WIDTH=100%> + <TR><TD BGCOLOR="#000000" BACKGROUND="http://www.nevrax.org/inc/img/black_banner.jpg"><A HREF="http://www.nevrax.org"><IMG SRC="http://www.nevrax.org/inc/img/nevrax.gif" WIDTH="170" HEIGHT="45" BORDER=0 ALT="Nevrax" ></A></TD></TR> +</TABLE> + +<!-- main table --> +<TABLE CELLSPACING=0 CELLPADDING=0 BORDER=0 height=100%> + <TR> + <TD WIDTH=16><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="10" BORDER=0 ALT=""></TD> + <TD WIDTH=140 BGCOLOR=#dddddd VALIGN=TOP ALIGN=middle><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + + <!------ Begin Box ------> + <TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 BGCOLOR=black><TR><TD><TABLE border=0 cellspacing=2 cellpadding=0 width=120><tr><TD ALIGN=middle bgcolor=black> + <FONT COLOR=white FACE="sans-serif"><B>Nevrax.org</B></FONT></TD></TR><tr><td colspan=2 bgcolor=#FFFFFF> + <TABLE cellspacing=0 cellpadding=1 border=0> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="Rubrique news"><img width=13 height=15 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-news.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/news/" TITLE="News">News</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Rubrique mail"><img width=15 height=11 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-mail.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/mail/" TITLE="Mailing list archive">Mailing-list</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Rubrique docs"><img width=14 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-docs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/docs/" TITLE="Documentation">Documentation</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="Rubrique cvs"><img width=13 height=17 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-cvs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/cvs/" TITLE="CVS Web">CVS</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Rubrique bugs"><img width=20 height=16 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-bugs.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/bugs/" TITLE="Bugtracking">Bugs</a></td></tr> + <tr><td ALIGN=middle><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="Rubrique license"><img width=18 height=12 hspace=5 border=0 src=http://www.nevrax.org/inc/img/picto-gpl.gif ALT=#></A></td><td><a class='linkbox' href="http://www.nevrax.org/GPL.php3" TITLE="License">License</a></td></tr> + </TABLE> + </TD></TR></TABLE></TD></TR></TABLE> + <!------ End Box ------> + + </TD> + <TD WIDTH=15><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="16" HEIGHT="16" BORDER=0 ALT=""></TD> + <TD ALIGN=left valign=top><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="140" HEIGHT="10" BORDER=0 ALT=""> + +<!-- title --> +<TABLE background="http://www.nevrax.org/inc/img/redline.gif" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td> +<A HREF="http://www.nevrax.org/docs/"><img src="http://www.nevrax.org/inc/img/t_docs.gif" ALT="Docs" HEIGHT=20 BORDER=0></A> +</td><td><IMG SRC="http://www.nevrax.org/inc/img/pixel.gif" WIDTH="1" HEIGHT="1" BORDER=0 ALT=""> +</td></tr></table> + + +<!-- block --> +<TABLE bgcolor="#dddddd" CELLSPACING=0 CELLPADDING=0 BORDER=0 width=100%><tr><td width=1% valign=middle><img width=6 height=14 hspace=2 vspace=2 src="http://www.nevrax.org/inc/img/reddots.gif"></TD> + <TD><B>Documentation</B></TD> + <TD ALIGN=RIGHT> </td> +</tr></table> +<!-- Generated by Doxygen 1.2.14 --> +<center> +<a class="qindex" href="index.html">Main Page</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">Compound 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">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> <a class="qindex" href="pages.html">Related Pages</a> <a class="qindexRef" doxygen="_cgi:http://www.nevrax.org/cgi-bin/nel-search.cgi" href="http://www.nevrax.org/cgi-bin/nel-search.cgi">Search</a> </center> +<hr><h1>NLAIPYSERVER::CPyExport Class Reference</h1><code>#include <<a class="el" href="pylib_8h-source.html">pylib.h</a>></code> +<p> +<a href="classNLAIPYSERVER_1_1CPyExport-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> +<tr><td colspan=2><br><h2>Public Methods</h2></td></tr> +<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#a0">CPyExport</a> ()</td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#a1">setDebug</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Met le Mode debug à ON.</em> <a href="#a1">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="types__nl_8h.html#a9">sint32</a> </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#a2">getDebugStat</a> ()</td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#a3">unSetDebug</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Met le Mode debug à OFF.</em> <a href="#a3">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#a4">isDebug</a> ()</td></tr> +<tr><td> </td><td><font size=-1><em>Check the debug mode state.</em> <a href="#a4">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="types__nl_8h.html#a9">sint32</a> </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#a5">runCode</a> (const char *Code, char *NameSpace=NULL, <a class="el" href="types__nl_8h.html#a9">sint32</a> ModeExec=Py_file_input, char *Format=NULL, void *ResultTarget=NULL, <a class="el" href="types__nl_8h.html#a9">sint32</a> Error=true)</td></tr> +<tr><td> </td><td><font size=-1><em>Execution d'instruction Python dans le mode (Debug/Release) on fonction de l'etat de _DebugMode.</em> <a href="#a5">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="types__nl_8h.html#a9">sint32</a> </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#a6">runMethod</a> (PyObject *Obj, char *MethodName, char *ResFormat, void *ResTarget, char *Format,...)</td></tr> +<tr><td> </td><td><font size=-1><em>Execution d'une methode membre d'un objet Python dans le mode (Debug/Release) on fonction de l'etat de _DebugMode.</em> <a href="#a6">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="types__nl_8h.html#a9">sint32</a> </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#a7">runFunction</a> (char *ModuleName, char *MethodName, char *ResFormat, void *ResTarget, char *Format,...)</td></tr> +<tr><td> </td><td><font size=-1><em>Execution d'une fonctio membre d'un module Python dans le mode (Debug/Release) on fonction de l'etat de _DebugMode.</em> <a href="#a7">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="types__nl_8h.html#a9">sint32</a> </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#a8">getMembreValue</a> (PyObject *Obj, char *AttribName, char *ResFormat, void *ResTarget)</td></tr> +<tr><td> </td><td><font size=-1><em>Obtenir la valeur d'un attribut dans un objet Python.</em> <a href="#a8">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="types__nl_8h.html#a9">sint32</a> </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#a9">setMembreValue</a> (PyObject *Obj, char *AttribName, char *ResFormat,...)</td></tr> +<tr><td> </td><td><font size=-1><em>Changer la valeur d'un attribut dans un objet Python.</em> <a href="#a9">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top>char * </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#a10">getCodeFromFile</a> (const char *FileName)</td></tr> +<tr><td> </td><td><font size=-1><em>permet d'avoir un poiteur sur le contenu d'un fichier text, le pointeur est à detruir par l'utulisateur.</em> <a href="#a10">More...</a><em></em></font><br><br></td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="types__nl_8h.html#a9">sint32</a> </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#a11">getGlobal</a> (char *NameSpace, char *VarName, char *Format, void *VarValue)</td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="types__nl_8h.html#a9">sint32</a> </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#a12">setGlobal</a> (char *NameSpace, char *VarName, char *Format,...)</td></tr> +<tr><td nowrap align=right valign=top>PyObject * </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#a13">addModule</a> (char *, PyMethodDef *)</td></tr> +<tr><td nowrap align=right valign=top>PyObject * </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#a14">getRefVar</a> (char *VarName)</td></tr> +<tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#a15">~CPyExport</a> ()</td></tr> +<tr><td colspan=2><br><h2>Static Public Methods</h2></td></tr> +<tr><td nowrap align=right valign=top>const char * </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#d0">getPathSeparator</a> ()</td></tr> +<tr><td colspan=2><br><h2>Private Methods</h2></td></tr> +<tr><td nowrap align=right valign=top>const char * </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#c0">getNameSpace</a> (const char *Name) const</td></tr> +<tr><td nowrap align=right valign=top>PyObject * </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#c1">loadAttruibut</a> (char *, char *)</td></tr> +<tr><td nowrap align=right valign=top>PyObject * </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#c2">loadModule</a> (char *)</td></tr> +<tr><td nowrap align=right valign=top><a class="el" href="types__nl_8h.html#a9">sint32</a> </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#c3">convertResult</a> (PyObject *Result, char *Format, void *Target)</td></tr> +<tr><td nowrap align=right valign=top>PyObject * </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#c4">debugFunction</a> (PyObject *Func, PyObject *Arg)</td></tr> +<tr><td nowrap align=right valign=top>PyObject * </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#c5">debugCode</a> (<a class="el" href="types__nl_8h.html#a9">sint32</a> RunMode, const char *code, PyObject *ModDict)</td></tr> +<tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#c6">printLastError</a> ()</td></tr> +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td nowrap align=right valign=top>bool </td><td valign=bottom><a class="el" href="classNLAIPYSERVER_1_1CPyExport.html#o0">_DebugMode</a></td></tr> +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a name="a0" doxytag="NLAIPYSERVER::CPyExport::CPyExport"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLAIPYSERVER::CPyExport::CPyExport </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="pylib_8h-source.html#l00033">33</a> of file <a class="el" href="pylib_8h-source.html">pylib.h</a>. +<p> +References <a class="el" href="pylib_8h-source.html#l00017">_DebugMode</a>. </td> + </tr> +</table> +<a name="a15" doxytag="NLAIPYSERVER::CPyExport::~CPyExport"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLAIPYSERVER::CPyExport::~CPyExport </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="pylib_8h-source.html#l00220">220</a> of file <a class="el" href="pylib_8h-source.html">pylib.h</a>. </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a name="a13" doxytag="NLAIPYSERVER::CPyExport::addModule"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> PyObject * NLAIPYSERVER::CPyExport::addModule </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">char * </td> + <td class="mdname" nowrap> , </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>PyMethodDef * </td> + <td class="mdname" nowrap> </td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="pylib_8cpp-source.html#l00298">298</a> of file <a class="el" href="pylib_8cpp-source.html">pylib.cpp</a>. </td> + </tr> +</table> +<a name="c3" doxytag="NLAIPYSERVER::CPyExport::convertResult"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="types__nl_8h.html#a9">sint32</a> NLAIPYSERVER::CPyExport::convertResult </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">PyObject * </td> + <td class="mdname" nowrap> <em>Result</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>Format</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>void * </td> + <td class="mdname" nowrap> <em>Target</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="pylib_8cpp-source.html#l00062">62</a> of file <a class="el" href="pylib_8cpp-source.html">pylib.cpp</a>. +<p> +References <a class="el" href="types__nl_8h-source.html#l00193">sint32</a>. +<p> +Referenced by <a class="el" href="pylib_8cpp-source.html#l00251">getGlobal</a>, <a class="el" href="pylib_8cpp-source.html#l00226">getMembreValue</a>, <a class="el" href="pylib_8cpp-source.html#l00147">runCode</a>, <a class="el" href="pylib_8cpp-source.html#l00117">runFunction</a>, and <a class="el" href="pylib_8cpp-source.html#l00184">runMethod</a>. </td> + </tr> +</table> +<a name="c5" doxytag="NLAIPYSERVER::CPyExport::debugCode"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> PyObject * NLAIPYSERVER::CPyExport::debugCode </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="types__nl_8h.html#a9">sint32</a> </td> + <td class="mdname" nowrap> <em>RunMode</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>const char * </td> + <td class="mdname" nowrap> <em>code</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>PyObject * </td> + <td class="mdname" nowrap> <em>ModDict</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="pylib_8cpp-source.html#l00102">102</a> of file <a class="el" href="pylib_8cpp-source.html">pylib.cpp</a>. +<p> +References <a class="el" href="pylib_8cpp-source.html#l00117">runFunction</a>, and <a class="el" href="types__nl_8h-source.html#l00193">sint32</a>. +<p> +Referenced by <a class="el" href="pylib_8cpp-source.html#l00147">runCode</a>. </td> + </tr> +</table> +<a name="c4" doxytag="NLAIPYSERVER::CPyExport::debugFunction"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> PyObject * NLAIPYSERVER::CPyExport::debugFunction </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">PyObject * </td> + <td class="mdname" nowrap> <em>Func</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>PyObject * </td> + <td class="mdname" nowrap> <em>Arg</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="pylib_8cpp-source.html#l00087">87</a> of file <a class="el" href="pylib_8cpp-source.html">pylib.cpp</a>. +<p> +Referenced by <a class="el" href="pylib_8cpp-source.html#l00117">runFunction</a>, and <a class="el" href="pylib_8cpp-source.html#l00184">runMethod</a>. </td> + </tr> +</table> +<a name="a10" doxytag="NLAIPYSERVER::CPyExport::getCodeFromFile"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> char * NLAIPYSERVER::CPyExport::getCodeFromFile </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>FileName</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +permet d'avoir un poiteur sur le contenu d'un fichier text, le pointeur est à detruir par l'utulisateur. +<p> + +<p> +Definition at line <a class="el" href="pylib_8cpp-source.html#l00303">303</a> of file <a class="el" href="pylib_8cpp-source.html">pylib.cpp</a>. +<p> +References <a class="el" href="types__nl_8h-source.html#l00193">sint32</a>, and <a class="el" href="types__nl_8h-source.html#l00192">uint16</a>. </td> + </tr> +</table> +<a name="a2" doxytag="NLAIPYSERVER::CPyExport::getDebugStat"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="types__nl_8h.html#a9">sint32</a> NLAIPYSERVER::CPyExport::getDebugStat </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="pylib_8h-source.html#l00046">46</a> of file <a class="el" href="pylib_8h-source.html">pylib.h</a>. +<p> +References <a class="el" href="pylib_8h-source.html#l00017">_DebugMode</a>, and <a class="el" href="types__nl_8h-source.html#l00193">sint32</a>. </td> + </tr> +</table> +<a name="a11" doxytag="NLAIPYSERVER::CPyExport::getGlobal"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="types__nl_8h.html#a9">sint32</a> NLAIPYSERVER::CPyExport::getGlobal </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">char * </td> + <td class="mdname" nowrap> <em>NameSpace</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>VarName</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>Format</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>void * </td> + <td class="mdname" nowrap> <em>VarValue</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="pylib_8cpp-source.html#l00251">251</a> of file <a class="el" href="pylib_8cpp-source.html">pylib.cpp</a>. +<p> +References <a class="el" href="pylib_8cpp-source.html#l00062">convertResult</a>, <a class="el" href="pylib_8cpp-source.html#l00052">loadAttruibut</a>, and <a class="el" href="types__nl_8h-source.html#l00193">sint32</a>. </td> + </tr> +</table> +<a name="a8" doxytag="NLAIPYSERVER::CPyExport::getMembreValue"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="types__nl_8h.html#a9">sint32</a> NLAIPYSERVER::CPyExport::getMembreValue </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">PyObject * </td> + <td class="mdname" nowrap> <em>Obj</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>AttribName</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>ResFormat</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>void * </td> + <td class="mdname" nowrap> <em>ResTarget</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Obtenir la valeur d'un attribut dans un objet Python. +<p> +Obj: pointeur sur une instance d'un Objet python (voir l'exemple plus haut). +<p> +AttribName: Le nom de l'attribut à obtenir. +<p> +ResFormat: Type du resultat attendu. +<p> +ResTarget: pointeur pour resevoir le resultat de l'appelle de la fonction. +<p> +<div class="fragment"><pre>exemple: + + <a class="code" href="types__nl_8h.html#a9">sint32</a> PyLeXDeA; + <a class="code" href="types__nl_8h.html#a9">sint32</a> PyLeYDeA; + pExePythonExpression->GetMembreValue(PyObjetA,<font class="stringliteral">"X"</font>,<font class="stringliteral">"i"</font>,&PyLeXDeA); + pExePythonExpression->GetMembreValue(PyObjetA,<font class="stringliteral">"Y"</font>,<font class="stringliteral">"i"</font>,&PyLeYDeA); +</pre></div> +<p> +return: 0 Ok; -1 ehec. +<p> +Definition at line <a class="el" href="pylib_8cpp-source.html#l00226">226</a> of file <a class="el" href="pylib_8cpp-source.html">pylib.cpp</a>. +<p> +References <a class="el" href="pylib_8cpp-source.html#l00062">convertResult</a>, and <a class="el" href="types__nl_8h-source.html#l00193">sint32</a>. </td> + </tr> +</table> +<a name="c0" doxytag="NLAIPYSERVER::CPyExport::getNameSpace"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const char* NLAIPYSERVER::CPyExport::getNameSpace </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname1" valign="top" nowrap> <em>Name</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap> const<code> [inline, private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="pylib_8h-source.html#l00019">19</a> of file <a class="el" href="pylib_8h-source.html">pylib.h</a>. +<p> +Referenced by <a class="el" href="pylib_8cpp-source.html#l00052">loadAttruibut</a>, and <a class="el" href="pylib_8cpp-source.html#l00033">loadModule</a>. </td> + </tr> +</table> +<a name="d0" doxytag="NLAIPYSERVER::CPyExport::getPathSeparator"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const char * NLAIPYSERVER::CPyExport::getPathSeparator </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [static]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="pylib_8cpp-source.html#l00334">334</a> of file <a class="el" href="pylib_8cpp-source.html">pylib.cpp</a>. +<p> +References <a class="el" href="driver__opengl__extension__def_8h-source.html#l00473">s</a>. </td> + </tr> +</table> +<a name="a14" doxytag="NLAIPYSERVER::CPyExport::getRefVar"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> PyObject * NLAIPYSERVER::CPyExport::getRefVar </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">char * </td> + <td class="mdname1" valign="top" nowrap> <em>VarName</em> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="pylib_8cpp-source.html#l00283">283</a> of file <a class="el" href="pylib_8cpp-source.html">pylib.cpp</a>. +<p> +References <a class="el" href="pylib_8cpp-source.html#l00147">runCode</a>, and <a class="el" href="ident__type_8cpp-source.html#l00079">NLAIC::stringGetBuild</a>. </td> + </tr> +</table> +<a name="a4" doxytag="NLAIPYSERVER::CPyExport::isDebug"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLAIPYSERVER::CPyExport::isDebug </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Check the debug mode state. +<p> + +<p> +Definition at line <a class="el" href="pylib_8h-source.html#l00059">59</a> of file <a class="el" href="pylib_8h-source.html">pylib.h</a>. +<p> +References <a class="el" href="pylib_8h-source.html#l00017">_DebugMode</a>. +<p> +Referenced by <a class="el" href="pylib_8cpp-source.html#l00147">runCode</a>, <a class="el" href="pylib_8cpp-source.html#l00117">runFunction</a>, and <a class="el" href="pylib_8cpp-source.html#l00184">runMethod</a>. </td> + </tr> +</table> +<a name="c1" doxytag="NLAIPYSERVER::CPyExport::loadAttruibut"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> PyObject * NLAIPYSERVER::CPyExport::loadAttruibut </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">char * </td> + <td class="mdname" nowrap> , </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> </td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><code> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="pylib_8cpp-source.html#l00052">52</a> of file <a class="el" href="pylib_8cpp-source.html">pylib.cpp</a>. +<p> +References <a class="el" href="pylib_8h-source.html#l00019">getNameSpace</a>, and <a class="el" href="pylib_8cpp-source.html#l00033">loadModule</a>. +<p> +Referenced by <a class="el" href="pylib_8cpp-source.html#l00251">getGlobal</a>, and <a class="el" href="pylib_8cpp-source.html#l00117">runFunction</a>. </td> + </tr> +</table> +<a name="c2" doxytag="NLAIPYSERVER::CPyExport::loadModule"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> PyObject * NLAIPYSERVER::CPyExport::loadModule </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">char * </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="pylib_8cpp-source.html#l00033">33</a> of file <a class="el" href="pylib_8cpp-source.html">pylib.cpp</a>. +<p> +References <a class="el" href="pylib_8h-source.html#l00019">getNameSpace</a>. +<p> +Referenced by <a class="el" href="pylib_8cpp-source.html#l00052">loadAttruibut</a>, <a class="el" href="pylib_8cpp-source.html#l00147">runCode</a>, and <a class="el" href="pylib_8cpp-source.html#l00260">setGlobal</a>. </td> + </tr> +</table> +<a name="c6" doxytag="NLAIPYSERVER::CPyExport::printLastError"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLAIPYSERVER::CPyExport::printLastError </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<a name="a5" doxytag="NLAIPYSERVER::CPyExport::runCode"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="types__nl_8h.html#a9">sint32</a> NLAIPYSERVER::CPyExport::runCode </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const char * </td> + <td class="mdname" nowrap> <em>Code</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>NameSpace</em> = NULL, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="types__nl_8h.html#a9">sint32</a> </td> + <td class="mdname" nowrap> <em>ModeExec</em> = Py_file_input, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>Format</em> = NULL, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>void * </td> + <td class="mdname" nowrap> <em>ResultTarget</em> = NULL, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap><a class="el" href="types__nl_8h.html#a9">sint32</a> </td> + <td class="mdname" nowrap> <em>Error</em> = true</td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Execution d'instruction Python dans le mode (Debug/Release) on fonction de l'etat de _DebugMode. +<p> +Code: est le texte contenant les instruction Python à executer. Attention generalement les editeurs windows produit des fin de ligne marquer par les caractéres <br> +\r, l'interpréteur Python n'aime pas du tout le caractaire \r en fin de ligne donc il faut filtrer le texte à executer avant l'appelle à cette procedure, c'est à dire convertire tout \r en <br> +. Ou utiliser la methode GetCodeFromFile. +<p> +NameSpace: Le name space du code à executer. NULL c'est le name space Python par defaut c'est à dire __main__. +<p> +ModeExec: Le type d'excecution. Ce type peut être par defaut execution normal (file_input), ou evalution d'expression (eval_input). +<p> +Format: Le type de parametre dans le cas ou l'execution se fait avec eval_input. ce type peut être "O" (Objet); "i" (intger) ........ ; voir la doc Python. +<p> +ResultTarget: Pointeur sur un pointeur pour resevoir le resultat d'evaluation. <div class="fragment"><pre>Exemple: + pExePythonExpression->RunCode( <font class="stringliteral">"class C():\n"</font> + <font class="stringliteral">"\t def __init__(self):\n"</font> + <font class="stringliteral">"\t\t self.x = 5\n"</font> + <font class="stringliteral">"\t\t self.y = 25\n"</font> + <font class="stringliteral">"\t def M(self, nX, nY):\n"</font> + <font class="stringliteral">"\t\t return self.x*nX,self.y*nY\n"</font>); + PyObject *PyObjetA; + pExePythonExpression->RunCode(<font class="stringliteral">"A = C()"</font>,NULL,eval_input,<font class="stringliteral">"O"</font>,&PyObjetA); +</pre></div> +<p> +avec eval_input PyObjetA est le pointeur sur l'instance de l'Objet Python A crée dans Python +<p> +return: 0 Ok; -1 ehec. +<p> +Definition at line <a class="el" href="pylib_8cpp-source.html#l00147">147</a> of file <a class="el" href="pylib_8cpp-source.html">pylib.cpp</a>. +<p> +References <a class="el" href="pylib_8cpp-source.html#l00062">convertResult</a>, <a class="el" href="pylib_8cpp-source.html#l00102">debugCode</a>, <a class="el" href="namespaceNLNET.html#a162a18">NLNET::Error</a>, <a class="el" href="pylib_8h-source.html#l00059">isDebug</a>, <a class="el" href="pylib_8cpp-source.html#l00033">loadModule</a>, and <a class="el" href="types__nl_8h-source.html#l00193">sint32</a>. +<p> +Referenced by <a class="el" href="pylib_8cpp-source.html#l00283">getRefVar</a>. </td> + </tr> +</table> +<a name="a7" doxytag="NLAIPYSERVER::CPyExport::runFunction"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="types__nl_8h.html#a9">sint32</a> NLAIPYSERVER::CPyExport::runFunction </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">char * </td> + <td class="mdname" nowrap> <em>ModuleName</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>MethodName</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>ResFormat</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>void * </td> + <td class="mdname" nowrap> <em>ResTarget</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>Format</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>... </td> + <td class="mdname" nowrap> </td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Execution d'une fonctio membre d'un module Python dans le mode (Debug/Release) on fonction de l'etat de _DebugMode. +<p> +ModuleName: Nom du module contenant la fonction à executer. +<p> +MethodName: Le nom de la fonction à executer. +<p> +ResFormat: Type du resultat attendu. +<p> +ResTarget: pointeur pour resevoir le resultat de l'appelle de la fonction. +<p> +Format: Le type de l'argument par exemple: ResFormat "(iiO)" (2 sint32 et un pointeur sur un objet python). viennent ensuite se déposer sur la pile les valeurs de l'argument. return: 0 Ok; -1 ehec. +<p> +Definition at line <a class="el" href="pylib_8cpp-source.html#l00117">117</a> of file <a class="el" href="pylib_8cpp-source.html">pylib.cpp</a>. +<p> +References <a class="el" href="pylib_8cpp-source.html#l00062">convertResult</a>, <a class="el" href="pylib_8cpp-source.html#l00087">debugFunction</a>, <a class="el" href="pylib_8h-source.html#l00059">isDebug</a>, <a class="el" href="pylib_8cpp-source.html#l00052">loadAttruibut</a>, and <a class="el" href="types__nl_8h-source.html#l00193">sint32</a>. +<p> +Referenced by <a class="el" href="pylib_8cpp-source.html#l00102">debugCode</a>. </td> + </tr> +</table> +<a name="a6" doxytag="NLAIPYSERVER::CPyExport::runMethod"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="types__nl_8h.html#a9">sint32</a> NLAIPYSERVER::CPyExport::runMethod </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">PyObject * </td> + <td class="mdname" nowrap> <em>Obj</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>MethodName</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>ResFormat</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>void * </td> + <td class="mdname" nowrap> <em>ResTarget</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>Format</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>... </td> + <td class="mdname" nowrap> </td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Execution d'une methode membre d'un objet Python dans le mode (Debug/Release) on fonction de l'etat de _DebugMode. +<p> +Obj: pointeur sur une instance d'un Objet python (voir l'exemple plus haut). +<p> +MethodName: Le nom de la methode membre à executer (je rappelle qu'en python tout est public). +<p> +ResFormat: Type du resultat attendu. +<p> +ResTarget: pointeur pour resevoir le resultat de l'appelle de la methode. +<p> +Format: Le type de l'argument par exemple: ResFormat "(iiO)" (2 sint32 et un pointeur sur un objet python). viennent ensuite se déposer sur la pile les valeurs de l'argument. <div class="fragment"><pre>exemple: + PyObject *PyObjetA,*PyObjetResult; + pExePythonExpression->RunCode(<font class="stringliteral">"A = C()"</font>,NULL,eval_input,<font class="stringliteral">"O"</font>,&PyObjetA); + pExePythonExpression->RunMethod(PyObjetA,<font class="stringliteral">"M"</font>,<font class="stringliteral">"O"</font>,PyObjetResult,<font class="stringliteral">"ii"</font>,5,16); +</pre></div> +<p> +Le resulta sera un tupule Python du type(25,400); +<p> +return: 0 Ok; -1 ehec. +<p> +Definition at line <a class="el" href="pylib_8cpp-source.html#l00184">184</a> of file <a class="el" href="pylib_8cpp-source.html">pylib.cpp</a>. +<p> +References <a class="el" href="pylib_8cpp-source.html#l00062">convertResult</a>, <a class="el" href="pylib_8cpp-source.html#l00087">debugFunction</a>, <a class="el" href="pylib_8h-source.html#l00059">isDebug</a>, and <a class="el" href="types__nl_8h-source.html#l00193">sint32</a>. </td> + </tr> +</table> +<a name="a1" doxytag="NLAIPYSERVER::CPyExport::setDebug"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLAIPYSERVER::CPyExport::setDebug </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Met le Mode debug à ON. +<p> + +<p> +Definition at line <a class="el" href="pylib_8h-source.html#l00041">41</a> of file <a class="el" href="pylib_8h-source.html">pylib.h</a>. +<p> +References <a class="el" href="pylib_8h-source.html#l00017">_DebugMode</a>. </td> + </tr> +</table> +<a name="a12" doxytag="NLAIPYSERVER::CPyExport::setGlobal"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="types__nl_8h.html#a9">sint32</a> NLAIPYSERVER::CPyExport::setGlobal </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">char * </td> + <td class="mdname" nowrap> <em>NameSpace</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>VarName</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>Format</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>... </td> + <td class="mdname" nowrap> </td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="pylib_8cpp-source.html#l00260">260</a> of file <a class="el" href="pylib_8cpp-source.html">pylib.cpp</a>. +<p> +References <a class="el" href="pylib_8cpp-source.html#l00033">loadModule</a>, and <a class="el" href="types__nl_8h-source.html#l00193">sint32</a>. </td> + </tr> +</table> +<a name="a9" doxytag="NLAIPYSERVER::CPyExport::setMembreValue"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="types__nl_8h.html#a9">sint32</a> NLAIPYSERVER::CPyExport::setMembreValue </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">PyObject * </td> + <td class="mdname" nowrap> <em>Obj</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>AttribName</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>char * </td> + <td class="mdname" nowrap> <em>ResFormat</em>, </td> + </tr> + <tr> + <td></td> + <td></td> + <td class="md" nowrap>... </td> + <td class="mdname" nowrap> </td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Changer la valeur d'un attribut dans un objet Python. +<p> +Obj: pointeur sur une instance d'un Objet python (voir l'exemple plus haut). +<p> +AttribName: Le nom de l'attribut à obtenir. +<p> +ResFormat: Type du resultat attendu. vient ensuite la valeur de l'attribut. +<p> +<div class="fragment"><pre>exemple: + pExePythonExpression->SetMembreValue(PyObjetA,<font class="stringliteral">"X"</font>,<font class="stringliteral">"i"</font>,20); + pExePythonExpression->SetMembreValue(PyObjetA,<font class="stringliteral">"Y"</font>,<font class="stringliteral">"i"</font>,2); + pExePythonExpression->RunMethod(PyObjetA,<font class="stringliteral">"M"</font>,<font class="stringliteral">"O"</font>,PyObjetResult,<font class="stringliteral">"ii"</font>,5,16); +</pre></div> +<p> +Le resulta sera un tupule Python du type(100,30); return: 0 Ok; -1 ehec. +<p> +Definition at line <a class="el" href="pylib_8cpp-source.html#l00239">239</a> of file <a class="el" href="pylib_8cpp-source.html">pylib.cpp</a>. +<p> +References <a class="el" href="types__nl_8h-source.html#l00193">sint32</a>. </td> + </tr> +</table> +<a name="a3" doxytag="NLAIPYSERVER::CPyExport::unSetDebug"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLAIPYSERVER::CPyExport::unSetDebug </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top">) </td> + <td class="md" nowrap><code> [inline]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Met le Mode debug à OFF. +<p> + +<p> +Definition at line <a class="el" href="pylib_8h-source.html#l00052">52</a> of file <a class="el" href="pylib_8h-source.html">pylib.h</a>. +<p> +References <a class="el" href="pylib_8h-source.html#l00017">_DebugMode</a>. </td> + </tr> +</table> +<hr><h2>Member Data Documentation</h2> +<a name="o0" doxytag="NLAIPYSERVER::CPyExport::_DebugMode"></a><p> +<table width="100%" cellpadding="2" cellspacing="0" border="0"> + <tr> + <td class="md"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool NLAIPYSERVER::CPyExport::_DebugMode<code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="pylib_8h-source.html#l00017">17</a> of file <a class="el" href="pylib_8h-source.html">pylib.h</a>. +<p> +Referenced by <a class="el" href="pylib_8h-source.html#l00033">CPyExport</a>, <a class="el" href="pylib_8h-source.html#l00046">getDebugStat</a>, <a class="el" href="pylib_8h-source.html#l00059">isDebug</a>, <a class="el" href="pylib_8h-source.html#l00041">setDebug</a>, and <a class="el" href="pylib_8h-source.html#l00052">unSetDebug</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="pylib_8h-source.html">pylib.h</a><li><a class="el" href="pylib_8cpp-source.html">pylib.cpp</a></ul> + + +<!-- footer --> +<BR><FONT Size=+5> </FONT> +</TD> +<TD WIDTH=15><IMG SRC=http://www.nevrax.org/inc/img/pixel.gif WIDTH=15 HEIGHT=15 BORDER=0 ALT=""></TD> +</TR> +</TABLE> +</BODY> +</HTML> |