zengine/doc/html/classZE_1_1ZError.html

258 lines
12 KiB
HTML
Raw Normal View History

2003-04-27 22:15:26 +00:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>ZE::ZError class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
2003-07-05 00:40:44 +00:00
<!-- Generated by Doxygen 1.3 -->
2003-04-27 22:15:26 +00:00
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>ZE::ZError Class Reference</h1><code>#include &lt;<a class="el" href="ZE__ZError_8h-source.html">ZE_ZError.h</a>&gt;</code>
<p>
<a href="classZE_1_1ZError-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
<a class="el" href="classZE_1_1ZError.html">ZError</a> class for storing and printing information on errors. Inherited from ZObject and tied closely to <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a>. <dl compact><dt><b>Since:</b></dt><dd>0.8.2 </dd></dl>
<p>
<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
2003-07-05 00:40:44 +00:00
<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr>
<tr><td nowrap align=right valign=top>&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZError.html#a0">ZError</a> (<a class="el" href="namespaceZE.html#a24">ZErrorCode</a> code=ZERR_NONE, std::string desc="", std::string file="", int line=0)</td></tr>
<tr><td>&nbsp;</td><td><em class="mdesc">Default constructor for <a class="el" href="classZE_1_1ZError.html">ZError</a>.</em> <a href="#a0"></a><em></em><br><br></td></tr>
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZError.html#a1">Create</a> (<a class="el" href="namespaceZE.html#a24">ZErrorCode</a> code, std::string desc="", std::string file="", int line=0)</td></tr>
<tr><td>&nbsp;</td><td><em class="mdesc">Set members of error object.</em> <a href="#a1"></a><em></em><br><br></td></tr>
<tr><td nowrap align=right valign=top><a class="el" href="namespaceZE.html#a24">ZErrorCode</a>&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZError.html#a2">Code</a> () const</td></tr>
<tr><td>&nbsp;</td><td><em class="mdesc">Get ZErrorCode of error.</em> <a href="#a2"></a><em></em><br><br></td></tr>
<tr><td nowrap align=right valign=top>std::string&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZError.html#a3">LogString</a> () const</td></tr>
<tr><td>&nbsp;</td><td><em class="mdesc">Get formatted string for log file.</em> <a href="#a3"></a><em></em><br><br></td></tr>
<tr><td colspan=2><br><h2>Static Public Member Functions</h2></td></tr>
2003-04-27 22:15:26 +00:00
<tr><td nowrap align=right valign=top>void&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZError.html#d0">CreateStringTable</a> ()</td></tr>
2003-07-05 00:40:44 +00:00
<tr><td>&nbsp;</td><td><em class="mdesc">Construct string table for error strings.</em> <a href="#d0"></a><em></em><br><br></td></tr>
2003-04-27 22:15:26 +00:00
<tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top><a name="n0" doxytag="ZE::ZError::rCode"></a>
2003-04-28 02:00:38 +00:00
<a class="el" href="namespaceZE.html#a24">ZErrorCode</a>&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZError.html#n0">rCode</a></td></tr>
2003-07-05 00:40:44 +00:00
<tr><td>&nbsp;</td><td><em class="mdesc">Error ID.</em><br><br></td></tr>
2003-04-27 22:15:26 +00:00
<tr><td nowrap align=right valign=top><a name="n1" doxytag="ZE::ZError::rDescription"></a>
2003-07-05 00:40:44 +00:00
std::string&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZError.html#n1">rDescription</a></td></tr>
<tr><td>&nbsp;</td><td><em class="mdesc">Error Description.</em><br><br></td></tr>
2003-04-27 22:15:26 +00:00
<tr><td nowrap align=right valign=top><a name="n2" doxytag="ZE::ZError::rFilename"></a>
2003-07-05 00:40:44 +00:00
std::string&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZError.html#n2">rFilename</a></td></tr>
<tr><td>&nbsp;</td><td><em class="mdesc">File which error occured in.</em><br><br></td></tr>
2003-04-27 22:15:26 +00:00
<tr><td nowrap align=right valign=top><a name="n3" doxytag="ZE::ZError::rLine"></a>
unsigned int&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZError.html#n3">rLine</a></td></tr>
2003-07-05 00:40:44 +00:00
<tr><td>&nbsp;</td><td><em class="mdesc">Line which error occured on.</em><br><br></td></tr>
2003-04-27 22:15:26 +00:00
<tr><td colspan=2><br><h2>Static Protected Attributes</h2></td></tr>
<tr><td nowrap align=right valign=top><a name="q0" doxytag="ZE::ZError::sErrorDesc"></a>
2003-07-05 00:40:44 +00:00
std::string&nbsp;</td><td valign=bottom><a class="el" href="classZE_1_1ZError.html#q0">sErrorDesc</a> [ZERR_LAST]</td></tr>
<tr><td>&nbsp;</td><td><em class="mdesc">Static Array of Error Identifiers.</em><br><br></td></tr>
2003-04-27 22:15:26 +00:00
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="ZE::ZError::ZError"></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"> ZE::ZError::ZError </td>
<td class="md" valign="top">(&nbsp;</td>
2003-04-28 02:00:38 +00:00
<td class="md" nowrap valign="top"><a class="el" href="namespaceZE.html#a24">ZErrorCode</a>&nbsp;</td>
2003-07-05 00:40:44 +00:00
<td class="mdname" nowrap> <em>code</em> = ZERR_NONE, </td>
2003-04-27 22:15:26 +00:00
</tr>
<tr>
<td></td>
<td></td>
2003-07-05 00:40:44 +00:00
<td class="md" nowrap>std::string&nbsp;</td>
<td class="mdname" nowrap> <em>desc</em> = "", </td>
2003-04-27 22:15:26 +00:00
</tr>
<tr>
<td></td>
<td></td>
2003-07-05 00:40:44 +00:00
<td class="md" nowrap>std::string&nbsp;</td>
<td class="mdname" nowrap> <em>file</em> = "", </td>
2003-04-27 22:15:26 +00:00
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>int&nbsp;</td>
2003-07-05 00:40:44 +00:00
<td class="mdname" nowrap> <em>line</em> = 0</td>
2003-04-27 22:15:26 +00:00
</tr>
<tr>
<td></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Make new <a class="el" href="classZE_1_1ZError.html">ZError</a> object, by default set rCode to ZERR_NONE with no description. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>code</em>&nbsp;</td><td>ZErrorCode to set object to, defaults to ZERR_NONE. </td></tr>
<tr><td valign=top><em>desc</em>&nbsp;</td><td>Description to use for object, defaults to nothing. </td></tr>
<tr><td valign=top><em>file</em>&nbsp;</td><td>Optional argument specifying the file the error occured in. </td></tr>
<tr><td valign=top><em>line</em>&nbsp;</td><td>Optional argument specifying the line the error occured on. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="d0" doxytag="ZE::ZError::CreateStringTable"></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 ZE::ZError::CreateStringTable </td>
<td class="md" valign="top">(&nbsp;</td>
2003-07-05 00:40:44 +00:00
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
2003-04-27 22:15:26 +00:00
<td class="md" nowrap><code> [static]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Constructs a string table for errors, enabling <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> to properly delete the table on exit. </td>
</tr>
</table>
2003-07-05 00:40:44 +00:00
<a name="a1" doxytag="ZE::ZError::Create"></a><p>
2003-04-27 22:15:26 +00:00
<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 ZE::ZError::Create </td>
<td class="md" valign="top">(&nbsp;</td>
2003-04-28 02:00:38 +00:00
<td class="md" nowrap valign="top"><a class="el" href="namespaceZE.html#a24">ZErrorCode</a>&nbsp;</td>
2003-07-05 00:40:44 +00:00
<td class="mdname" nowrap> <em>code</em>, </td>
2003-04-27 22:15:26 +00:00
</tr>
<tr>
<td></td>
<td></td>
2003-07-05 00:40:44 +00:00
<td class="md" nowrap>std::string&nbsp;</td>
<td class="mdname" nowrap> <em>desc</em> = "", </td>
2003-04-27 22:15:26 +00:00
</tr>
<tr>
<td></td>
<td></td>
2003-07-05 00:40:44 +00:00
<td class="md" nowrap>std::string&nbsp;</td>
<td class="mdname" nowrap> <em>file</em> = "", </td>
2003-04-27 22:15:26 +00:00
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>int&nbsp;</td>
2003-07-05 00:40:44 +00:00
<td class="mdname" nowrap> <em>line</em> = 0</td>
2003-04-27 22:15:26 +00:00
</tr>
<tr>
<td></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Set new values in <a class="el" href="classZE_1_1ZError.html">ZError</a> object. <dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign=top><em>code</em>&nbsp;</td><td>ZErrorCode to set object to. </td></tr>
<tr><td valign=top><em>desc</em>&nbsp;</td><td>Description to use for object, defaults to nothing. </td></tr>
<tr><td valign=top><em>file</em>&nbsp;</td><td>Optional argument specifying the file the error occured in. </td></tr>
<tr><td valign=top><em>line</em>&nbsp;</td><td>Optional argument specifying the line the error occured on. </td></tr>
</table>
</dl>
</td>
</tr>
</table>
2003-07-05 00:40:44 +00:00
<a name="a2" doxytag="ZE::ZError::Code"></a><p>
2003-04-27 22:15:26 +00:00
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
2003-04-28 02:00:38 +00:00
<td class="md" nowrap valign="top"> <a class="el" href="namespaceZE.html#a24">ZErrorCode</a> ZE::ZError::Code </td>
2003-04-27 22:15:26 +00:00
<td class="md" valign="top">(&nbsp;</td>
2003-07-05 00:40:44 +00:00
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
2003-04-27 22:15:26 +00:00
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Access ZErrorCode of the <a class="el" href="classZE_1_1ZError.html">ZError</a> object. <dl compact><dt><b>Returns:</b></dt><dd>The error ZErrorCode. </dd></dl>
</td>
</tr>
</table>
2003-07-05 00:40:44 +00:00
<a name="a3" doxytag="ZE::ZError::LogString"></a><p>
2003-04-27 22:15:26 +00:00
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
2003-07-05 00:40:44 +00:00
<td class="md" nowrap valign="top"> std::string ZE::ZError::LogString </td>
2003-04-27 22:15:26 +00:00
<td class="md" valign="top">(&nbsp;</td>
2003-07-05 00:40:44 +00:00
<td class="mdname1" valign="top" nowrap> </td>
<td class="md" valign="top">&nbsp;)&nbsp;</td>
2003-04-27 22:15:26 +00:00
<td class="md" nowrap> const</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Return the string to be written to the logfile. Called by <a class="el" href="classZE_1_1ZEngine.html">ZEngine</a> in LogError. </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following files:<ul>
<li>/include/<a class="el" href="ZE__ZError_8h-source.html">ZE_ZError.h</a><li>/src/<a class="el" href="ZE__ZError_8cpp.html">ZE_ZError.cpp</a></ul>
2003-07-05 00:40:44 +00:00
<hr><address style="align: right;"><small>Generated on Sun Jun 29 14:13:51 2003 for ZEngine by
2003-04-27 22:15:26 +00:00
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0
2003-07-05 00:40:44 +00:00
width=110 height=53></a>1.3 </small></address>
2003-04-27 22:15:26 +00:00
</body>
</html>