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: fx-0.7.0/lib/file_preproc.cpp File Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
6
<!-- Generated by Doxygen 1.3.7 -->
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>
8
<h1>file_preproc.cpp File Reference</h1><hr><a name="_details"></a><h2>Detailed Description</h2>
9
File type detection, etc.
11
Implements AutoDetection of file type, and handoff to specific parsers.
13
Definition in file <a class="el" href="fx-0_87_80_2lib_2file__preproc_8cpp-source.html">fx-0.7.0/lib/file_preproc.cpp</a>.
17
<a href="fx-0_87_80_2lib_2file__preproc_8cpp-source.html">Go to the source code of this file.</a><table border=0 cellpadding=0 cellspacing=0>
19
<tr><td colspan=2><br><h2>Functions</h2></td></tr>
20
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a1" doxytag="fx-0.7.0/lib/file_preproc.cpp::libofx_get_file_format_description" ></a>
21
const char * </td><td class="memItemRight" valign=bottom><b>libofx_get_file_format_description</b> (const struct LibofxFileFormatInfo format_list[], enum <a class="el" href="libofx-0_87_80_2inc_2libofx_8h.html#a90">LibofxFileFormat</a> file_format)</td></tr>
23
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a2" doxytag="fx-0.7.0/lib/file_preproc.cpp::libofx_get_file_format_from_str" ></a>
24
enum <a class="el" href="libofx-0_87_80_2inc_2libofx_8h.html#a90">LibofxFileFormat</a> </td><td class="memItemRight" valign=bottom><b>libofx_get_file_format_from_str</b> (const struct LibofxFileFormatInfo format_list[], const char *file_type_string)</td></tr>
26
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a3" doxytag="fx-0.7.0/lib/file_preproc.cpp::libofx_proc_file" ></a>
27
CFCT int </td><td class="memItemRight" valign=bottom><b>libofx_proc_file</b> (LibofxContextPtr p_libofx_context, const char *p_filename, <a class="el" href="libofx-0_87_80_2inc_2libofx_8h.html#a90">LibofxFileFormat</a> p_file_type)</td></tr>
29
<tr><td class="memItemLeft" nowrap align=right valign=top>enum <a class="el" href="libofx-0_87_80_2inc_2libofx_8h.html#a90">LibofxFileFormat</a> </td><td class="memItemRight" valign=bottom><a class="el" href="fx-0_87_80_2lib_2file__preproc_8cpp.html#a4">libofx_detect_file_type</a> (const char *p_filename)</td></tr>
31
<tr><td class="mdescLeft"> </td><td class="mdescRight">libofx_detect_file_type tries to analyze a file to determine it's format. <a href="#a4"></a><br><br></td></tr>
32
<tr><td colspan=2><br><h2>Variables</h2></td></tr>
33
<tr><td class="memItemLeft" nowrap align=right valign=top><a class="anchor" name="a0" doxytag="fx-0.7.0/lib/file_preproc.cpp::READ_BUFFER_SIZE" ></a>
34
const unsigned int </td><td class="memItemRight" valign=bottom><b>READ_BUFFER_SIZE</b> = 1024</td></tr>
37
<hr><h2>Function Documentation</h2>
38
<a class="anchor" name="a4" doxytag="fx-0.7.0/lib/file_preproc.cpp::libofx_detect_file_type" ></a><p>
39
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
42
<table cellpadding="0" cellspacing="0" border="0">
44
<td class="md" nowrap valign="top"> enum <a class="el" href="libofx-0_87_80_2inc_2libofx_8h.html#a90">LibofxFileFormat</a> libofx_detect_file_type </td>
45
<td class="md" valign="top">( </td>
46
<td class="md" nowrap valign="top">const char * </td>
47
<td class="mdname1" valign="top" nowrap> <em>p_filename</em> </td>
48
<td class="md" valign="top"> ) </td>
49
<td class="md" nowrap></td>
55
<table cellspacing=5 cellpadding=0 border=0>
63
libofx_detect_file_type tries to analyze a file to determine it's format.
65
<dl compact><dt><b>Parameters:</b></dt><dd>
66
<table border="0" cellspacing="2" cellpadding="0">
67
<tr><td></td><td valign=top><em>p_filename</em> </td><td>File name of the file to process </td></tr>
70
<dl compact><dt><b>Returns:</b></dt><dd>Detected file format, UNKNOWN if unsuccessfull. </dd></dl>
73
Definition at line <a class="el" href="fx-0_87_80_2lib_2file__preproc_8cpp-source.html#l00099">99</a> of file <a class="el" href="fx-0_87_80_2lib_2file__preproc_8cpp-source.html">fx-0.7.0/lib/file_preproc.cpp</a>. </td>
76
<hr size="1"><address style="align: right;"><small>Generated on Fri Oct 8 20:34:48 2004 for LibOFX by
77
<a href="http://www.doxygen.org/index.html">
78
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>