diff options
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/a02396.html | 413 |
1 files changed, 413 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02396.html b/docs/doxygen/nel/a02396.html new file mode 100644 index 00000000..ae396221 --- /dev/null +++ b/docs/doxygen/nel/a02396.html @@ -0,0 +1,413 @@ +<!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>NeL: NLAIAGENT::CComponentHandle class Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.6 --> +<div class="qindex"> <form class="search" action="search.php" method="get"> +<a class="qindex" href="main.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">Data Structures</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">Data Fields</a> | <a class="qindex" href="globals.html">Globals</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> +<h1>NLAIAGENT::CComponentHandle Class Reference</h1><code>#include <<a class="el" href="a05588.html">comp_handle.h</a>></code> +<p> +<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02396.html#NLAIAGENT_1_1CComponentHandlea0">CComponentHandle</a> (const <a class="el" href="a02661.html">IVarName</a> &comp_name, <a class="el" href="a02163.html">IAgent</a> *comp_father, bool get=false)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02396.html#NLAIAGENT_1_1CComponentHandlea1">CComponentHandle</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02661.html">IVarName</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02396.html#NLAIAGENT_1_1CComponentHandlea2">getCompName</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02396.html#NLAIAGENT_1_1CComponentHandlea3">getComponent</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02149.html">IObjectIA</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02396.html#NLAIAGENT_1_1CComponentHandlea4">getValue</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02396.html#NLAIAGENT_1_1CComponentHandlea5">~CComponentHandle</a> ()</td></tr> + +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a02149.html">IObjectIA</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02396.html#NLAIAGENT_1_1CComponentHandler0">_Comp</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02163.html">IAgent</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02396.html#NLAIAGENT_1_1CComponentHandler1">_CompFather</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="a02661.html">IVarName</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="a02396.html#NLAIAGENT_1_1CComponentHandler2">_CompName</a></td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="NLAIAGENT_1_1CComponentHandlea1" doxytag="NLAIAGENT::CComponentHandle::CComponentHandle" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLAIAGENT::CComponentHandle::CComponentHandle </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="a05588.html#l00046">46</a> of file <a class="el" href="a05588.html">comp_handle.h</a>. +<p> +References <a class="el" href="a05588.html#l00042">_Comp</a>, and <a class="el" href="a05588.html#l00043">_CompFather</a>. +<p> +<div class="fragment"><pre>00047 { +00048 <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler0">_Comp</a> = NULL; +00049 <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler1">_CompFather</a> = NULL; +00050 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CComponentHandlea5" doxytag="NLAIAGENT::CComponentHandle::~CComponentHandle" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLAIAGENT::CComponentHandle::~<a class="el" href="a02396.html">CComponentHandle</a> </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="a05588.html#l00052">52</a> of file <a class="el" href="a05588.html">comp_handle.h</a>. +<p> +References <a class="el" href="a05588.html#l00041">_CompName</a>, and <a class="el" href="a05386.html#l00086">NLAIC::IPointerGestion::release()</a>. +<p> +<div class="fragment"><pre>00053 { +00054 <span class="keywordflow">if</span>(<a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler2">_CompName</a> != NULL) <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler2">_CompName</a>->release(); +00055 <span class="comment">// if ( _Comp )</span> +00056 <span class="comment">// _Comp->release();</span> +00057 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CComponentHandlea0" doxytag="NLAIAGENT::CComponentHandle::CComponentHandle" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> NLAIAGENT::CComponentHandle::CComponentHandle </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">const <a class="el" href="a02661.html">IVarName</a> & </td> + <td class="mdname" nowrap> <em>comp_name</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a02163.html">IAgent</a> * </td> + <td class="mdname" nowrap> <em>comp_father</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>bool </td> + <td class="mdname" nowrap> <em>get</em> = false</td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"><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="a05588.html#l00060">60</a> of file <a class="el" href="a05588.html">comp_handle.h</a>. +<p> +References <a class="el" href="a05588.html#l00042">_Comp</a>, <a class="el" href="a05588.html#l00043">_CompFather</a>, <a class="el" href="a05588.html#l00041">_CompName</a>, <a class="el" href="a02151.html#NLAICHARACTER_1_1IZonea4">NLAIC::IBasicType::clone()</a>, and <a class="el" href="a05588.html#l00070">getComponent()</a>. +<p> +<div class="fragment"><pre>00061 { +00062 <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler2">_CompName</a> = (IVarName *) comp_name.clone(); +00063 <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler1">_CompFather</a> = comp_father; +00064 <span class="keywordflow">if</span> ( get ) +00065 <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandlea3">getComponent</a>(); +00066 <span class="keywordflow">else</span> +00067 <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler0">_Comp</a> = NULL; +00068 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="NLAIAGENT_1_1CComponentHandlea2" doxytag="NLAIAGENT::CComponentHandle::getCompName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a02661.html">IVarName</a>* NLAIAGENT::CComponentHandle::getCompName </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="a05588.html#l00121">121</a> of file <a class="el" href="a05588.html">comp_handle.h</a>. +<p> +References <a class="el" href="a05588.html#l00041">_CompName</a>. +<p> +<div class="fragment"><pre>00122 { +00123 <span class="keywordflow">return</span> <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler2">_CompName</a>; +00124 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CComponentHandlea3" doxytag="NLAIAGENT::CComponentHandle::getComponent" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void NLAIAGENT::CComponentHandle::getComponent </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="a05588.html#l00070">70</a> of file <a class="el" href="a05588.html">comp_handle.h</a>. +<p> +References <a class="el" href="a05588.html#l00042">_Comp</a>, <a class="el" href="a05588.html#l00043">_CompFather</a>, <a class="el" href="a05588.html#l00041">_CompName</a>, <a class="el" href="a05646.html#l00649">buffer</a>, <a class="el" href="a02327.html#NLAIAGENT_1_1IBaseGroupTypez1654_7">NLAIAGENT::IBaseGroupType::get()</a>, <a class="el" href="a02151.html#NLAICHARACTER_1_1IZonea7">NLAIC::IBasicType::getDebugString()</a>, <a class="el" href="a05475.html#l00193">NLAIAGENT::IObjectIA::getStaticMember()</a>, <a class="el" href="a05475.html#l00188">NLAIAGENT::IObjectIA::getStaticMemberIndex()</a>, <a class="el" href="a02151.html#NLAICHARACTER_1_1IZonea20">NLAIC::IBasicType::getType()</a>, <a class="el" href="a05420.html#l00277">NLAIAGENT::IAgent::getType()</a>, <a class="el" href="a05646.html#l00683">param</a>, <a class="el" href="a05386.html#l00086">NLAIC::IPointerGestion::release()</a>, <a class="el" href="a05476.html#l00188">NLAIAGENT::IObjectIA::CProcessResult::Result</a>, <a class="el" href="a05981.html#l00099">sint32</a>, and <a class="el" href="a02327.html#NLAIAGENT_1_1IBaseGroupTypez1654_18">NLAIAGENT::IBaseGroupType::size()</a>. +<p> +Referenced by <a class="el" href="a05588.html#l00060">CComponentHandle()</a>, and <a class="el" href="a05588.html#l00112">getValue()</a>. +<p> +<div class="fragment"><pre>00071 { +00072 <span class="keywordflow">if</span> ( <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler1">_CompFather</a> != NULL ) +00073 { +00074 +00075 <span class="preprocessor">#ifdef _DEBUG</span> +00076 <span class="preprocessor"></span> <span class="keyword">const</span> <span class="keywordtype">char</span> *dbg_father_type = (<span class="keyword">const</span> <span class="keywordtype">char</span> *) <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler1">_CompFather</a>->getType(); +00077 <span class="keyword">const</span> <span class="keywordtype">char</span> *dbg_comp_name = (<span class="keyword">const</span> <span class="keywordtype">char</span> *) <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler2">_CompName</a>->getType(); +00078 std::string <a class="code" href="a04223.html#a589">buffer</a>; +00079 <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler2">_CompName</a>->getDebugString(buffer); +00080 <span class="preprocessor">#endif</span> +00081 <span class="preprocessor"></span> +00082 <span class="comment">// Looks in static components</span> +00083 <a class="code" href="a04558.html#a10">sint32</a> comp_id = <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler1">_CompFather</a>->getStaticMemberIndex( *_CompName ); +00084 <span class="keywordflow">if</span> ( comp_id >= 0) +00085 <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler0">_Comp</a> = <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler1">_CompFather</a>->getStaticMember( comp_id ); +00086 <span class="keywordflow">else</span> +00087 <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler0">_Comp</a> = NULL; +00088 +00089 <span class="keywordflow">if</span> ( <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler0">_Comp</a> == NULL ) +00090 { +00091 <span class="comment">// Looks in dynamic component</span> +00092 CGroupType *<a class="code" href="a04223.html#a590">param</a> = <span class="keyword">new</span> CGroupType(); +00093 <a class="code" href="a04223.html#a590">param</a>->push( (IObjectIA *) <span class="keyword">new</span> CStringType(*_CompName) ); +00094 IObjectIA::CProcessResult comp = ( (CAgentScript *) <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler1">_CompFather</a>)->getDynamicAgent(param); +00095 <span class="comment">//param->pop();</span> +00096 <span class="keyword">delete</span> <a class="code" href="a04223.html#a590">param</a>; +00097 <a class="code" href="a02327.html">NLAIAGENT::IBaseGroupType</a> *result = (<a class="code" href="a02327.html">NLAIAGENT::IBaseGroupType</a> *) comp.Result; +00098 <span class="keywordflow">if</span> ( result-><a class="code" href="a02327.html#NLAIAGENT_1_1IBaseGroupTypez1654_18">size</a>() > 0 ) +00099 { +00100 <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler0">_Comp</a> = result-><a class="code" href="a02327.html#NLAIAGENT_1_1IBaseGroupTypez1654_7">get</a>(); +00101 ((IObjectIA *)<a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler0">_Comp</a>)->incRef(); +00102 } +00103 <span class="keywordflow">else</span> +00104 <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler0">_Comp</a> = NULL; +00105 +00106 <span class="keywordflow">if</span>(result != NULL) +00107 result-><a class="code" href="a02145.html#NLAIAGENT_1_1VectorTypea46">release</a>(); +00108 } +00109 } +00110 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CComponentHandlea4" doxytag="NLAIAGENT::CComponentHandle::getValue" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a02149.html">IObjectIA</a>* NLAIAGENT::CComponentHandle::getValue </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="a05588.html#l00112">112</a> of file <a class="el" href="a05588.html">comp_handle.h</a>. +<p> +References <a class="el" href="a05588.html#l00042">_Comp</a>, and <a class="el" href="a05588.html#l00070">getComponent()</a>. +<p> +Referenced by <a class="el" href="a06133.html#l00383">NLAIAGENT::COperatorScript::calcPriority()</a>. +<p> +<div class="fragment"><pre>00113 { +00114 <span class="keywordflow">if</span> ( <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler0">_Comp</a> ) +00115 <span class="keywordflow">return</span> <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler0">_Comp</a>; +00116 +00117 <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandlea3">getComponent</a>(); +00118 <span class="keywordflow">return</span> <a class="code" href="a02396.html#NLAIAGENT_1_1CComponentHandler0">_Comp</a>; +00119 } +</pre></div> </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="NLAIAGENT_1_1CComponentHandler0" doxytag="NLAIAGENT::CComponentHandle::_Comp" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a02149.html">IObjectIA</a>* <a class="el" href="a02396.html#NLAIAGENT_1_1CComponentHandler0">NLAIAGENT::CComponentHandle::_Comp</a><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="a05588.html#l00042">42</a> of file <a class="el" href="a05588.html">comp_handle.h</a>. +<p> +Referenced by <a class="el" href="a05588.html#l00046">CComponentHandle()</a>, <a class="el" href="a05588.html#l00070">getComponent()</a>, and <a class="el" href="a05588.html#l00112">getValue()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CComponentHandler1" doxytag="NLAIAGENT::CComponentHandle::_CompFather" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a02163.html">IAgent</a>* <a class="el" href="a02396.html#NLAIAGENT_1_1CComponentHandler1">NLAIAGENT::CComponentHandle::_CompFather</a><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="a05588.html#l00043">43</a> of file <a class="el" href="a05588.html">comp_handle.h</a>. +<p> +Referenced by <a class="el" href="a05588.html#l00046">CComponentHandle()</a>, and <a class="el" href="a05588.html#l00070">getComponent()</a>. </td> + </tr> +</table> +<a class="anchor" name="NLAIAGENT_1_1CComponentHandler2" doxytag="NLAIAGENT::CComponentHandle::_CompName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> <a class="el" href="a02661.html">IVarName</a>* <a class="el" href="a02396.html#NLAIAGENT_1_1CComponentHandler2">NLAIAGENT::CComponentHandle::_CompName</a><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="a05588.html#l00041">41</a> of file <a class="el" href="a05588.html">comp_handle.h</a>. +<p> +Referenced by <a class="el" href="a05588.html#l00060">CComponentHandle()</a>, <a class="el" href="a05588.html#l00121">getCompName()</a>, <a class="el" href="a05588.html#l00070">getComponent()</a>, and <a class="el" href="a05588.html#l00052">~CComponentHandle()</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following file:<ul> +<li><a class="el" href="a05588.html">comp_handle.h</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 09:07:43 2004 for NeL by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.6 </small></address> +</body> +</html> |