aboutsummaryrefslogblamecommitdiffstats
path: root/doc/api-documentation/html/entriesblk_8h-source.html
blob: 45b8f08a9ed3fc140180d2a460e389c85e26ec08 (plain) (tree)
1
2
3
4
5
6
7




                                                                                   
                                    
        



































                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

                                                             
                                                 

       
<!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>entriesblk.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.17 -->
<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="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="classes.html">Alphabetical 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; </center>
<hr><h1>entriesblk.h</h1><div class="fragment"><pre>00001 <span class="preprocessor">#ifndef ENTRIESBLK_H</span>
00002 <span class="preprocessor"></span><span class="preprocessor">#define ENTRIESBLK_H</span>
00003 <span class="preprocessor"></span>
00004 <span class="preprocessor">#include &lt;sysdata.h&gt;</span>
00005 <span class="preprocessor">#include &lt;defs.h&gt;</span>
00006 
00007 SWORD_NAMESPACE_START
00008 
00009 <span class="keyword">class </span>EntriesBlock {
00010         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> METAHEADERSIZE;
00011         <span class="keyword">static</span> <span class="keyword">const</span> <span class="keywordtype">int</span> METAENTRYSIZE;
00012 
00013 <span class="keyword">private</span>:
00014         <span class="keywordtype">char</span> *block;
00015         <span class="keywordtype">void</span> setCount(<span class="keywordtype">int</span> count);
00016         <span class="keywordtype">void</span> getMetaEntry(<span class="keywordtype">int</span> index, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *offset, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *size);
00017         <span class="keywordtype">void</span> setMetaEntry(<span class="keywordtype">int</span> index, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> offset, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> size);
00018 
00019 <span class="keyword">public</span>:
00020         EntriesBlock(<span class="keyword">const</span> <span class="keywordtype">char</span> *iBlock, <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> size);
00021         EntriesBlock();
00022         ~EntriesBlock();
00023 
00024         <span class="keywordtype">int</span> getCount();
00025         <span class="keywordtype">int</span> addEntry(<span class="keyword">const</span> <span class="keywordtype">char</span> *entry);
00026         <span class="keyword">const</span> <span class="keywordtype">char</span> *getEntry(<span class="keywordtype">int</span> entryIndex);
00027         <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> getEntrySize(<span class="keywordtype">int</span> entryIndex);
00028         <span class="keywordtype">void</span> removeEntry(<span class="keywordtype">int</span> entryIndex);
00029         <span class="keyword">const</span> <span class="keywordtype">char</span> *getRawData(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> *size);
00030 };
00031 
00032 
00033 SWORD_NAMESPACE_END
00034 <span class="preprocessor">#endif</span>
</pre></div><hr><address style="align: right;"><small>Generated on Thu Oct 31 12:11:28 2002 for The Sword Project by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0 
width=110 height=53></a>1.2.17 </small></address>
</body>
</html>