diff options
Diffstat (limited to 'docs/doxygen/nel/abstract__interface_8h-source.html')
-rw-r--r-- | docs/doxygen/nel/abstract__interface_8h-source.html | 479 |
1 files changed, 479 insertions, 0 deletions
diff --git a/docs/doxygen/nel/abstract__interface_8h-source.html b/docs/doxygen/nel/abstract__interface_8h-source.html new file mode 100644 index 00000000..b688fb0e --- /dev/null +++ b/docs/doxygen/nel/abstract__interface_8h-source.html @@ -0,0 +1,479 @@ +<!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>abstract_interface.h</h1><a href="abstract__interface_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 +00007 <font class="comment">/* Copyright, 2000 Nevrax Ltd.</font> +00008 <font class="comment"> *</font> +00009 <font class="comment"> * This file is part of NEVRAX NEL.</font> +00010 <font class="comment"> * NEVRAX NEL is free software; you can redistribute it and/or modify</font> +00011 <font class="comment"> * it under the terms of the GNU General Public License as published by</font> +00012 <font class="comment"> * the Free Software Foundation; either version 2, or (at your option)</font> +00013 <font class="comment"> * any later version.</font> +00014 <font class="comment"></font> +00015 <font class="comment"> * NEVRAX NEL is distributed in the hope that it will be useful, but</font> +00016 <font class="comment"> * WITHOUT ANY WARRANTY; without even the implied warranty of</font> +00017 <font class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</font> +00018 <font class="comment"> * General Public License for more details.</font> +00019 <font class="comment"></font> +00020 <font class="comment"> * You should have received a copy of the GNU General Public License</font> +00021 <font class="comment"> * along with NEVRAX NEL; see the file COPYING. If not, write to the</font> +00022 <font class="comment"> * Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,</font> +00023 <font class="comment"> * MA 02111-1307, USA.</font> +00024 <font class="comment"> */</font> +00025 +00026 <font class="preprocessor">#ifndef NL_ABSTRACT_H</font> +00027 <font class="preprocessor"></font><font class="preprocessor">#define NL_ABSTRACT_H</font> +00028 <font class="preprocessor"></font> +00029 <font class="preprocessor">#ifdef NL_OS_WINDOWS</font> +00030 <font class="preprocessor"></font> +00031 <font class="preprocessor">#pragma warning (disable: 4666)</font> +00032 <font class="preprocessor"></font><font class="preprocessor">#pragma warning (disable: 4786) </font> +00033 <font class="preprocessor"></font><font class="preprocessor">#pragma warning (disable: 4620) </font> +00034 <font class="preprocessor"></font><font class="preprocessor">#pragma warning (disable: 4275)</font> +00035 <font class="preprocessor"></font><font class="preprocessor">#pragma warning (disable: 4251)</font> +00036 <font class="preprocessor"></font> +00037 <font class="preprocessor">#endif</font> +00038 <font class="preprocessor"></font> +00039 <font class="preprocessor">#include <map></font> +00040 <font class="preprocessor">#include <iostream></font> +00041 <font class="preprocessor">#include <string></font> +00042 <font class="preprocessor">#include "<a class="code" href="file_8h.html">nel/misc/file.h</a>"</font> +00043 <font class="preprocessor">#include "<a class="code" href="ai__exception_8h.html">nel/ai/e/ai_exception.h</a>"</font> +00044 +<a name="l00045"></a><a class="code" href="namespaceNLAIC.html">00045</a> <font class="keyword">namespace </font>NLAIC <font class="comment">//Gen pour general.</font> +00046 { +00047 +00049 <font class="keywordtype">char</font> *<a class="code" href="namespaceNLAIC.html#a4">stringBuild</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *str, ...); +00050 +00052 std::string <a class="code" href="namespaceNLAIC.html#a5">stringGetBuild</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *str, ...); +00053 +<a name="l00062"></a><a class="code" href="classNLAIC_1_1IPointerGestion.html">00062</a> <font class="keyword">class </font>IPointerGestion : <font class="keyword">public</font> NLMISC::IStreamable +00063 { +00064 <font class="keyword">private</font>: +<a name="l00066"></a><a class="code" href="classNLAIC_1_1IPointerGestion.html#o0">00066</a> sint32 <a class="code" href="classNLAIC_1_1IPointerGestion.html#o0">_Ref</a>; +00067 <font class="keyword">public</font>: +00068 +<a name="l00070"></a><a class="code" href="classNLAIC_1_1IPointerGestion.html#a0">00070</a> <a class="code" href="classNLAIC_1_1IPointerGestion.html#a0">IPointerGestion</a>():<a class="code" href="classNLAIC_1_1IPointerGestion.html#o0">_Ref</a>(1) +00071 { +00072 } +00073 +<a name="l00075"></a><a class="code" href="classNLAIC_1_1IPointerGestion.html#a1">00075</a> <a class="code" href="classNLAIC_1_1IPointerGestion.html#a0">IPointerGestion</a>(<font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IPointerGestion.html#a0">IPointerGestion</a> &):<a class="code" href="classNLAIC_1_1IPointerGestion.html#o0">_Ref</a>(1) +00076 { +00077 } +00078 +<a name="l00080"></a><a class="code" href="classNLAIC_1_1IPointerGestion.html#a2">00080</a> <font class="keywordtype">void</font> <a class="code" href="classNLAIC_1_1IPointerGestion.html#a2">incRef</a>() +00081 { +00082 <a class="code" href="classNLAIC_1_1IPointerGestion.html#o0">_Ref</a> ++; +00083 } +00084 +<a name="l00086"></a><a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">00086</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIC_1_1IPointerGestion.html#a3">release</a>() +00087 { +00088 <font class="keywordflow">if</font>(<a class="code" href="classNLAIC_1_1IPointerGestion.html#a4">decRef</a>() == 0) +00089 <font class="keyword">delete</font> <font class="keyword">this</font>; +00090 } +00091 +<a name="l00093"></a><a class="code" href="classNLAIC_1_1IPointerGestion.html#a4">00093</a> sint32 <a class="code" href="classNLAIC_1_1IPointerGestion.html#a4">decRef</a>() +00094 { +00095 <font class="keywordflow">return</font> --<a class="code" href="classNLAIC_1_1IPointerGestion.html#o0">_Ref</a>; +00096 } +00097 +<a name="l00099"></a><a class="code" href="classNLAIC_1_1IPointerGestion.html#a5">00099</a> <font class="keyword">const</font> sint32 &<a class="code" href="classNLAIC_1_1IPointerGestion.html#a5">getRef</a>()<font class="keyword"> const</font> +00100 <font class="keyword"> </font>{ +00101 <font class="keywordflow">return</font> <a class="code" href="classNLAIC_1_1IPointerGestion.html#o0">_Ref</a>; +00102 } +00103 +<a name="l00104"></a><a class="code" href="classNLAIC_1_1IPointerGestion.html#a6">00104</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIC_1_1IPointerGestion.html#a6">getDebugString</a>(std::string &<a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a>)<font class="keyword"> const</font> +00105 <font class="keyword"> </font>{ +00106 <a class="code" href="driver__opengl__extension__def_8h.html#a384">t</a> += <font class="stringliteral">"None"</font>; +00107 } +00108 +<a name="l00109"></a><a class="code" href="classNLAIC_1_1IPointerGestion.html#a7">00109</a> <font class="keyword">virtual</font> <a class="code" href="classNLAIC_1_1IPointerGestion.html#a7">~IPointerGestion</a>() +00110 { +00111 } +00112 +00113 +00115 +<a name="l00116"></a><a class="code" href="classNLAIC_1_1IPointerGestion.html#z193_0">00116</a> <font class="keyword">virtual</font> std::string <a class="code" href="classNLAIC_1_1IPointerGestion.html#z193_0">getClassName</a>() +00117 { +00118 <font class="keywordflow">return</font> std::string(<font class="stringliteral">"<unnamed>"</font>); +00119 } +<a name="l00120"></a><a class="code" href="classNLAIC_1_1IPointerGestion.html#z193_1">00120</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIC_1_1IPointerGestion.html#z193_1">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &) <font class="keywordflow">throw</font>(NLMISC::EStream) +00121 { +00122 } +00124 +00125 +00126 }; +00127 +00128 <font class="keyword">class </font>CIdentTypeAlloc; +00129 <font class="keyword">class </font>IClassFactory; +00130 <font class="keyword">class </font>IBasicInterface; +00131 <font class="keyword">class </font>CTypeOfObject; +00132 <font class="keyword">class </font>CTypeOfOperator; +00133 +<a name="l00142"></a><a class="code" href="classNLAIC_1_1CIdentType.html">00142</a> <font class="keyword">class </font>CIdentType: <font class="keyword">public</font> IPointerGestion +00143 { +<a name="l00144"></a><a class="code" href="classNLAIC_1_1CIdentType.html#l0">00144</a> <font class="keyword">friend</font> <font class="keyword">class </font><a class="code" href="classNLAIC_1_1CIdentType.html#l0">CIdentTypeAlloc</a>; +00145 <font class="keyword">private</font>: +<a name="l00147"></a><a class="code" href="classNLAIC_1_1CIdentType.html#o0">00147</a> <font class="keywordtype">char</font> *<a class="code" href="classNLAIC_1_1CIdentType.html#o0">_Ident</a>; +<a name="l00149"></a><a class="code" href="classNLAIC_1_1CIdentType.html#o1">00149</a> CTypeOfObject *<a class="code" href="classNLAIC_1_1CIdentType.html#o1">_ObjType</a>; +<a name="l00151"></a><a class="code" href="classNLAIC_1_1CIdentType.html#o2">00151</a> CTypeOfOperator *<a class="code" href="classNLAIC_1_1CIdentType.html#o2">_OpSupport</a>; +<a name="l00153"></a><a class="code" href="classNLAIC_1_1CIdentType.html#o3">00153</a> sint32 <a class="code" href="classNLAIC_1_1CIdentType.html#o3">_Index</a>; +00154 +00155 <font class="keyword">public</font>: +00157 <font class="keyword">static</font> <a class="code" href="classNLAIC_1_1CIdentType.html#c0">CIdentType</a> <a class="code" href="classNLAIC_1_1CIdentType.html#p0">VoidType</a>; +00158 +00159 <font class="keyword">private</font>: +00160 +00162 <a class="code" href="classNLAIC_1_1CIdentType.html#c0">CIdentType</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *ident,<font class="keyword">const</font> CTypeOfObject &objType,<font class="keyword">const</font> CTypeOfOperator &opSupport,sint32 <a class="code" href="driver__opengl__extension__def_8h.html#a358">index</a>); +00163 +00164 <font class="keyword">public</font>: +00166 <a class="code" href="classNLAIC_1_1CIdentType.html#c0">CIdentType</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &); +00167 +00170 <a class="code" href="classNLAIC_1_1CIdentType.html#c0">CIdentType</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *ident); +00171 +00175 <a class="code" href="classNLAIC_1_1CIdentType.html#c0">CIdentType</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *ident,<font class="keyword">const</font> IClassFactory &classCFactory, +00176 <font class="keyword">const</font> CTypeOfObject &objType, +00177 <font class="keyword">const</font> CTypeOfOperator &opSupport); +00178 +00179 <a class="code" href="classNLAIC_1_1CIdentType.html#c0">CIdentType</a>(<font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html#c0">CIdentType</a> &i); +00180 <a class="code" href="classNLAIC_1_1CIdentType.html#a4">~CIdentType</a>(); +00181 +<a name="l00183"></a><a class="code" href="classNLAIC_1_1CIdentType.html#a5">00183</a> <a class="code" href="classNLAIC_1_1CIdentType.html#a5">operator const char * </a>()<font class="keyword"> const</font> +00184 <font class="keyword"> </font>{ +00185 <font class="preprocessor">#ifdef NL_DEBUG</font> +00186 <font class="preprocessor"></font> <font class="keywordflow">if</font>(<font class="keyword">this</font> == NULL) <font class="keywordflow">return</font> <font class="stringliteral">"<Inknown>"</font>; +00187 <font class="preprocessor">#endif</font> +00188 <font class="preprocessor"></font> <font class="keywordflow">return</font> <a class="code" href="classNLAIC_1_1CIdentType.html#o0">_Ident</a>; +00189 } +00190 +00191 +00193 <font class="keywordtype">void</font> <a class="code" href="classNLAIC_1_1CIdentType.html#a6">operator = </a>(<font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html#c0">CIdentType</a> &a); +00194 +<a name="l00196"></a><a class="code" href="classNLAIC_1_1CIdentType.html#a7">00196</a> <font class="keywordtype">bool</font> <a class="code" href="classNLAIC_1_1CIdentType.html#a7">operator == </a>(<font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html#c0">CIdentType</a> &a)<font class="keyword"> const</font> +00197 <font class="keyword"> </font>{ +00198 <font class="keywordflow">return</font> <a class="code" href="classNLAIC_1_1CIdentType.html#o3">_Index</a> == a._Index; +00199 } +<a name="l00201"></a><a class="code" href="classNLAIC_1_1CIdentType.html#a8">00201</a> <font class="keywordtype">bool</font> <a class="code" href="classNLAIC_1_1CIdentType.html#a8">operator < </a>(<font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html#c0">CIdentType</a> &a)<font class="keyword"> const</font> +00202 <font class="keyword"> </font>{ +00203 <font class="keywordflow">return</font> strcmp(<a class="code" href="classNLAIC_1_1CIdentType.html#o0">_Ident</a>,a._Ident) < 0; +00204 } +00205 +<a name="l00206"></a><a class="code" href="classNLAIC_1_1CIdentType.html#a9">00206</a> <font class="keywordtype">bool</font> <a class="code" href="classNLAIC_1_1CIdentType.html#a8">operator <</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *a)<font class="keyword"> const</font> +00207 <font class="keyword"> </font>{ +00208 <font class="keywordflow">return</font> strcmp(<a class="code" href="classNLAIC_1_1CIdentType.html#o0">_Ident</a>,a) < 0; +00209 } +00210 +<a name="l00211"></a><a class="code" href="classNLAIC_1_1CIdentType.html#a10">00211</a> <font class="keywordtype">bool</font> <a class="code" href="classNLAIC_1_1CIdentType.html#a10">operator ></a>(<font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html#c0">CIdentType</a> &a)<font class="keyword"> const</font> +00212 <font class="keyword"> </font>{ +00213 <font class="keywordflow">return</font> strcmp(<a class="code" href="classNLAIC_1_1CIdentType.html#o0">_Ident</a>,a._Ident) > 0; +00214 } +00215 +<a name="l00216"></a><a class="code" href="classNLAIC_1_1CIdentType.html#a11">00216</a> sint32 <a class="code" href="classNLAIC_1_1CIdentType.html#a11">cmp</a> (<font class="keyword">const</font> <a class="code" href="classNLAIC_1_1CIdentType.html#c0">CIdentType</a> & a)<font class="keyword"> const</font> +00217 <font class="keyword"> </font>{ +00218 <font class="keywordflow">return</font> strcmp(<a class="code" href="classNLAIC_1_1CIdentType.html#o0">_Ident</a>,a._Ident); +00219 } +00220 +<a name="l00221"></a><a class="code" href="classNLAIC_1_1CIdentType.html#a12">00221</a> <a class="code" href="classNLAIC_1_1CIdentType.html#a12">operator const CTypeOfObject &</a>()<font class="keyword"> const</font> +00222 <font class="keyword"> </font>{ +00223 <font class="keywordflow">return</font> *<a class="code" href="classNLAIC_1_1CIdentType.html#o1">_ObjType</a>; +00224 } +00225 +<a name="l00226"></a><a class="code" href="classNLAIC_1_1CIdentType.html#a13">00226</a> <a class="code" href="classNLAIC_1_1CIdentType.html#a13">operator const CTypeOfOperator &</a>()<font class="keyword"> const</font> +00227 <font class="keyword"> </font>{ +00228 <font class="keywordflow">return</font> *<a class="code" href="classNLAIC_1_1CIdentType.html#o2">_OpSupport</a>; +00229 } +00230 +<a name="l00231"></a><a class="code" href="classNLAIC_1_1CIdentType.html#a14">00231</a> sint32 <a class="code" href="classNLAIC_1_1CIdentType.html#a14">getIndex</a>()<font class="keyword"> const</font> +00232 <font class="keyword"> </font>{ +00233 <font class="keywordflow">return</font> <a class="code" href="classNLAIC_1_1CIdentType.html#o3">_Index</a>; +00234 } +00235 +00237 <font class="keyword">const</font> IBasicInterface *<a class="code" href="classNLAIC_1_1CIdentType.html#a15">allocClass</a>() <font class="keyword">const</font>; +00239 <font class="keyword">const</font> IClassFactory *<a class="code" href="classNLAIC_1_1CIdentType.html#a16">getFactory</a>() <font class="keyword">const</font>; +00240 +00242 +<a name="l00243"></a><a class="code" href="classNLAIC_1_1CIdentType.html#z194_0">00243</a> <font class="keyword">virtual</font> std::string <a class="code" href="classNLAIC_1_1CIdentType.html#z194_0">getClassName</a>() +00244 { +00245 <font class="keywordflow">return</font> std::string(<a class="code" href="classNLAIC_1_1CIdentType.html#o0">_Ident</a>); +00246 } +00247 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIC_1_1CIdentType.html#z194_1">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &f) <font class="keywordflow">throw</font>(NLMISC::EStream); +00249 +00250 +00251 <font class="keywordtype">void</font> <a class="code" href="classNLAIC_1_1CIdentType.html#a17">addObjectType</a>(sint32); +00252 }; +00253 +00254 +<a name="l00262"></a><a class="code" href="classNLAIC_1_1IBasicType.html">00262</a> <font class="keyword">class </font>IBasicType: <font class="keyword">public</font> IPointerGestion +00263 { +00264 <font class="keyword">public</font>: +<a name="l00265"></a><a class="code" href="classNLAIC_1_1IBasicType.html#a0">00265</a> <a class="code" href="classNLAIC_1_1IBasicType.html#a0">IBasicType</a>() +00266 { +00267 } +00268 +<a name="l00269"></a><a class="code" href="classNLAIC_1_1IBasicType.html#a1">00269</a> <a class="code" href="classNLAIC_1_1IBasicType.html#a0">IBasicType</a>(<font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html#a0">IBasicType</a> &a):<a class="code" href="classNLAIC_1_1IPointerGestion.html#a0">IPointerGestion</a>(a) +00270 { +00271 } +00275 <font class="keyword">virtual</font> <font class="keyword">const</font> CIdentType &<a class="code" href="classNLAIC_1_1IBasicType.html#a2">getType</a>() <font class="keyword">const</font> = 0; +00276 +00280 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html#a0">IBasicType</a> *<a class="code" href="classNLAIC_1_1IBasicType.html#a3">clone</a>() <font class="keyword">const</font> = 0; +00281 +00285 <font class="keyword">virtual</font> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html#a0">IBasicType</a> *<a class="code" href="classNLAIC_1_1IBasicType.html#a4">newInstance</a>() <font class="keyword">const</font> = 0; +00286 +00290 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIC_1_1IBasicType.html#a5">getDebugString</a>(std::string &) <font class="keyword">const</font> = 0; +00291 +<a name="l00292"></a><a class="code" href="classNLAIC_1_1IBasicType.html#a6">00292</a> <font class="keyword">virtual</font> <font class="keyword">const</font> std::string <a class="code" href="classNLAIC_1_1IBasicType.html#a6">getInfo</a>() +00293 { +00294 std::string <a class="code" href="driver__opengl__extension__def_8h.html#a383">s</a>; +00295 <a class="code" href="classNLAIC_1_1IBasicType.html#a5">getDebugString</a>(<a class="code" href="driver__opengl__extension__def_8h.html#a383">s</a>); +00296 <font class="keywordflow">return</font> <a class="code" href="driver__opengl__extension__def_8h.html#a383">s</a>; +00297 } +00298 +<a name="l00299"></a><a class="code" href="classNLAIC_1_1IBasicType.html#a7">00299</a> <font class="keyword">virtual</font> <a class="code" href="classNLAIC_1_1IBasicType.html#a7">~IBasicType</a>() +00300 { +00301 } +00302 }; +00303 +<a name="l00312"></a><a class="code" href="classNLAIC_1_1IBasicInterface.html">00312</a> <font class="keyword">class </font>IBasicInterface: <font class="keyword">public</font> IBasicType +00313 { +00314 +00315 <font class="keyword">public</font>: +<a name="l00316"></a><a class="code" href="classNLAIC_1_1IBasicInterface.html#a0">00316</a> <a class="code" href="classNLAIC_1_1IBasicInterface.html#a0">IBasicInterface</a>() +00317 { +00318 } +00319 +<a name="l00320"></a><a class="code" href="classNLAIC_1_1IBasicInterface.html#a1">00320</a> <a class="code" href="classNLAIC_1_1IBasicInterface.html#a1">~IBasicInterface</a>() +00321 { +00322 } +00323 +<a name="l00324"></a><a class="code" href="classNLAIC_1_1IBasicInterface.html#a2">00324</a> <a class="code" href="classNLAIC_1_1IBasicInterface.html#a0">IBasicInterface</a>(<font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicInterface.html#a0">IBasicInterface</a> &a): <a class="code" href="classNLAIC_1_1IBasicType.html#a0">IBasicType</a>(a) +00325 { +00326 } +00327 +<a name="l00328"></a><a class="code" href="classNLAIC_1_1IBasicInterface.html#a3">00328</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIC_1_1IBasicInterface.html#a3">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &f) <font class="keywordflow">throw</font>(NLMISC::EStream) +00329 { +00330 <font class="keywordflow">if</font> ( f.isReading() ) +00331 <a class="code" href="classNLAIC_1_1IBasicInterface.html#a5">load</a>( f ); +00332 <font class="keywordflow">else</font> +00333 <a class="code" href="classNLAIC_1_1IBasicInterface.html#a4">save</a>( f ); +00334 } +00335 +00339 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIC_1_1IBasicInterface.html#a4">save</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &) = 0; +00343 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIC_1_1IBasicInterface.html#a5">load</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &) = 0; +00344 }; +00345 +<a name="l00346"></a><a class="code" href="classNLAIC_1_1IBasicInterface.html#a4">00346</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> IBasicInterface::save(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &) +00347 { +00348 } +00349 +<a name="l00350"></a><a class="code" href="classNLAIC_1_1IBasicInterface.html#a5">00350</a> <font class="keyword">inline</font> <font class="keywordtype">void</font> IBasicInterface::load(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &) +00351 { +00352 } +00353 +00354 +<a name="l00362"></a><a class="code" href="classNLAIC_1_1IClassFactory.html">00362</a> <font class="keyword">class </font>IClassFactory: <font class="keyword">public</font> IBasicType +00363 { +00364 +00365 <font class="keyword">public</font>: +00369 <font class="keyword">virtual</font> <font class="keyword">const</font> IBasicInterface *<a class="code" href="classNLAIC_1_1IClassFactory.html#a0">createInstance</a>() <font class="keyword">const</font> = 0; +00370 +00374 <font class="keyword">virtual</font> <font class="keyword">const</font> IBasicInterface *<a class="code" href="classNLAIC_1_1IClassFactory.html#a1">getClass</a>() <font class="keyword">const</font> = 0; +00375 +00377 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIC_1_1IClassFactory.html#a2">setClass</a>(<font class="keyword">const</font> IBasicInterface &) = 0; +00378 +00379 }; +00380 +<a name="l00387"></a><a class="code" href="classNLAIC_1_1CSelfClassFactory.html">00387</a> <font class="keyword">class </font>CSelfClassFactory : <font class="keyword">public</font> IClassFactory +00388 { +00389 <font class="keyword">private</font>: +<a name="l00391"></a><a class="code" href="classNLAIC_1_1CSelfClassFactory.html#o0">00391</a> IBasicInterface *<a class="code" href="classNLAIC_1_1CSelfClassFactory.html#o0">_Inst</a>; +00392 <font class="keyword">public</font>: +<a name="l00394"></a><a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a0">00394</a> <a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a0">CSelfClassFactory</a>(<font class="keyword">const</font> IBasicInterface &a): _Inst((IBasicInterface *)a.<a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a3">newInstance</a>()) +00395 { +00396 +00397 } +00398 +<a name="l00400"></a><a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a1">00400</a> <font class="keyword">const</font> IBasicInterface *<a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a1">createInstance</a>()<font class="keyword"> const </font> +00401 <font class="keyword"> </font>{ +00402 <font class="keywordflow">return</font> (<font class="keyword">const</font> IBasicInterface *)_Inst->newInstance(); +00403 } +00404 +<a name="l00406"></a><a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a2">00406</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html#a0">IBasicType</a> *<a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a2">clone</a>()<font class="keyword"> const</font> +00407 <font class="keyword"> </font>{ +00408 <a class="code" href="classNLAIC_1_1IBasicType.html#a0">IBasicType</a> *<a class="code" href="driver__opengl__extension__def_8h.html#a364">x</a> = <font class="keyword">new</font> <a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a0">CSelfClassFactory</a>(*_Inst); +00409 <font class="keywordflow">return</font> x; +00410 } +00411 +<a name="l00413"></a><a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a3">00413</a> <font class="keyword">const</font> <a class="code" href="classNLAIC_1_1IBasicType.html#a0">IBasicType</a> *<a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a3">newInstance</a>()<font class="keyword"> const</font> +00414 <font class="keyword"> </font>{ +00415 <font class="keywordflow">return</font> <a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a2">clone</a>(); +00416 } +00417 +<a name="l00419"></a><a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a4">00419</a> <font class="keywordtype">void</font> <a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a4">getDebugString</a>(std::string &text)<font class="keyword"> const</font> +00420 <font class="keyword"> </font>{ +00421 <font class="comment">//sprintf(text,"CSelfClassFactory sur l'interface %s",(const char *)_Inst->getType());</font> +00422 text = <a class="code" href="namespaceNLAIC.html#a5">stringGetBuild</a>(<font class="stringliteral">"CSelfClassFactory sur l'interface %s"</font>,(<font class="keyword">const</font> <font class="keywordtype">char</font> *)_Inst->getType()); +00423 } +00424 +<a name="l00426"></a><a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a5">00426</a> <font class="keyword">const</font> CIdentType &<a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a5">getType</a>()<font class="keyword"> const</font> +00427 <font class="keyword"> </font>{ +00428 <font class="keywordflow">return</font> _Inst->getType(); +00429 } +00430 +<a name="l00432"></a><a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a6">00432</a> <font class="keyword">virtual</font> <font class="keyword">const</font> IBasicInterface *<a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a6">getClass</a>()<font class="keyword"> const</font> +00433 <font class="keyword"> </font>{ +00434 <font class="keywordflow">return</font> _Inst; +00435 } +00436 +<a name="l00437"></a><a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a7">00437</a> <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a7">setClass</a>(<font class="keyword">const</font> IBasicInterface &inst) +00438 { +00439 _Inst->release(); +00440 _Inst = (IBasicInterface *)inst.clone(); +00441 } +00442 +00443 +<a name="l00444"></a><a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a8">00444</a> <a class="code" href="classNLAIC_1_1CSelfClassFactory.html#a8">~CSelfClassFactory</a>() +00445 { +00446 _Inst->release(); +00447 } +00448 }; +00449 +00450 +<a name="l00457"></a><a class="code" href="classNLAIC_1_1IIO.html">00457</a> <font class="keyword">class </font>IIO: <font class="keyword">public</font> IBasicInterface +00458 { +00459 +00460 <font class="keyword">public</font>: +<a name="l00461"></a><a class="code" href="classNLAIC_1_1IIO.html#a0">00461</a> <a class="code" href="classNLAIC_1_1IIO.html#a0">IIO</a>() +00462 { +00463 } +00464 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIC_1_1IIO.html#a1">Echo</a>(<font class="keywordtype">char</font> *CStringType, ...) <font class="keyword">const</font> = 0; +00465 <font class="keyword">virtual</font> <font class="keyword">const</font> std::string <a class="code" href="classNLAIC_1_1IIO.html#a2">InPut</a>() <font class="keyword">const</font> = 0; +<a name="l00466"></a><a class="code" href="classNLAIC_1_1IIO.html#a3">00466</a> <font class="keyword">virtual</font> <a class="code" href="classNLAIC_1_1IIO.html#a3">~IIO</a>() +00467 { +00468 } +00469 }; +00470 +00471 <font class="keywordtype">void</font> <a class="code" href="namespaceNLAIC.html#a6">Out</a>(<font class="keyword">const</font> <font class="keywordtype">char</font> *, ...); +00472 <font class="keywordtype">void</font> <a class="code" href="namespaceNLAIC.html#a7">setDefaultIIO</a>(<font class="keyword">const</font> IIO *); +00473 <font class="keyword">const</font> IIO *<a class="code" href="namespaceNLAIC.html#a8">getDefaultIIO</a>(); +00474 +00475 +<a name="l00482"></a><a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html">00482</a> <font class="keyword">class </font>CIdentTypeAlloc +00483 { +00484 <font class="keyword">private</font>: +<a name="l00485"></a><a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#o0">00485</a> CIdentType *<a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#o0">_Id</a>; +00486 +00487 <font class="keyword">public</font>: +<a name="l00489"></a><a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#a0">00489</a> <a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#a1">CIdentTypeAlloc</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is):_Id(NULL){<a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#a2">load</a>(is);} +<a name="l00490"></a><a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#a1">00490</a> <a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#a1">CIdentTypeAlloc</a>():_Id(NULL){} +00491 +00493 <font class="keywordtype">void</font> <a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#a2">load</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is); +00494 +<a name="l00496"></a><a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#a3">00496</a> <font class="keyword">const</font> IBasicInterface *<a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#a3">allocClass</a>() +00497 { +00498 <font class="keywordflow">if</font>(_Id != NULL) <font class="keywordflow">return</font> _Id->allocClass(); +00499 <font class="keywordflow">else</font> <font class="keywordflow">return</font> NULL; +00500 } +00501 +<a name="l00502"></a><a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#a4">00502</a> <font class="keyword">virtual</font> <a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#a4">~CIdentTypeAlloc</a>() +00503 { +00504 <font class="keywordflow">if</font>(_Id != NULL) <font class="keyword">delete</font> _Id; +00505 } +00506 +00508 <font class="keyword">virtual</font> <font class="keywordtype">void</font> <a class="code" href="classNLAIC_1_1CIdentTypeAlloc.html#a5">serial</a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &f) <font class="keywordflow">throw</font>(NLMISC::EStream); +00509 }; +00510 +00511 +00513 +00514 +00515 <font class="keyword">inline</font> <a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &<a class="code" href="namespaceNLAIC.html#a9">operator >> </a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is, CIdentTypeAlloc &o) +00516 { +00517 o.load(is); +00518 <font class="keywordflow">return</font> is; +00519 } +00520 +00522 <a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &<a class="code" href="namespaceNLAIC.html#a10">operator << </a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &os, CIdentType &o); +00523 +00525 <font class="keyword">inline</font> <a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &<a class="code" href="namespaceNLAIC.html#a10">operator << </a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &os, IBasicInterface &o) +00526 { +00527 o.save(os); +00528 <font class="keywordflow">return</font> os; +00529 } +00530 +00532 <font class="keyword">inline</font> <a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &<a class="code" href="namespaceNLAIC.html#a9">operator >> </a>(<a class="code" href="classNLMISC_1_1IStream.html">NLMISC::IStream</a> &is, IBasicInterface &o) +00533 { +00534 o.load(is); +00535 <font class="keywordflow">return</font> is; +00536 } +00538 } +00539 <font class="preprocessor">#endif</font> +</pre></div> + +<!-- 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> |