<!-- clanlib header begin --> <HTML> <HEAD> <TITLE>CL_OutputSource - ClanLib Game SDK</TITLE> <STYLE TYPE="text/css"><!-- HTML BODY { font-family: verdana, helvetica, sans-serif; font-size: 12px; } H1 { font-size: 22px; } H2 { font-size: 18px; } H3 { font-size: 16px; } H4 { font-size: 14px; } P { font-size: 12px; } LI { font-size: 12px; } --></STYLE> </HEAD> <body bgcolor=white text=black link=blue vlink=#800080> <center> <img src="http://clanlib.org/gfx/clanlib.png"> </center> <!-- clanlib header end --> <center> <p> <a href="http://clanlib.org/docs.html">Home</a> | <a href="classes.html">All Classes</a> | <a href="modules.html">Grouped Classes</a> | <a href="index.html">Index</a> | <a href="search.html">Search</a> </p> </center> <h1>Class CL_OutputSource</h1> <p> Interface to write data to different types of output sources. <a href="#description">More...</a></p> <p>Derived from: <i>none</i> <br> Derived by: <a href="CL_OutputSource_File.html">CL_OutputSource_File</a> <a href="CL_OutputSource_Memory.html">CL_OutputSource_Memory</a> <a href="CL_OutputSource_NetPacket.html">CL_OutputSource_NetPacket</a> <a href="CL_OutputSource_NetStream.html">CL_OutputSource_NetStream</a> <a href="CL_OutputSource_Socket.html">CL_OutputSource_Socket</a> <a href="CL_OutputSource_Zipped.html">CL_OutputSource_Zipped</a> <br>Group: Core (I/O Data)</p> <p> #include <ClanLib/core.h> <p> <table border=0 width=100%> </table> <p><b>Construction:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_OutputSource__CL_OutputSource.html">CL_OutputSource</a></p></td><td valign=top><p> Output Source constructor.</p></td></tr></table> <p><b>Attributes:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_OutputSource__tell.html">tell</a></p></td><td valign=top><p> Returns current position in output source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__size.html">size</a></p></td><td valign=top><p> Returns the size of the output source.</p></td></tr></table> <p><b>Operations:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_OutputSource__set_system_mode.html">set_system_mode</a></p></td><td valign=top><p> Changes output data endianess to the local systems mode.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__set_big_endian_mode.html">set_big_endian_mode</a></p></td><td valign=top><p> Changes output data endianess to big endian mode.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__set_little_endian_mode.html">set_little_endian_mode</a></p></td><td valign=top><p> Changes output data endianess to little endian mode. This is the default setting.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__write_int64.html">write_int64</a></p></td><td valign=top><p> Writes a signed 64 bit integer to output source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__write_uint64.html">write_uint64</a></p></td><td valign=top><p> Writes an unsigned 64 bit integer to output source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__write_int32.html">write_int32</a></p></td><td valign=top><p> Writes a signed 32 bit integer to output source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__write_uint32.html">write_uint32</a></p></td><td valign=top><p> Writes an unsigned 32 bit integer to output source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__write_int16.html">write_int16</a></p></td><td valign=top><p> Writes a signed 16 bit integer to output source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__write_uint16.html">write_uint16</a></p></td><td valign=top><p> Writes an unsigned 16 bit integer to output source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__write_int8.html">write_int8</a></p></td><td valign=top><p> Writes a signed 8 bit integer to output source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__write_uint8.html">write_uint8</a></p></td><td valign=top><p> Writes an unsigned 8 bit integer to output source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__write_short16.html">write_short16</a></p></td><td valign=top><p> Writes a signed 16 bit integer (short) to output source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__write_ushort16.html">write_ushort16</a></p></td><td valign=top><p> Writes an unsigned 16 bit integer (short) to output source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__write_char8.html">write_char8</a></p></td><td valign=top><p> Writes a signed 8 bit integer (char) to output source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__write_uchar8.html">write_uchar8</a></p></td><td valign=top><p> Writes an unsigned 8 bit integer (char) to output source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__write_float32.html">write_float32</a></p></td><td valign=top><p> Writes an ieee format floating point to output source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__write_float64.html">write_float64</a></p></td><td valign=top><p> Writes an ieee format double to output source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__write_bool8.html">write_bool8</a></p></td><td valign=top><p> Writes a bool to output source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__write_string.html">write_string</a></p></td><td valign=top><p> Writes a string to the output source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__write.html">write</a></p></td><td valign=top><p> Writes larger amounts of data (no endian and 64 bit conversion).</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__open.html">open</a></p></td><td valign=top><p> Opens the output source. By default, it is open.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__close.html">close</a></p></td><td valign=top><p> Closes the output source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_OutputSource__clone.html">clone</a></p></td><td valign=top><p> Make a copy of the current outputsource, standing at the same position.</p></td></tr></table> <p><b>Implementation:</b></p> <table border=0 width=100%> <tr><td width=30% valign=top><p><a href="CL_OutputSource__little_endian_mode.html">little_endian_mode</a></p></td><td valign=top><p></p></td></tr></table> <a name="#description"><p><b>Detailed description:</b></p> !group=Core/IO Data! !header=core.h! <p>CL_OutputSource is used to write data to different types of input sources. In most cases, this is regular files and ClanLib zlib compressed datafiles.</p> <p>To access some system specific output source types, such as datafiles and regular ones, use the static create functions in the CL_OutputSourceProvider class.</p> <p>CL_OutputSourceProvider - Interface to open output sources with.</p> <!-- clanlib footer begin --> <center><br><br><font color="#a0a0a0"> Questions or comments, write to the <a href="http://clanlib.org/contact.html">ClanLib mailing list</a>. </font></center> </body> </html> <!-- clanlib footer end -->