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">
3
<title>LibOFX: messages.cpp File Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
<!-- Generated by Doxygen 1.3.9.1 -->
7
<div class="qindex"><a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a></div>
9
<a class="el" href="dir_000003.html">libofx-0.8.0</a> / <a class="el" href="dir_000004.html">lib</a></div>
10
<h1>fx-0.8.0/lib/messages.cpp File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
11
Message IO functionality.
15
Definition in file <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html">fx-0.8.0/lib/messages.cpp</a>.
19
<a href="fx-0_88_80_2lib_2messages_8cpp-source.html">Go to the source code of this file.</a><table border="0" cellpadding="0" cellspacing="0">
21
<tr><td colspan="2"><br><h2>Functions</h2></td></tr>
22
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a14" doxytag="fx-0.8.0/lib/messages.cpp::show_line_number"></a>
23
void </td><td class="memItemRight" valign="bottom"><b>show_line_number</b> ()</td></tr>
25
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a15">message_out</a> (<a class="el" href="fx-0_88_80_2lib_2messages_8hh.html#a12">OfxMsgType</a> error_type, const string message)</td></tr>
27
<tr><td class="mdescLeft"> </td><td class="mdescRight">Message output function. <a href="#a15"></a><br></td></tr>
28
<tr><td colspan="2"><br><h2>Variables</h2></td></tr>
29
<tr><td class="memItemLeft" nowrap align="right" valign="top">SGMLApplication::OpenEntityPtr </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a0">entity_ptr</a></td></tr>
31
<tr><td class="memItemLeft" nowrap align="right" valign="top">SGMLApplication::Position </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a1">position</a></td></tr>
33
<tr><td class="memItemLeft" nowrap align="right" valign="top">volatile int </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a2">ofx_PARSER_msg</a> = false</td></tr>
35
<tr><td class="memItemLeft" nowrap align="right" valign="top">volatile int </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a3">ofx_DEBUG_msg</a> = false</td></tr>
37
<tr><td class="memItemLeft" nowrap align="right" valign="top">volatile int </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a4">ofx_DEBUG1_msg</a> = false</td></tr>
39
<tr><td class="memItemLeft" nowrap align="right" valign="top">volatile int </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a5">ofx_DEBUG2_msg</a> = false</td></tr>
41
<tr><td class="memItemLeft" nowrap align="right" valign="top">volatile int </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a6">ofx_DEBUG3_msg</a> = false</td></tr>
43
<tr><td class="memItemLeft" nowrap align="right" valign="top">volatile int </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a7">ofx_DEBUG4_msg</a> = false</td></tr>
45
<tr><td class="memItemLeft" nowrap align="right" valign="top">volatile int </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a8">ofx_DEBUG5_msg</a> = false</td></tr>
47
<tr><td class="memItemLeft" nowrap align="right" valign="top">volatile int </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a9">ofx_STATUS_msg</a> = false</td></tr>
49
<tr><td class="memItemLeft" nowrap align="right" valign="top">volatile int </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a10">ofx_INFO_msg</a> = false</td></tr>
51
<tr><td class="memItemLeft" nowrap align="right" valign="top">volatile int </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a11">ofx_WARNING_msg</a> = false</td></tr>
53
<tr><td class="memItemLeft" nowrap align="right" valign="top">volatile int </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a12">ofx_ERROR_msg</a> = false</td></tr>
55
<tr><td class="memItemLeft" nowrap align="right" valign="top">volatile int </td><td class="memItemRight" valign="bottom"><a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a13">ofx_show_position</a> = true</td></tr>
58
<hr><h2>Function Documentation</h2>
59
<a class="anchor" name="a15" doxytag="fx-0.8.0/lib/messages.cpp::message_out"></a><p>
60
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
63
<table cellpadding="0" cellspacing="0" border="0">
65
<td class="md" nowrap valign="top">int message_out </td>
66
<td class="md" valign="top">( </td>
67
<td class="md" nowrap valign="top"><a class="el" href="fx-0_88_80_2lib_2messages_8hh.html#a12">OfxMsgType</a> </td>
68
<td class="mdname" nowrap> <em>error_type</em>, </td>
71
<td class="md" nowrap align="right"></td>
73
<td class="md" nowrap>const string </td>
74
<td class="mdname" nowrap> <em>message</em></td>
78
<td class="md">) </td>
79
<td class="md" colspan="2"></td>
85
<table cellspacing="5" cellpadding="0" border="0">
93
Message output function.
95
Prints a message to stdout, if the corresponding message OfxMsgType given in the parameters is enabled
97
Definition at line <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html#l00058">58</a> of file <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html">fx-0.8.0/lib/messages.cpp</a>.
99
Referenced by <a class="el" href="ofx__container__generic_8cpp-source.html#l00055">OfxGenericContainer::add_attribute()</a>, <a class="el" href="ofx__container__transaction_8cpp-source.html#l00333">OfxInvestmentTransactionContainer::add_attribute()</a>, <a class="el" href="ofx__containers__misc_8cpp-source.html#l00047">OfxDummyContainer::add_attribute()</a>, <a class="el" href="ofx__containers__misc_8cpp-source.html#l00087">OfxStatusContainer::add_attribute()</a>, <a class="el" href="ofc__sgml_8cpp-source.html#l00276">OFCApplication::data()</a>, <a class="el" href="ofx__sgml_8cpp-source.html#l00279">OFXApplication::data()</a>, <a class="el" href="ofc__sgml_8cpp-source.html#l00204">OFCApplication::endElement()</a>, <a class="el" href="ofx__sgml_8cpp-source.html#l00207">OFXApplication::endElement()</a>, <a class="el" href="ofc__sgml_8cpp-source.html#l00288">OFCApplication::error()</a>, <a class="el" href="ofx__sgml_8cpp-source.html#l00291">OFXApplication::error()</a>, <a class="el" href="ofx__preproc_8cpp-source.html#l00434">find_dtd()</a>, <a class="el" href="ofx__container__main_8cpp-source.html#l00154">OfxMainContainer::gen_event()</a>, <a class="el" href="file__preproc_8cpp-source.html#l00099">libofx_detect_file_type()</a>, <a class="el" href="ofx__preproc_8cpp-source.html#l00201">libofx_proc_buffer()</a>, <a class="el" href="ofc__sgml_8cpp-source.html#l00345">ofc_proc_sgml()</a>, <a class="el" href="ofx__preproc_8cpp-source.html#l00058">ofx_proc_file()</a>, <a class="el" href="ofx__sgml_8cpp-source.html#l00348">ofx_proc_sgml()</a>, <a class="el" href="ofx__utilities_8cpp-source.html#l00097">ofxdate_to_time_t()</a>, <a class="el" href="ofc__sgml_8cpp-source.html#l00332">OFCApplication::openEntityChange()</a>, <a class="el" href="ofx__sgml_8cpp-source.html#l00335">OFXApplication::openEntityChange()</a>, <a class="el" href="ofx__preproc_8cpp-source.html#l00331">sanitize_proprietary_tags()</a>, <a class="el" href="ofc__sgml_8cpp-source.html#l00064">OFCApplication::startElement()</a>, <a class="el" href="ofx__sgml_8cpp-source.html#l00067">OFXApplication::startElement()</a>, and <a class="el" href="ofx__utilities_8cpp-source.html#l00186">strip_whitespace()</a>. </td>
102
<hr><h2>Variable Documentation</h2>
103
<a class="anchor" name="a0" doxytag="fx-0.8.0/lib/messages.cpp::entity_ptr"></a><p>
104
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
107
<table cellpadding="0" cellspacing="0" border="0">
109
<td class="md" nowrap valign="top">SGMLApplication::OpenEntityPtr <a class="el" href="fx-0_88_80_2lib_2ofx__sgml_8cpp.html#a1">entity_ptr</a> </td>
115
<table cellspacing="5" cellpadding="0" border="0">
123
Global for determining the line number in OpenSP
125
Definition at line <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html#l00025">25</a> of file <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html">fx-0.8.0/lib/messages.cpp</a>. </td>
128
<a class="anchor" name="a4" doxytag="fx-0.8.0/lib/messages.cpp::ofx_DEBUG1_msg"></a><p>
129
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
132
<table cellpadding="0" cellspacing="0" border="0">
134
<td class="md" nowrap valign="top">volatile int <a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a4">ofx_DEBUG1_msg</a> = false </td>
140
<table cellspacing="5" cellpadding="0" border="0">
148
If set to true, debug level 1 messages will be printed to the console
150
Definition at line <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html#l00030">30</a> of file <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html">fx-0.8.0/lib/messages.cpp</a>. </td>
153
<a class="anchor" name="a5" doxytag="fx-0.8.0/lib/messages.cpp::ofx_DEBUG2_msg"></a><p>
154
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
157
<table cellpadding="0" cellspacing="0" border="0">
159
<td class="md" nowrap valign="top">volatile int <a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a5">ofx_DEBUG2_msg</a> = false </td>
165
<table cellspacing="5" cellpadding="0" border="0">
173
If set to true, debug level 2 messages will be printed to the console
175
Definition at line <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html#l00031">31</a> of file <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html">fx-0.8.0/lib/messages.cpp</a>. </td>
178
<a class="anchor" name="a6" doxytag="fx-0.8.0/lib/messages.cpp::ofx_DEBUG3_msg"></a><p>
179
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
182
<table cellpadding="0" cellspacing="0" border="0">
184
<td class="md" nowrap valign="top">volatile int <a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a6">ofx_DEBUG3_msg</a> = false </td>
190
<table cellspacing="5" cellpadding="0" border="0">
198
If set to true, debug level 3 messages will be printed to the console
200
Definition at line <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html#l00032">32</a> of file <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html">fx-0.8.0/lib/messages.cpp</a>. </td>
203
<a class="anchor" name="a7" doxytag="fx-0.8.0/lib/messages.cpp::ofx_DEBUG4_msg"></a><p>
204
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
207
<table cellpadding="0" cellspacing="0" border="0">
209
<td class="md" nowrap valign="top">volatile int <a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a7">ofx_DEBUG4_msg</a> = false </td>
215
<table cellspacing="5" cellpadding="0" border="0">
223
If set to true, debug level 4 messages will be printed to the console
225
Definition at line <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html#l00033">33</a> of file <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html">fx-0.8.0/lib/messages.cpp</a>. </td>
228
<a class="anchor" name="a8" doxytag="fx-0.8.0/lib/messages.cpp::ofx_DEBUG5_msg"></a><p>
229
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
232
<table cellpadding="0" cellspacing="0" border="0">
234
<td class="md" nowrap valign="top">volatile int <a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a8">ofx_DEBUG5_msg</a> = false </td>
240
<table cellspacing="5" cellpadding="0" border="0">
248
If set to true, debug level 5 messages will be printed to the console
250
Definition at line <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html#l00034">34</a> of file <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html">fx-0.8.0/lib/messages.cpp</a>. </td>
253
<a class="anchor" name="a3" doxytag="fx-0.8.0/lib/messages.cpp::ofx_DEBUG_msg"></a><p>
254
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
257
<table cellpadding="0" cellspacing="0" border="0">
259
<td class="md" nowrap valign="top">volatile int <a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a3">ofx_DEBUG_msg</a> = false </td>
265
<table cellspacing="5" cellpadding="0" border="0">
273
If set to true, general debug messages will be printed to the console
275
Definition at line <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html#l00029">29</a> of file <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html">fx-0.8.0/lib/messages.cpp</a>. </td>
278
<a class="anchor" name="a12" doxytag="fx-0.8.0/lib/messages.cpp::ofx_ERROR_msg"></a><p>
279
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
282
<table cellpadding="0" cellspacing="0" border="0">
284
<td class="md" nowrap valign="top">volatile int <a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a12">ofx_ERROR_msg</a> = false </td>
290
<table cellspacing="5" cellpadding="0" border="0">
298
If set to true, error messages will be printed to the console
300
Definition at line <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html#l00038">38</a> of file <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html">fx-0.8.0/lib/messages.cpp</a>. </td>
303
<a class="anchor" name="a10" doxytag="fx-0.8.0/lib/messages.cpp::ofx_INFO_msg"></a><p>
304
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
307
<table cellpadding="0" cellspacing="0" border="0">
309
<td class="md" nowrap valign="top">volatile int <a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a10">ofx_INFO_msg</a> = false </td>
315
<table cellspacing="5" cellpadding="0" border="0">
323
If set to true, information messages will be printed to the console
325
Definition at line <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html#l00036">36</a> of file <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html">fx-0.8.0/lib/messages.cpp</a>. </td>
328
<a class="anchor" name="a2" doxytag="fx-0.8.0/lib/messages.cpp::ofx_PARSER_msg"></a><p>
329
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
332
<table cellpadding="0" cellspacing="0" border="0">
334
<td class="md" nowrap valign="top">volatile int <a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a2">ofx_PARSER_msg</a> = false </td>
340
<table cellspacing="5" cellpadding="0" border="0">
348
If set to true, parser events will be printed to the console
350
Definition at line <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html#l00028">28</a> of file <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html">fx-0.8.0/lib/messages.cpp</a>. </td>
353
<a class="anchor" name="a13" doxytag="fx-0.8.0/lib/messages.cpp::ofx_show_position"></a><p>
354
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
357
<table cellpadding="0" cellspacing="0" border="0">
359
<td class="md" nowrap valign="top">volatile int <a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a13">ofx_show_position</a> = true </td>
365
<table cellspacing="5" cellpadding="0" border="0">
373
If set to true, the line number will be shown after any error
375
Definition at line <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html#l00039">39</a> of file <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html">fx-0.8.0/lib/messages.cpp</a>. </td>
378
<a class="anchor" name="a9" doxytag="fx-0.8.0/lib/messages.cpp::ofx_STATUS_msg"></a><p>
379
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
382
<table cellpadding="0" cellspacing="0" border="0">
384
<td class="md" nowrap valign="top">volatile int <a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a9">ofx_STATUS_msg</a> = false </td>
390
<table cellspacing="5" cellpadding="0" border="0">
398
If set to true, status messages will be printed to the console
400
Definition at line <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html#l00035">35</a> of file <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html">fx-0.8.0/lib/messages.cpp</a>. </td>
403
<a class="anchor" name="a11" doxytag="fx-0.8.0/lib/messages.cpp::ofx_WARNING_msg"></a><p>
404
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
407
<table cellpadding="0" cellspacing="0" border="0">
409
<td class="md" nowrap valign="top">volatile int <a class="el" href="fx-0_88_80_2lib_2messages_8cpp.html#a11">ofx_WARNING_msg</a> = false </td>
415
<table cellspacing="5" cellpadding="0" border="0">
423
If set to true, warning messages will be printed to the console
425
Definition at line <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html#l00037">37</a> of file <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html">fx-0.8.0/lib/messages.cpp</a>. </td>
428
<a class="anchor" name="a1" doxytag="fx-0.8.0/lib/messages.cpp::position"></a><p>
429
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
432
<table cellpadding="0" cellspacing="0" border="0">
434
<td class="md" nowrap valign="top">SGMLApplication::Position <a class="el" href="fx-0_88_80_2lib_2ofx__sgml_8cpp.html#a2">position</a> </td>
440
<table cellspacing="5" cellpadding="0" border="0">
448
Global for determining the line number in OpenSP
450
Definition at line <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html#l00026">26</a> of file <a class="el" href="fx-0_88_80_2lib_2messages_8cpp-source.html">fx-0.8.0/lib/messages.cpp</a>. </td>
453
<hr size="1"><address style="align: right;"><small>Generated on Sun Jul 31 15:38:35 2005 for LibOFX by
454
<a href="http://www.doxygen.org/index.html">
455
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>