1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html><head><meta http-equiv=
"Content-Type" content=
"text/html;charset=UTF-8">
3 <title>Barry: Barry::CodFileBuilder Class Reference
</title>
4 <link href=
"doxygen.css" rel=
"stylesheet" type=
"text/css">
5 <link href=
"tabs.css" rel=
"stylesheet" type=
"text/css">
7 <!-- Generated by Doxygen 1.5.6 -->
8 <div class=
"navigation" id=
"top">
11 <li><a href=
"index.html"><span>Main
Page
</span></a></li>
12 <li><a href=
"modules.html"><span>Modules
</span></a></li>
13 <li><a href=
"namespaces.html"><span>Namespaces
</span></a></li>
14 <li class=
"current"><a href=
"classes.html"><span>Classes
</span></a></li>
15 <li><a href=
"files.html"><span>Files
</span></a></li>
16 <li><a href=
"dirs.html"><span>Directories
</span></a></li>
21 <li><a href=
"classes.html"><span>Alphabetical
List
</span></a></li>
22 <li><a href=
"annotated.html"><span>Class
List
</span></a></li>
23 <li><a href=
"hierarchy.html"><span>Class
Hierarchy
</span></a></li>
24 <li><a href=
"functions.html"><span>Class
Members
</span></a></li>
27 <div class=
"navpath"><a class=
"el" href=
"namespaceBarry.html">Barry
</a>::
<a class=
"el" href=
"classBarry_1_1CodFileBuilder.html">CodFileBuilder
</a>
30 <div class=
"contents">
31 <h1>Barry::CodFileBuilder Class Reference
</h1><!-- doxytag: class="Barry::CodFileBuilder" --><code>#include
<<a class=
"el" href=
"cod_8h-source.html">cod.h
</a>></code>
33 <div class=
"dynheader">
34 Collaboration diagram for Barry::CodFileBuilder:
</div>
35 <div class=
"dynsection">
36 <p><center><img src=
"classBarry_1_1CodFileBuilder__coll__graph.png" border=
"0" usemap=
"#Barry_1_1CodFileBuilder__coll__map" alt=
"Collaboration graph"></center>
37 <map name=
"Barry_1_1CodFileBuilder__coll__map">
38 <area shape=
"rect" title=
"STL class." alt=
"" coords=
"69,315,149,341"><area shape=
"rect" title=
"STL class." alt=
"" coords=
"5,237,171,264"><area shape=
"rect" title=
"STL class." alt=
"" coords=
"195,315,320,341"><area shape=
"rect" title=
"STL class." alt=
"" coords=
"195,237,408,264"><area shape=
"rect" title=
"STL class." alt=
"" coords=
"209,160,393,187"><area shape=
"rect" title=
"STL class." alt=
"" coords=
"225,83,377,109"><area shape=
"rect" title=
"STL class." alt=
"" coords=
"252,5,351,32"></map>
39 <center><font size=
"2">[
<a href=
"graph_legend.html">legend
</a>]
</font></center></div>
42 <a href=
"classBarry_1_1CodFileBuilder-members.html">List of all members.
</a><hr><a name=
"_details"></a><h2>Detailed Description
</h2>
43 The
<a class=
"el" href=
"classBarry_1_1CodFileBuilder.html" title=
"The CodFileBuilder class is used to assemble multiple .cod files into a single packed...">CodFileBuilder
</a> class is used to assemble multiple .cod files into a single packed .cod file using the pkzip file format.
44 <p>Definition at line
<a class=
"el" href=
"cod_8h-source.html#l00056">56</a> of file
<a class=
"el" href=
"cod_8h-source.html">cod.h
</a>.
</p>
45 <table border=
"0" cellpadding=
"0" cellspacing=
"0">
47 <tr><td colspan=
"2"><br><h2>Public Member Functions
</h2></td></tr>
48 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">void
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classBarry_1_1CodFileBuilder.html#22fd9fb2aaed92b0b6ae427a9b90e9ad">WriteNextHeader
</a> (std::ostream
&output, const uint8_t *buffer, uint32_t module_size)
</td></tr>
50 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Writes packed .cod file header to the output stream, and appends an entry to the central directory.
<a href=
"#22fd9fb2aaed92b0b6ae427a9b90e9ad"></a><br></td></tr>
51 <tr><td class=
"memItemLeft" nowrap
align=
"right" valign=
"top">void
</td><td class=
"memItemRight" valign=
"bottom"><a class=
"el" href=
"classBarry_1_1CodFileBuilder.html#5897a4fe8ef826ddf58e045d5b3513ec">WriteFooter
</a> (std::ostream
&output)
</td></tr>
53 <tr><td class=
"mdescLeft"> </td><td class=
"mdescRight">Write the central directory and central directory ending indicator to the output stream.
<a href=
"#5897a4fe8ef826ddf58e045d5b3513ec"></a><br></td></tr>
55 <hr><h2>Member Function Documentation
</h2>
56 <a class=
"anchor" name=
"22fd9fb2aaed92b0b6ae427a9b90e9ad"></a><!-- doxytag: member="Barry::CodFileBuilder::WriteNextHeader" ref="22fd9fb2aaed92b0b6ae427a9b90e9ad" args="(std::ostream &output, const uint8_t *buffer, uint32_t module_size)" -->
58 <div class=
"memproto">
59 <table class=
"memname">
61 <td class=
"memname">void Barry::CodFileBuilder::WriteNextHeader
</td>
63 <td class=
"paramtype">std::ostream
& </td>
64 <td class=
"paramname"> <em>output
</em>,
</td>
67 <td class=
"paramkey"></td>
69 <td class=
"paramtype">const uint8_t *
</td>
70 <td class=
"paramname"> <em>buffer
</em>,
</td>
73 <td class=
"paramkey"></td>
75 <td class=
"paramtype">uint32_t
</td>
76 <td class=
"paramname"> <em>module_size
</em></td><td> </td>
81 <td></td><td></td><td></td>
88 Writes packed .cod file header to the output stream, and appends an entry to the central directory.
90 If the module count used to create
<a class=
"el" href=
"classBarry_1_1CodFileBuilder.html" title=
"The CodFileBuilder class is used to assemble multiple .cod files into a single packed...">CodFileBuilder
</a> is equal to one, the call is ignored.
<p>
91 Note: it is the caller's responsibility to write the actual COD file data after calling this function.
<p>
92 <dl compact
><dt><b>Parameters:
</b></dt><dd>
93 <table border=
"0" cellspacing=
"2" cellpadding=
"0">
94 <tr><td valign=
"top"></td><td valign=
"top"><em>output
</em> </td><td>stream to write to
</td></tr>
95 <tr><td valign=
"top"></td><td valign=
"top"><em>buffer
</em> </td><td>buffered .cod file data, input to CRC-
32 function
</td></tr>
96 <tr><td valign=
"top"></td><td valign=
"top"><em>module_size
</em> </td><td>total size of .cod file data
</td></tr>
100 <p>Definition at line
<a class=
"el" href=
"cod_8cc-source.html#l00118">118</a> of file
<a class=
"el" href=
"cod_8cc-source.html">cod.cc
</a>.
</p>
104 <a class=
"anchor" name=
"5897a4fe8ef826ddf58e045d5b3513ec"></a><!-- doxytag: member="Barry::CodFileBuilder::WriteFooter" ref="5897a4fe8ef826ddf58e045d5b3513ec" args="(std::ostream &output)" -->
105 <div class=
"memitem">
106 <div class=
"memproto">
107 <table class=
"memname">
109 <td class=
"memname">void Barry::CodFileBuilder::WriteFooter
</td>
111 <td class=
"paramtype">std::ostream
& </td>
112 <td class=
"paramname"> <em>output
</em> </td>
113 <td> )
</td>
121 Write the central directory and central directory ending indicator to the output stream.
123 <dl compact
><dt><b>Parameters:
</b></dt><dd>
124 <table border=
"0" cellspacing=
"2" cellpadding=
"0">
125 <tr><td valign=
"top"></td><td valign=
"top"><em>output
</em> </td><td>stream to write to
</td></tr>
129 <p>Definition at line
<a class=
"el" href=
"cod_8cc-source.html#l00195">195</a> of file
<a class=
"el" href=
"cod_8cc-source.html">cod.cc
</a>.
</p>
133 <hr>The documentation for this class was generated from the following files:
<ul>
134 <li><a class=
"el" href=
"cod_8h-source.html">cod.h
</a><li><a class=
"el" href=
"cod_8cc-source.html">cod.cc
</a></ul>
136 <hr size=
"1"><address style=
"text-align: right;"><small>Generated on Thu Feb
10 16:
14:
36 2011 for Barry by
137 <a href=
"http://www.doxygen.org/index.html">
138 <img src=
"doxygen.png" alt=
"doxygen" align=
"middle" border=
"0"></a> 1.5.6 </small></address>