Sophie

Sophie

distrib > Mageia > 7 > i586 > media > core-release > by-pkgid > a2116f36018873d572acbcadddb8e994 > files > 2045

clanlib0.8-docs-0.8.1-22.mga7.i586.rpm


<!-- clanlib header begin -->
<HTML>
<HEAD>
<TITLE>CL_InputSource - 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_InputSource</h1>
<p>  Interface to read data. <a href="#description">More...</a></p>
<p>Derived from:
<i>none</i>
<br>
Derived by:
<a href="CL_InputSource_File.html">CL_InputSource_File</a>
<a href="CL_InputSource_Memory.html">CL_InputSource_Memory</a>
<a href="CL_InputSource_NetPacket.html">CL_InputSource_NetPacket</a>
<a href="CL_InputSource_NetStream.html">CL_InputSource_NetStream</a>
<a href="CL_InputSource_Socket.html">CL_InputSource_Socket</a>
<a href="CL_InputSource_Zipped.html">CL_InputSource_Zipped</a>
<br>Group: Core (I/O Data)</p>
<p>
#include &lt;ClanLib/core.h&gt;
<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_InputSource__CL_InputSource.html">CL_InputSource</a></p></td><td valign=top><p>  Input 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_InputSource__tell.html">tell</a></p></td><td valign=top><p>  Returns current position in input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__size.html">size</a></p></td><td valign=top><p>  Returns the size of the input source</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__is_little_endian.html">is_little_endian</a></p></td><td valign=top><p>  Returns true if the input source is in little endian mode.</p></td></tr></table>
<p><b>Operations:</b></p>
<table border=0 width=100%>
<tr><td width=30% valign=top><p><a href="CL_InputSource__set_system_mode.html">set_system_mode</a></p></td><td valign=top><p>  Changes input data endianess to the local systems mode.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__set_big_endian_mode.html">set_big_endian_mode</a></p></td><td valign=top><p>  Changes input data endianess to big endian mode.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__set_little_endian_mode.html">set_little_endian_mode</a></p></td><td valign=top><p>  Changes input data endianess to little endian mode. This is the default setting.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__read_int64.html">read_int64</a></p></td><td valign=top><p>  Reads a signed 64 bit integer from input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__read_uint64.html">read_uint64</a></p></td><td valign=top><p>  Reads an unsigned 64 bit integer from input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__read_int32.html">read_int32</a></p></td><td valign=top><p>  Reads a signed 32 bit integer from input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__read_uint32.html">read_uint32</a></p></td><td valign=top><p>  Reads an unsigned 32 bit integer from input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__read_int16.html">read_int16</a></p></td><td valign=top><p>  Reads a signed 16 bit integer from input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__read_uint16.html">read_uint16</a></p></td><td valign=top><p>  Reads an unsigned 16 bit integer from input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__read_int8.html">read_int8</a></p></td><td valign=top><p>  Reads a signed 8 bit integer from input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__read_uint8.html">read_uint8</a></p></td><td valign=top><p>  Reads an unsigned 8 bit integer from input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__read_short16.html">read_short16</a></p></td><td valign=top><p>  Reads a signed 16 bit integer (short) from input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__read_ushort16.html">read_ushort16</a></p></td><td valign=top><p>  Reads an unsigned 16 bit integer (short) from input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__read_char8.html">read_char8</a></p></td><td valign=top><p>  Reads a signed 8 bit integer (char) from input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__read_uchar8.html">read_uchar8</a></p></td><td valign=top><p>  Reads an unsigned 8 bit integer (char) from input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__read_float32.html">read_float32</a></p></td><td valign=top><p>  Reads an ieee format floating point from input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__read_float64.html">read_float64</a></p></td><td valign=top><p>  Reads an ieee format double from input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__read_bool8.html">read_bool8</a></p></td><td valign=top><p>  Reads a bool from input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__read.html">read</a></p></td><td valign=top><p>  Reads larger amounts of data (no endian and 64 bit conversion).</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__open.html">open</a></p></td><td valign=top><p>  Opens the input source. By default, it is open.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__close.html">close</a></p></td><td valign=top><p>  Closes the input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__clone.html">clone</a></p></td><td valign=top><p>  Make a copy of the current inputsource, standing at the same position.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__read_string.html">read_string</a></p></td><td valign=top><p>  Reads a string from the input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__seek.html">seek</a></p></td><td valign=top><p>  Seeks to the specified position in the input source.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__push_position.html">push_position</a></p></td><td valign=top><p>  Pushes the current input source position.
  The position can be restored again with pop_position.</p></td></tr><tr><td width=30% valign=top><p><a href="CL_InputSource__pop_position.html">pop_position</a></p></td><td valign=top><p>  Pops a previous pushed input source position (returns to the 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_InputSource__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_InputSource is used to read data from different types of input sources.
  In most cases, this is regular files and ClanLib zlib compressed datafiles. </p>

  <p>To access some system specific input source types, such as datafiles and
  regular ones, use the static create functions in the CL_InputSourceProvider
  class.</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 -->