~mterry/ubuntu/natty/libofx/libofx.new-upstream-benoit-sru

« back to all changes in this revision

Viewing changes to doc/html/fx-0_88_82_2lib_2ofx__error__msg_8hh-source.html

  • Committer: Bazaar Package Importer
  • Author(s): Saïvann Carignan
  • Date: 2008-02-06 17:25:16 UTC
  • mto: (3.1.2 lenny)
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: james.westby@ubuntu.com-20080206172516-bnzxb29igye8um9h
Tags: upstream-0.9.0
Import upstream version 0.9.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
 
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
 
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
3
3
<title>LibOFX: ofx_error_msg.hh Source File</title>
4
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
5
<link href="tabs.css" rel="stylesheet" type="text/css">
6
6
</head><body>
7
 
<!-- Generated by Doxygen 1.4.6 -->
 
7
<!-- Generated by Doxygen 1.5.3 -->
8
8
<div class="tabs">
9
9
  <ul>
10
10
    <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
11
11
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
12
12
    <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
13
 
    <li id="current"><a href="files.html"><span>Files</span></a></li>
14
 
  </ul></div>
15
 
<div class="tabs">
16
 
  <ul>
17
 
    <li><a href="files.html"><span>File&nbsp;List</span></a></li>
18
 
    <li><a href="globals.html"><span>Globals</span></a></li>
19
 
  </ul></div>
 
13
    <li class="current"><a href="files.html"><span>Files</span></a></li>
 
14
  </ul>
 
15
</div>
20
16
<h1>ofx_error_msg.hh</h1><a href="fx-0_88_82_2lib_2ofx__error__msg_8hh.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/***************************************************************************</span>
21
17
<a name="l00002"></a>00002 <span class="comment">                          ofx_data_struct.h  -  description</span>
22
18
<a name="l00003"></a>00003 <span class="comment">                             -------------------</span>
35
31
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef OFX_DATA_STRUCT_H</span>
36
32
<a name="l00020"></a>00020 <span class="preprocessor"></span><span class="preprocessor">#define OFX_DATA_STRUCT_H</span>
37
33
<a name="l00021"></a>00021 <span class="preprocessor"></span>
38
 
<a name="l00023"></a>00023 <span class="keyword">struct </span><a class="code" href="structErrorMsg.html">ErrorMsg</a>
 
34
<a name="l00023"></a>00023 <span class="keyword">struct </span><a class="code" href="structErrorMsg.html" title="An abstraction of an OFX error code sent by an OFX server.">ErrorMsg</a>
39
35
<a name="l00024"></a>00024 {
40
 
<a name="l00025"></a>00025   <span class="keywordtype">int</span> <a class="code" href="structErrorMsg.html#95f22180acb45e48ab748671ff12fee8">code</a>;           
41
 
<a name="l00026"></a><a class="code" href="structErrorMsg.html#30f6cd9d0265185623528f1a1b1538d6">00026</a>   <span class="keywordtype">char</span> * <a class="code" href="structErrorMsg.html#30f6cd9d0265185623528f1a1b1538d6">name</a>;        
42
 
<a name="l00027"></a><a class="code" href="structErrorMsg.html#80225752af59aa5168e2affb3cb039b3">00027</a>   <span class="keywordtype">char</span> * <a class="code" href="structErrorMsg.html#80225752af59aa5168e2affb3cb039b3">description</a>; 
 
36
<a name="l00025"></a>00025   <span class="keywordtype">int</span> <a class="code" href="structErrorMsg.html#1308f8c77806e8c2a78f59ea17a6401d">code</a>;           
 
37
<a name="l00026"></a><a class="code" href="structErrorMsg.html#c1eea419b5ed61d97b8ec5f03a9bd7b8">00026</a>   <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="structErrorMsg.html#c1eea419b5ed61d97b8ec5f03a9bd7b8">name</a>;        
 
38
<a name="l00027"></a><a class="code" href="structErrorMsg.html#f79b973bc93afa2d85bdebe7db18155f">00027</a>   <span class="keyword">const</span> <span class="keywordtype">char</span> * <a class="code" href="structErrorMsg.html#f79b973bc93afa2d85bdebe7db18155f">description</a>; 
43
39
<a name="l00028"></a>00028 };
44
40
<a name="l00029"></a>00029 
45
41
<a name="l00031"></a>00031 
46
 
<a name="l00034"></a><a class="code" href="fx-0_88_82_2lib_2ofx__error__msg_8hh.html#0b2d7a9d45507737f31070e93255ee81">00034</a> <span class="keyword">const</span> <a class="code" href="structErrorMsg.html">ErrorMsg</a> <a class="code" href="ofx__error__msg_8hh.html#0b2d7a9d45507737f31070e93255ee81">error_msgs_list</a>[] = {
 
42
<a name="l00034"></a><a class="code" href="fx-0_88_82_2lib_2ofx__error__msg_8hh.html#55330fe48f8c210038dfaae0ed8dd608">00034</a> <span class="keyword">const</span> <a class="code" href="structErrorMsg.html" title="An abstraction of an OFX error code sent by an OFX server.">ErrorMsg</a> <a class="code" href="ofx__error__msg_8hh.html#55330fe48f8c210038dfaae0ed8dd608" title="List known error codes.">error_msgs_list</a>[] = {
47
43
<a name="l00035"></a>00035   {0, <span class="stringliteral">"Success"</span>, <span class="stringliteral">"The server successfully processed the request."</span>},
48
44
<a name="l00036"></a>00036   {1, <span class="stringliteral">"Client is up-to-date"</span>, <span class="stringliteral">"Based on the client timestamp, the client has the latest information. The response does not supply any additional information."</span>},
49
45
<a name="l00037"></a>00037   {2000, <span class="stringliteral">"General error"</span>, <span class="stringliteral">"Error other than those specified by the remaining error codes. (Note: Servers should provide a more specific error whenever possible. Error code 2000 should be reserved for cases in which a more specific code is not available.)"</span>},
134
130
<a name="l00122"></a>00122   {-1, <span class="stringliteral">"Unknown code"</span>, <span class="stringliteral">"The description of this code is unknown to libOfx"</span>}};
135
131
<a name="l00123"></a>00123 
136
132
<a name="l00125"></a>00125 
137
 
<a name="l00128"></a><a class="code" href="fx-0_88_82_2lib_2ofx__error__msg_8hh.html#913f987171101b59b0c710c4bb261be6">00128</a> <span class="keyword">const</span> <a class="code" href="structErrorMsg.html">ErrorMsg</a> <a class="code" href="ofx__error__msg_8hh.html#913f987171101b59b0c710c4bb261be6">find_error_msg</a>(<span class="keywordtype">int</span> param_code)
 
133
<a name="l00128"></a><a class="code" href="fx-0_88_82_2lib_2ofx__error__msg_8hh.html#dac162b52803cc0814b829813ad3a5aa">00128</a> <span class="keyword">const</span> <a class="code" href="structErrorMsg.html" title="An abstraction of an OFX error code sent by an OFX server.">ErrorMsg</a> <a class="code" href="ofx__error__msg_8hh.html#dac162b52803cc0814b829813ad3a5aa" title="Retreive error code descriptions.">find_error_msg</a>(<span class="keywordtype">int</span> param_code)
138
134
<a name="l00129"></a>00129 {
139
 
<a name="l00130"></a>00130   <a class="code" href="structErrorMsg.html">ErrorMsg</a> return_val;
 
135
<a name="l00130"></a>00130   <a class="code" href="structErrorMsg.html" title="An abstraction of an OFX error code sent by an OFX server.">ErrorMsg</a> return_val;
140
136
<a name="l00131"></a>00131   <span class="keywordtype">int</span> i;
141
137
<a name="l00132"></a>00132   <span class="keywordtype">bool</span> code_found=<span class="keyword">false</span>;
142
138
<a name="l00133"></a>00133   
143
139
<a name="l00134"></a>00134   <span class="keywordflow">for</span>(i=0;i&lt;2000&amp;&amp;(code_found==<span class="keyword">false</span>);i++){
144
 
<a name="l00135"></a>00135     <span class="keywordflow">if</span>((<a class="code" href="ofx__error__msg_8hh.html#0b2d7a9d45507737f31070e93255ee81">error_msgs_list</a>[i].code==param_code)||(<a class="code" href="ofx__error__msg_8hh.html#0b2d7a9d45507737f31070e93255ee81">error_msgs_list</a>[i].code==-1)){
145
 
<a name="l00136"></a>00136       return_val=<a class="code" href="ofx__error__msg_8hh.html#0b2d7a9d45507737f31070e93255ee81">error_msgs_list</a>[i];
 
140
<a name="l00135"></a>00135     <span class="keywordflow">if</span>((error_msgs_list[i].code==param_code)||(error_msgs_list[i].<a class="code" href="structErrorMsg.html#1308f8c77806e8c2a78f59ea17a6401d">code</a>==-1)){
 
141
<a name="l00136"></a>00136       return_val=error_msgs_list[i];
146
142
<a name="l00137"></a>00137       code_found=<span class="keyword">true</span>;
147
143
<a name="l00138"></a>00138     }
148
144
<a name="l00139"></a>00139   }
150
146
<a name="l00141"></a>00141 };
151
147
<a name="l00142"></a>00142 
152
148
<a name="l00143"></a>00143 <span class="preprocessor">#endif</span>
153
 
</pre></div><hr size="1"><address style="align: right;"><small>Generated on Fri Aug 25 13:25:22 2006 for LibOFX by&nbsp;
 
149
</pre></div><hr size="1"><address style="text-align: right;"><small>Generated on Mon Nov 19 20:27:59 2007 for LibOFX by&nbsp;
154
150
<a href="http://www.doxygen.org/index.html">
155
 
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
 
151
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.3 </small></address>
156
152
</body>
157
153
</html>