aboutsummaryrefslogtreecommitdiff
path: root/doc/html/luti_8h_source.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/luti_8h_source.html')
-rw-r--r--doc/html/luti_8h_source.html188
1 files changed, 188 insertions, 0 deletions
diff --git a/doc/html/luti_8h_source.html b/doc/html/luti_8h_source.html
new file mode 100644
index 0000000..073de57
--- /dev/null
+++ b/doc/html/luti_8h_source.html
@@ -0,0 +1,188 @@
+<!-- This comment will put IE 6, 7 and 8 in quirks mode -->
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
+<title>IsisReader: contrib/openisis/luti.h Source File</title>
+<link href="tabs.css" rel="stylesheet" type="text/css"/>
+<link href="search/search.css" rel="stylesheet" type="text/css"/>
+<script type="text/javaScript" src="search/search.js"></script>
+<link href="doxygen.css" rel="stylesheet" type="text/css"/>
+</head>
+<body onload='searchBox.OnSelectItem(0);'>
+<!-- Generated by Doxygen 1.6.1 -->
+<script type="text/javascript"><!--
+var searchBox = new SearchBox("searchBox", "search",false,'Search');
+--></script>
+<div class="navigation" id="top">
+ <div class="tabs">
+ <ul>
+ <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
+ <li><a href="namespaces.html"><span>Namespaces</span></a></li>
+ <li><a href="annotated.html"><span>Classes</span></a></li>
+ <li class="current"><a href="files.html"><span>Files</span></a></li>
+ <li>
+ <div id="MSearchBox" class="MSearchBoxInactive">
+ <img id="MSearchSelect" src="search/search.png"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ alt=""/>
+ <input type="text" id="MSearchField" value="Search" accesskey="S"
+ onfocus="searchBox.OnSearchFieldFocus(true)"
+ onblur="searchBox.OnSearchFieldFocus(false)"
+ onkeyup="searchBox.OnSearchFieldChange(event)"/>
+ <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
+ </div>
+ </li>
+ </ul>
+ </div>
+ <div class="tabs">
+ <ul>
+ <li><a href="files.html"><span>File&nbsp;List</span></a></li>
+ </ul>
+ </div>
+<h1>contrib/openisis/luti.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*</span>
+<a name="l00002"></a>00002 <span class="comment"> openisis - an open implementation of the CDS/ISIS database</span>
+<a name="l00003"></a>00003 <span class="comment"> Version 0.8.x (patchlevel see file Version)</span>
+<a name="l00004"></a>00004 <span class="comment"> Copyright (C) 2001-2003 by Erik Grziwotz, erik@openisis.org</span>
+<a name="l00005"></a>00005 <span class="comment"></span>
+<a name="l00006"></a>00006 <span class="comment"> This library is free software; you can redistribute it and/or</span>
+<a name="l00007"></a>00007 <span class="comment"> modify it under the terms of the GNU Lesser General Public</span>
+<a name="l00008"></a>00008 <span class="comment"> License as published by the Free Software Foundation; either</span>
+<a name="l00009"></a>00009 <span class="comment"> version 2.1 of the License, or (at your option) any later version.</span>
+<a name="l00010"></a>00010 <span class="comment"></span>
+<a name="l00011"></a>00011 <span class="comment"> This library is distributed in the hope that it will be useful,</span>
+<a name="l00012"></a>00012 <span class="comment"> but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
+<a name="l00013"></a>00013 <span class="comment"> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU</span>
+<a name="l00014"></a>00014 <span class="comment"> Lesser General Public License for more details.</span>
+<a name="l00015"></a>00015 <span class="comment"></span>
+<a name="l00016"></a>00016 <span class="comment"> You should have received a copy of the GNU Lesser General Public</span>
+<a name="l00017"></a>00017 <span class="comment"> License along with this library; if not, write to the Free Software</span>
+<a name="l00018"></a>00018 <span class="comment"> Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</span>
+<a name="l00019"></a>00019 <span class="comment"></span>
+<a name="l00020"></a>00020 <span class="comment"> see README for more information</span>
+<a name="l00021"></a>00021 <span class="comment">EOH */</span>
+<a name="l00022"></a>00022 <span class="preprocessor">#ifndef LUTI_H</span>
+<a name="l00023"></a>00023 <span class="preprocessor"></span>
+<a name="l00024"></a>00024 <span class="comment">/*</span>
+<a name="l00025"></a>00025 <span class="comment"> $Id: luti.h,v 1.30 2003/04/17 13:14:41 mawag Exp $</span>
+<a name="l00026"></a>00026 <span class="comment"> common utilities for openisis lib implementation.</span>
+<a name="l00027"></a>00027 <span class="comment">*/</span>
+<a name="l00028"></a>00028
+<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;assert.h&gt;</span>
+<a name="l00030"></a>00030
+<a name="l00031"></a>00031
+<a name="l00032"></a>00032 <span class="preprocessor">#include &quot;loi.h&quot;</span>
+<a name="l00033"></a>00033
+<a name="l00034"></a>00034
+<a name="l00035"></a>00035 <span class="keyword">extern</span> LogLevel log_lev;
+<a name="l00036"></a>00036 <span class="preprocessor">#define LOG_DO( lev ) ((lev) &lt;= log_lev)</span>
+<a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#define LOG_DONT( lev ) ((lev) &gt; log_lev)</span>
+<a name="l00038"></a>00038 <span class="preprocessor"></span>
+<a name="l00053"></a>00053 <span class="keyword">extern</span> <span class="keywordtype">int</span> log_msg ( <span class="keywordtype">int</span> code, <span class="keyword">const</span> <span class="keywordtype">char</span> *fmt, ... );
+<a name="l00054"></a>00054 <span class="preprocessor">#ifndef NDEBUG</span>
+<a name="l00055"></a>00055 <span class="preprocessor"></span><span class="preprocessor"># define LOG_DBG log_msg</span>
+<a name="l00056"></a>00056 <span class="preprocessor"></span><span class="preprocessor">#else</span>
+<a name="l00057"></a>00057 <span class="preprocessor"></span><span class="preprocessor"># ifdef __GNUC__</span>
+<a name="l00058"></a>00058 <span class="preprocessor"></span><span class="preprocessor"># define LOG_DBG( args... )</span>
+<a name="l00059"></a>00059 <span class="preprocessor"></span><span class="preprocessor"># else</span>
+<a name="l00060"></a>00060 <span class="preprocessor"></span><span class="preprocessor"># define LOG_DBG (void) </span><span class="comment">/* compiler should dispose statement off */</span>
+<a name="l00061"></a>00061 <span class="preprocessor"># endif</span>
+<a name="l00062"></a>00062 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
+<a name="l00063"></a>00063 <span class="preprocessor"></span>
+<a name="l00064"></a>00064 <span class="preprocessor">#define LOG_OTO( to, args ) do { ret = log_msg args; goto to; } while (0)</span>
+<a name="l00065"></a>00065 <span class="preprocessor"></span>
+<a name="l00066"></a>00066 <span class="comment">/* content logging is usually on level LOG_TRACE */</span>
+<a name="l00067"></a>00067 <span class="preprocessor">#define LOG_STR( rec, desc ) log_str( LOG_TRACE, rec, desc )</span>
+<a name="l00068"></a>00068 <span class="preprocessor"></span><span class="preprocessor">#define LOG_HEX( mem, len ) log_hex( LOG_TRACE, mem, len )</span>
+<a name="l00069"></a>00069 <span class="preprocessor"></span>
+<a name="l00074"></a>00074 <span class="keyword">extern</span> <span class="keywordtype">void</span> log_str ( LogLevel level, <span class="keywordtype">int</span> *rec, <span class="keyword">const</span> <span class="keywordtype">char</span> **desc );
+<a name="l00075"></a>00075
+<a name="l00076"></a>00076 <span class="comment">/*</span>
+<a name="l00077"></a>00077 <span class="comment"> * print fields of record to stderr</span>
+<a name="l00078"></a>00078 <span class="comment"> * @param level if negative, print msg to stdout</span>
+<a name="l00079"></a>00079 <span class="comment"> * @param delim field delimiter (default &apos;; &apos;)</span>
+<a name="l00080"></a>00080 <span class="comment"> */</span>
+<a name="l00081"></a>00081 <span class="keyword">extern</span> <span class="keywordtype">void</span> log_rec (<span class="keywordtype">int</span> level,
+<a name="l00082"></a>00082 <a class="code" href="structFld.html">Rec</a> *rec, <span class="keyword">const</span> <span class="keywordtype">char</span> *msg, <span class="keyword">const</span> <span class="keywordtype">char</span> *delim);
+<a name="l00083"></a>00083
+<a name="l00088"></a>00088 <span class="keyword">extern</span> <span class="keywordtype">void</span> log_hex ( LogLevel level, <span class="keyword">const</span> <span class="keywordtype">void</span> *mem, <span class="keywordtype">int</span> len );
+<a name="l00089"></a>00089
+<a name="l00093"></a>00093 <span class="keyword">extern</span> <span class="keywordtype">void</span> *lmalloc ( <span class="keywordtype">int</span> size );
+<a name="l00094"></a>00094
+<a name="l00095"></a>00095 <span class="comment">/* more specific log functions in log.h */</span>
+<a name="l00096"></a>00096
+<a name="l00097"></a>00097 <span class="comment">/* printint: optional sign, up to 10 digits, 0 byte.</span>
+<a name="l00098"></a>00098 <span class="comment"> buf must be at least 12 bytes long.</span>
+<a name="l00099"></a>00099 <span class="comment"> return length w/o the 0 byte.</span>
+<a name="l00100"></a>00100 <span class="comment">*/</span>
+<a name="l00101"></a>00101 <span class="keyword">extern</span> <span class="keywordtype">int</span> lprint ( <span class="keywordtype">void</span> *buf, <span class="keywordtype">int</span> i );
+<a name="l00102"></a>00102
+<a name="l00103"></a>00103
+<a name="l00104"></a>00104 <span class="comment">/* Lookup of id from name */</span>
+<a name="l00105"></a>00105 <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="structOpenIsisLT.html">OpenIsisLT</a> *<a class="code" href="structOpenIsisLT.html">LutiLT</a>;
+<a name="l00106"></a>00106
+<a name="l00107"></a>00107 <span class="comment">/* create lookup table */</span>
+<a name="l00108"></a>00108 <span class="keyword">extern</span> LutiLT luti_ltnew ();
+<a name="l00109"></a>00109 <span class="comment">/* destroy lookup table */</span>
+<a name="l00110"></a>00110 <span class="keyword">extern</span> <span class="keywordtype">void</span> luti_ltdel (LutiLT lt);
+<a name="l00111"></a>00111 <span class="comment">/* add entry */</span>
+<a name="l00112"></a>00112 <span class="keyword">extern</span> <span class="keywordtype">void</span> luti_ltadd (LutiLT lt, <span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keywordtype">int</span> <span class="keywordtype">id</span>);
+<a name="l00113"></a>00113 <span class="comment">/* get id for name */</span>
+<a name="l00114"></a>00114 <span class="keyword">extern</span> <span class="keywordtype">int</span> luti_ltget (LutiLT lt, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);
+<a name="l00115"></a>00115 <span class="comment">/* remove entry */</span>
+<a name="l00116"></a>00116 <span class="keyword">extern</span> <span class="keywordtype">void</span> luti_ltrmv (LutiLT lt, <span class="keyword">const</span> <span class="keywordtype">char</span> *name);
+<a name="l00117"></a>00117
+<a name="l00118"></a>00118 <span class="comment">/* get fdt from rec */</span>
+<a name="l00119"></a>00119 <span class="keyword">extern</span> Fdt* luti_fdt_from_rec (<a class="code" href="structFld.html">Rec</a> *rec);
+<a name="l00120"></a>00120
+<a name="l00121"></a>00121 <span class="comment">/* get fd, tag, occurence from path */</span>
+<a name="l00122"></a>00122 <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span>* luti_parse_path (
+<a name="l00123"></a>00123 <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keyword">const</span> Fdt *fdt, Fd **fd, <span class="keywordtype">int</span> *tag, <span class="keywordtype">int</span> *occ);
+<a name="l00124"></a>00124
+<a name="l00125"></a>00125 <span class="comment">/* extract embedded record from envelope */</span>
+<a name="l00126"></a>00126 <span class="keyword">extern</span> <a class="code" href="structFld.html">Rec</a>* luti_unwrap (<a class="code" href="structFld.html">Rec</a> *env, <span class="keywordtype">int</span> *pos, <span class="keywordtype">int</span> tag, <span class="keywordtype">int</span> dbid);
+<a name="l00127"></a>00127
+<a name="l00128"></a>00128 <span class="comment">/* extract embedded record from envelope */</span>
+<a name="l00129"></a>00129 <span class="keyword">extern</span> <a class="code" href="structFld.html">Rec</a>* luti_getembed (
+<a name="l00130"></a>00130 <a class="code" href="structFld.html">Rec</a> *env, <span class="keyword">const</span> <span class="keywordtype">char</span> *path, <span class="keyword">const</span> Fdt *fdt);
+<a name="l00131"></a>00131
+<a name="l00132"></a>00132 <span class="comment">/* embed record in envelope */</span>
+<a name="l00133"></a>00133 <span class="keyword">extern</span> <a class="code" href="structFld.html">Rec</a>* luti_wrap (<a class="code" href="structFld.html">Rec</a> *env, <a class="code" href="structFld.html">Rec</a> *rec, <span class="keywordtype">int</span> tag);
+<a name="l00134"></a>00134
+<a name="l00135"></a>00135 <span class="comment">/* append src fields to tgt */</span>
+<a name="l00136"></a>00136 <span class="keyword">extern</span> <a class="code" href="structFld.html">Rec</a>* luti_append (<a class="code" href="structFld.html">Rec</a> *tgt, <a class="code" href="structFld.html">Rec</a> *src);
+<a name="l00137"></a>00137
+<a name="l00143"></a>00143 <span class="keyword">extern</span> <span class="keywordtype">int</span> luti_ptrincr (
+<a name="l00144"></a>00144 <span class="keywordtype">void</span> *base, <span class="keywordtype">int</span> *num, <span class="keywordtype">int</span> incr, <span class="keywordtype">int</span> siz, <span class="keywordtype">int</span> maxnum);
+<a name="l00145"></a>00145
+<a name="l00148"></a>00148 <span class="keyword">extern</span> <span class="keywordtype">void</span> luti_free (<span class="keywordtype">void</span> **arr, <span class="keywordtype">int</span> num);
+<a name="l00149"></a>00149
+<a name="l00155"></a>00155 <span class="keyword">extern</span> <span class="keywordtype">int</span> luti_true (<span class="keyword">const</span> <span class="keywordtype">char</span> *str, <span class="keywordtype">int</span> len);
+<a name="l00156"></a>00156
+<a name="l00161"></a>00161 <span class="keyword">extern</span> <span class="keywordtype">int</span> lhash ( <span class="keyword">const</span> <span class="keywordtype">char</span> *str, <span class="keywordtype">int</span> len );
+<a name="l00162"></a>00162
+<a name="l00163"></a>00163 <span class="keyword">extern</span> <span class="keyword">const</span> <span class="keywordtype">char</span> luti_hex[16]; <span class="comment">/* &apos;0&apos;..&apos;9&apos;,&apos;a&apos;..&apos;f&apos; */</span>
+<a name="l00164"></a>00164
+<a name="l00165"></a>00165 <span class="preprocessor">#define LUTI_H</span>
+<a name="l00166"></a>00166 <span class="preprocessor"></span><span class="preprocessor">#endif </span><span class="comment">/* LUTI_H */</span>
+</pre></div></div>
+<!--- window showing the filter options -->
+<div id="MSearchSelectWindow"
+ onmouseover="return searchBox.OnSearchSelectShow()"
+ onmouseout="return searchBox.OnSearchSelectHide()"
+ onkeydown="return searchBox.OnSearchSelectKey(event)">
+<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&nbsp;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&nbsp;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&nbsp;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&nbsp;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&nbsp;</span>Variables</a></div>
+
+<!-- iframe showing the search results (closed by default) -->
+<div id="MSearchResultsWindow">
+<iframe src="" frameborder="0"
+ name="MSearchResults" id="MSearchResults">
+</iframe>
+</div>
+
+<hr size="1"/><address style="text-align: right;"><small>Generated on Tue Mar 30 14:47:13 2010 for IsisReader by&nbsp;
+<a href="http://www.doxygen.org/index.html">
+<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
+</body>
+</html>