Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > bad97183153701b09df5fae1052b1c30 > files > 677

crystalspace-doc-1.2.1-5mdv2010.0.i586.rpm

<!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>Crystal Space 1.2.1: csInitializer Class Reference (Crystal Space 1.2.1 Public API Reference)</title>
<link href="tabs.css" rel="stylesheet" type="text/css">
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<table border="0" cellpadding="0" cellspacing="0" width="100%" class="head">
 <tr height="59">
  <td class="head" width="202" valign="bottom" style="padding-left:0;"><a href="http://www.crystalspace3d.org/"><img src="csblur.png" width="236" height="59" alt="CrystalSpace" border="0"></a></td>
  <td class="head"><h2>Public API Reference</h2></td>
 </tr>
 <tr height="11">
  <td colspan="2" class="headshadow" valign="top" style="padding-left:0;"><img src="csblurb.png" width="236" height="11" alt="" border="0"></td>
 </tr>
</table>
<div class="content">
<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="modules.html"><span>Modules</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li class="current"><a href="classes.html"><span>Classes</span></a></li>
    <li><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<div class="tabs">
  <ul>
    <li><a href="classes.html"><span>Alphabetical&nbsp;List</span></a></li>
    <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
    <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
    <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
  </ul>
</div>
<h1>csInitializer Class Reference<br>
<small>
[<a class="el" href="group__appframe.html">Application Framework</a>]</small>
</h1><!-- doxytag: class="csInitializer" -->This class contains several static member functions that can help setup an application.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="initapp_8h-source.html">cstool/initapp.h</a>&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for csInitializer:</div>
<div class="dynsection">
<p><center><img src="classcsInitializer__inherit__graph.png" border="0" usemap="#csInitializer__inherit__map" alt="Inheritance graph"></center>
<map name="csInitializer__inherit__map">
<area shape="rect" href="classcsApplicationFramework.html" title="Application framework class." alt="" coords="5,84,181,111"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classcsInitializer-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#7a0a6109c1b81c62f6a8a5403b37eee6">CloseApplication</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Send the csevSystemClose command to all loaded plugins.  <a href="#7a0a6109c1b81c62f6a8a5403b37eee6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <br>
<a class="el" href="structiCommandLineParser.html">iCommandLineParser</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#365fcdf91251bf194a79d0f7efd30476">CreateCommandLineParser</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *, int argc, char const *const argv[])</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create the commandline parser.  <a href="#365fcdf91251bf194a79d0f7efd30476"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="structiConfigManager.html">iConfigManager</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#21395917eb5bddf75bc91d9c94b5b8c2">CreateConfigManager</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create the config manager.  <a href="#21395917eb5bddf75bc91d9c94b5b8c2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#61494a85e1807c790070d36f5a055f10">CreateEnvironment</a> (int argc, char const *const argv[])</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create everything needed to get a <a class="el" href="namespaceCS.html" title="Main namespace for CrystalSpace.">CS</a> application operational.  <a href="#61494a85e1807c790070d36f5a055f10"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="structiEventQueue.html">iEventQueue</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#27186a56f0c404dfd3885cb923ea8f83">CreateEventQueue</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This essential function creates the event queue which is the main driving force between the event-driven <a class="el" href="namespaceCS.html" title="Main namespace for CrystalSpace.">CS</a> model.  <a href="#27186a56f0c404dfd3885cb923ea8f83"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#3c3ab90760545b22e27b3d04d0c229dd">CreateInputDrivers</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function will create the three common input drivers (<a class="el" href="classcsKeyboardDriver.html" title="Generic Keyboard Driver.">csKeyboardDriver</a>, <a class="el" href="classcsMouseDriver.html" title="Generic Mouse Driver.">csMouseDriver</a>, and <a class="el" href="classcsJoystickDriver.html" title="Generic Joystick driver.">csJoystickDriver</a>) and register them with the object registry.  <a href="#3c3ab90760545b22e27b3d04d0c229dd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#92a16794e9daa943a075d8b583ea77a9">CreateObjectRegistry</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function should be called second.  <a href="#92a16794e9daa943a075d8b583ea77a9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="structiPluginManager.html">iPluginManager</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#abf9802ed5ffa9cc5901d1e931dd14d6">CreatePluginManager</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">You will almost certainly want to call this function.  <a href="#abf9802ed5ffa9cc5901d1e931dd14d6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#25466bd8c4b25ce886621caf97f1e49d">CreateStringSet</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create the global shared string set and register it with the registry.  <a href="#25466bd8c4b25ce886621caf97f1e49d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <br>
<a class="el" href="structiVerbosityManager.html">iVerbosityManager</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#3c69bf9937b54c628e006c63b058e10e">CreateVerbosityManager</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create and, if needed, register the verbosity manager.  <a href="#3c69bf9937b54c628e006c63b058e10e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="structiVirtualClock.html">iVirtualClock</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#f901f656488eb514e42b8d8e9d675a64">CreateVirtualClock</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Create the virtual clock.  <a href="#f901f656488eb514e42b8d8e9d675a64"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#20e8aa3c7ab8c1070dc77e8423927359">DestroyApplication</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destroy the application.  <a href="#20e8aa3c7ab8c1070dc77e8423927359"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#80223ebc212454ae268702c2bf9ba740">GetDefaultAppID</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">The default application string name; computed from the executable name as passed in argv[0] to <a class="el" href="classcsInitializer.html#61494a85e1807c790070d36f5a055f10" title="Create everything needed to get a CS application operational.">CreateEnvironment()</a>.  <a href="#80223ebc212454ae268702c2bf9ba740"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#fb85ed03752868412b665b06a52d7a41">InitializeSCF</a> (int argc, char const *const argv[])</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This very important function initializes the SCF sub-system.  <a href="#fb85ed03752868412b665b06a52d7a41"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#62d7b06d7b0b8192496a8a743584c603">OpenApplication</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Send the csevSystemOpen command to all loaded plugins.  <a href="#62d7b06d7b0b8192496a8a743584c603"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#ac312400175a74917984bc78038a234b">RequestPlugins</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *, <a class="el" href="classcsArray.html">csArray</a>&lt; <a class="el" href="classcsPluginRequest.html">csPluginRequest</a> &gt; const &amp;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Request a few widely used standard plugins and also read the standard configuration file and command line for potential other plugins.  <a href="#ac312400175a74917984bc78038a234b"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#c10c1d14d78a7bbbd4f6c12caa1d4320">RequestPlugins</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *,...)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Request a few widely used standard plugins and also read the standard configuration file and command line for potential other plugins.  <a href="#c10c1d14d78a7bbbd4f6c12caa1d4320"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#e64ac4d29aaa8d244439161798ebfc25">RequestPluginsV</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *, va_list)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This is just like RequestPlugins(.  <a href="#e64ac4d29aaa8d244439161798ebfc25"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#da15289ee6d9e60d10291026ec73f84c">SetupConfigManager</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *, const char *configName, const char *ApplicationID=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Setup the config manager.  <a href="#da15289ee6d9e60d10291026ec73f84c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#fb00dbc9af36eaeb5a536aca89679ad4">SetupEventHandler</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *, <a class="el" href="group__appframe.html#g542e5cde1d58cfc041f28966ffec5a54">csEventHandlerFunc</a>)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initialize an event handler function.  <a href="#fb00dbc9af36eaeb5a536aca89679ad4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#4327f1348b68f6de226528de02b4ed5e">SetupEventHandler</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *, <a class="el" href="group__appframe.html#g542e5cde1d58cfc041f28966ffec5a54">csEventHandlerFunc</a>, const <a class="el" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757">csEventID</a> events[])</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initialize an event handler function.  <a href="#4327f1348b68f6de226528de02b4ed5e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#f3e61907586204cc1c5d844ec3d0ea7a">SetupEventHandler</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *, <a class="el" href="structiEventHandler.html">iEventHandler</a> *, const <a class="el" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757">csEventID</a>[])</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Initialize an event handler for the application.  <a href="#f3e61907586204cc1c5d844ec3d0ea7a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="structiVFS.html">iVFS</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcsInitializer.html#3d2354f35277cccf3da3714a291cd2f4">SetupVFS</a> (<a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *objectReg, const char *pluginID=&quot;crystalspace.kernel.vfs&quot;)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Find or load the VFS plugin, add it to the given object registry, and return it.  <a href="#3d2354f35277cccf3da3714a291cd2f4"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This class contains several static member functions that can help setup an application. 
<p>
It is possible to do all the setup on your own but using the functions below will help considerably. 
<p>Definition at line <a class="el" href="initapp_8h-source.html#l00164">164</a> of file <a class="el" href="initapp_8h-source.html">initapp.h</a>.</p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="7a0a6109c1b81c62f6a8a5403b37eee6"></a><!-- doxytag: member="csInitializer::CloseApplication" ref="7a0a6109c1b81c62f6a8a5403b37eee6" args="(iObjectRegistry *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void csInitializer::CloseApplication           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Send the csevSystemClose command to all loaded plugins. 
<p>

</div>
</div><p>
<a class="anchor" name="365fcdf91251bf194a79d0f7efd30476"></a><!-- doxytag: member="csInitializer::CreateCommandLineParser" ref="365fcdf91251bf194a79d0f7efd30476" args="(iObjectRegistry *, int argc, char const *const argv[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="structiCommandLineParser.html">iCommandLineParser</a>* csInitializer::CreateCommandLineParser           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *const &nbsp;</td>
          <td class="paramname"> <em>argv</em>[]</td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create the commandline parser. 
<p>
This function will register the created commandline parser with the object registry as the default parser (using 0 tag). 
</div>
</div><p>
<a class="anchor" name="21395917eb5bddf75bc91d9c94b5b8c2"></a><!-- doxytag: member="csInitializer::CreateConfigManager" ref="21395917eb5bddf75bc91d9c94b5b8c2" args="(iObjectRegistry *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="structiConfigManager.html">iConfigManager</a>* csInitializer::CreateConfigManager           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create the config manager. 
<p>
This function will register the created config manager with the object registry as the default config manager (using 0 tag). 
</div>
</div><p>
<a class="anchor" name="61494a85e1807c790070d36f5a055f10"></a><!-- doxytag: member="csInitializer::CreateEnvironment" ref="61494a85e1807c790070d36f5a055f10" args="(int argc, char const *const argv[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="structiObjectRegistry.html">iObjectRegistry</a>* csInitializer::CreateEnvironment           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *const &nbsp;</td>
          <td class="paramname"> <em>argv</em>[]</td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create everything needed to get a <a class="el" href="namespaceCS.html" title="Main namespace for CrystalSpace.">CS</a> application operational. 
<p>
This function is completely equivalent to calling:<ul>
<li><a class="el" href="cssysdef_8h.html#579d0bb91d147be822a8f30acdc87033" title="Perform platform-specific application initializations.">CS_INITIALIZE_PLATFORM_APPLICATION</a> macro</li><li><a class="el" href="classcsInitializer.html#fb85ed03752868412b665b06a52d7a41" title="This very important function initializes the SCF sub-system.">InitializeSCF()</a></li><li><a class="el" href="classcsInitializer.html#92a16794e9daa943a075d8b583ea77a9" title="This function should be called second.">CreateObjectRegistry()</a></li><li><a class="el" href="classcsInitializer.html#abf9802ed5ffa9cc5901d1e931dd14d6" title="You will almost certainly want to call this function.">CreatePluginManager()</a></li><li><a class="el" href="classcsInitializer.html#27186a56f0c404dfd3885cb923ea8f83" title="This essential function creates the event queue which is the main driving force between...">CreateEventQueue()</a></li><li><a class="el" href="classcsInitializer.html#f901f656488eb514e42b8d8e9d675a64" title="Create the virtual clock.">CreateVirtualClock()</a></li><li><a class="el" href="classcsInitializer.html#365fcdf91251bf194a79d0f7efd30476" title="Create the commandline parser.">CreateCommandLineParser()</a></li><li><a class="el" href="classcsInitializer.html#3c69bf9937b54c628e006c63b058e10e" title="Create and, if needed, register the verbosity manager.">CreateVerbosityManager()</a></li><li><a class="el" href="classcsInitializer.html#21395917eb5bddf75bc91d9c94b5b8c2" title="Create the config manager.">CreateConfigManager()</a></li><li><a class="el" href="classcsInitializer.html#3c3ab90760545b22e27b3d04d0c229dd" title="This function will create the three common input drivers (csKeyboardDriver, csMouseDriver...">CreateInputDrivers()</a></li><li><a class="el" href="classcsInitializer.html#25466bd8c4b25ce886621caf97f1e49d" title="Create the global shared string set and register it with the registry.">CreateStringSet()</a></li><li><a class="el" href="group__util.html#g8261ee8f769a5f97cb320d26d1f3e075" title="Platform-specific startup.">csPlatformStartup()</a></li></ul>
<p>
You may want to call all or some of those manually if you don't wish to use this function. It is suggested that <a class="el" href="cssysdef_8h.html#579d0bb91d147be822a8f30acdc87033" title="Perform platform-specific application initializations.">CS_INITIALIZE_PLATFORM_APPLICATION</a>, <a class="el" href="classcsInitializer.html#fb85ed03752868412b665b06a52d7a41" title="This very important function initializes the SCF sub-system.">InitializeSCF()</a>, and <a class="el" href="group__util.html#g8261ee8f769a5f97cb320d26d1f3e075" title="Platform-specific startup.">csPlatformStartup()</a> are always invoked; the other calls can be replaced with manual creation of the respective objects. However, the order above should be retained when doing so. <dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>argc</em>&nbsp;</td><td>argc argument from main(). </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>argv</em>&nbsp;</td><td>argv argument from main(). </td></tr>
  </table>
</dl>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>This function will return the pointer to the object registry where all the created objects will be registered. </dd></dl>

</div>
</div><p>
<a class="anchor" name="27186a56f0c404dfd3885cb923ea8f83"></a><!-- doxytag: member="csInitializer::CreateEventQueue" ref="27186a56f0c404dfd3885cb923ea8f83" args="(iObjectRegistry *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="structiEventQueue.html">iEventQueue</a>* csInitializer::CreateEventQueue           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This essential function creates the event queue which is the main driving force between the event-driven <a class="el" href="namespaceCS.html" title="Main namespace for CrystalSpace.">CS</a> model. 
<p>
In addition this function will register the created event queue with the object registry as the default event queue (using 0 tag). 
</div>
</div><p>
<a class="anchor" name="3c3ab90760545b22e27b3d04d0c229dd"></a><!-- doxytag: member="csInitializer::CreateInputDrivers" ref="3c3ab90760545b22e27b3d04d0c229dd" args="(iObjectRegistry *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool csInitializer::CreateInputDrivers           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function will create the three common input drivers (<a class="el" href="classcsKeyboardDriver.html" title="Generic Keyboard Driver.">csKeyboardDriver</a>, <a class="el" href="classcsMouseDriver.html" title="Generic Mouse Driver.">csMouseDriver</a>, and <a class="el" href="classcsJoystickDriver.html" title="Generic Joystick driver.">csJoystickDriver</a>) and register them with the object registry. 
<p>
Note that this function must be called after creating the config manager (<a class="el" href="classcsInitializer.html#21395917eb5bddf75bc91d9c94b5b8c2" title="Create the config manager.">CreateConfigManager()</a>). 
</div>
</div><p>
<a class="anchor" name="92a16794e9daa943a075d8b583ea77a9"></a><!-- doxytag: member="csInitializer::CreateObjectRegistry" ref="92a16794e9daa943a075d8b583ea77a9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="structiObjectRegistry.html">iObjectRegistry</a>* csInitializer::CreateObjectRegistry           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function should be called second. 
<p>
It will create the object registry and return a pointer to it. If there is a problem it will return 0. 
</div>
</div><p>
<a class="anchor" name="abf9802ed5ffa9cc5901d1e931dd14d6"></a><!-- doxytag: member="csInitializer::CreatePluginManager" ref="abf9802ed5ffa9cc5901d1e931dd14d6" args="(iObjectRegistry *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="structiPluginManager.html">iPluginManager</a>* csInitializer::CreatePluginManager           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
You will almost certainly want to call this function. 
<p>
It will create the plugin manager which is essential for nearly everything. The created plugin manager will be registered with the object registry as the default plugin manager (using 0 tag). 
</div>
</div><p>
<a class="anchor" name="25466bd8c4b25ce886621caf97f1e49d"></a><!-- doxytag: member="csInitializer::CreateStringSet" ref="25466bd8c4b25ce886621caf97f1e49d" args="(iObjectRegistry *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool csInitializer::CreateStringSet           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create the global shared string set and register it with the registry. 
<p>
This can be used if multiple, distinct modules want to share string IDs. The set can be requested with: <div class="fragment"><pre class="fragment"> <a class="code" href="classcsRef.html" title="A smart pointer.">csRef&lt;iStringSet&gt;</a> strings = <a class="code" href="iutil_2objreg_8h.html#0a7ddafa5cfb0114eac78445ebbe6c74">CS_QUERY_REGISTRY_TAG_INTERFACE</a> (
   object_reg, <span class="stringliteral">"crystalspace.shared.stringset"</span>, <a class="code" href="structiStringSet.html" title="The string set is a collection of unique strings.">iStringSet</a>);
</pre></div> 
</div>
</div><p>
<a class="anchor" name="3c69bf9937b54c628e006c63b058e10e"></a><!-- doxytag: member="csInitializer::CreateVerbosityManager" ref="3c69bf9937b54c628e006c63b058e10e" args="(iObjectRegistry *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="structiVerbosityManager.html">iVerbosityManager</a>* csInitializer::CreateVerbosityManager           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create and, if needed, register the verbosity manager. 
<p>
It is used by a lot of plugins to control diagnostoc output while running. 
</div>
</div><p>
<a class="anchor" name="f901f656488eb514e42b8d8e9d675a64"></a><!-- doxytag: member="csInitializer::CreateVirtualClock" ref="f901f656488eb514e42b8d8e9d675a64" args="(iObjectRegistry *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="structiVirtualClock.html">iVirtualClock</a>* csInitializer::CreateVirtualClock           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create the virtual clock. 
<p>
This clock is responsible for keeping track of virtual time in the game system. This function will register the created virtual clock with the object registry as the default virtual clock (using 0 tag). 
</div>
</div><p>
<a class="anchor" name="20e8aa3c7ab8c1070dc77e8423927359"></a><!-- doxytag: member="csInitializer::DestroyApplication" ref="20e8aa3c7ab8c1070dc77e8423927359" args="(iObjectRegistry *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static void csInitializer::DestroyApplication           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destroy the application. 
<p>
Undo all of the initialization done by <a class="el" href="classcsInitializer.html#61494a85e1807c790070d36f5a055f10" title="Create everything needed to get a CS application operational.">CreateEnvironment()</a> or any of the other setup functions. <dl class="remark" compact><dt><b>Remarks:</b></dt><dd>This will also unload all loaded plugins! So if you keep any references to plugins in the same scope as DestroyApplication (), clear those BEFORE calling DestroyApplication (). Example: <div class="fragment"><pre class="fragment"> <span class="keyword">class </span>MyApp
 {
   <a class="code" href="classcsRef.html" title="A smart pointer.">csRef&lt;iVFS&gt;</a> vfs;
  <span class="keyword">public</span>:
   MyApp ();
   ~MyApp ()
   {
     <a class="code" href="classcsInitializer.html#20e8aa3c7ab8c1070dc77e8423927359" title="Destroy the application.">csInitializer::DestroyApplication</a> (...);
   }
 }
</pre></div> The above snippet will likely return in a crash at the end of the program - DestroyApplication () causes the unloading of all plugins, including VFS, however, the <a class="el" href="classcsRef.html">csRef&lt;iVFS&gt;</a> is destroyed AFTER DestroyApplication () was called, so it'll try to DecRef() an object that has already been deleted. To fix the problem, either set 'vfs' to 0, or move DestroyApplication () into another scope (e.g. the main() of an application.) </dd></dl>

</div>
</div><p>
<a class="anchor" name="80223ebc212454ae268702c2bf9ba740"></a><!-- doxytag: member="csInitializer::GetDefaultAppID" ref="80223ebc212454ae268702c2bf9ba740" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static const char* csInitializer::GetDefaultAppID           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
The default application string name; computed from the executable name as passed in argv[0] to <a class="el" href="classcsInitializer.html#61494a85e1807c790070d36f5a055f10" title="Create everything needed to get a CS application operational.">CreateEnvironment()</a>. 
<p>
If the latter was not called or argv[0] did not contain a sensible name, a default string is used. 
<p>Referenced by <a class="el" href="csapplicationframework_8h-source.html#l00317">csApplicationFramework::GetApplicationName()</a>.</p>

</div>
</div><p>
<a class="anchor" name="fb85ed03752868412b665b06a52d7a41"></a><!-- doxytag: member="csInitializer::InitializeSCF" ref="fb85ed03752868412b665b06a52d7a41" args="(int argc, char const *const argv[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool csInitializer::InitializeSCF           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>argc</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char const *const &nbsp;</td>
          <td class="paramname"> <em>argv</em>[]</td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This very important function initializes the SCF sub-system. 
<p>
Without this you can do almost nothing in <a class="el" href="namespaceCS.html" title="Main namespace for CrystalSpace.">CS</a>. 
</div>
</div><p>
<a class="anchor" name="62d7b06d7b0b8192496a8a743584c603"></a><!-- doxytag: member="csInitializer::OpenApplication" ref="62d7b06d7b0b8192496a8a743584c603" args="(iObjectRegistry *)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool csInitializer::OpenApplication           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Send the csevSystemOpen command to all loaded plugins. 
<p>
This should be done after initializing them (Initialize()). 
<p>Referenced by <a class="el" href="csapplicationframework_8h-source.html#l00289">csApplicationFramework::Open()</a>.</p>

</div>
</div><p>
<a class="anchor" name="ac312400175a74917984bc78038a234b"></a><!-- doxytag: member="csInitializer::RequestPlugins" ref="ac312400175a74917984bc78038a234b" args="(iObjectRegistry *, csArray&lt; csPluginRequest &gt; const &amp;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool csInitializer::RequestPlugins           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classcsArray.html">csArray</a>&lt; <a class="el" href="classcsPluginRequest.html">csPluginRequest</a> &gt; const &amp;&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Request a few widely used standard plugins and also read the standard configuration file and command line for potential other plugins. 
<p>
This routine must be called before Initialize(). <p>
Unlike the variable-argument RequestPlugins(...) method which expects you to know the list of requested plugins at compile-time, this overload allows you to construct an array of plugins at run-time. You do this by constructing a csArray&lt;&gt; of <a class="el" href="classcsPluginRequest.html" title="This class represents a single plugin request for csInitializer::RequestPlugins()...">csPluginRequest</a> records. For example: <div class="fragment"><pre class="fragment"> <a class="code" href="classcsArray.html" title="A templated array class.">csArray&lt;csPluginRequest&gt;</a> a;
 a.<a class="code" href="classcsArray.html#6c1acc9a8bdc9d19272f5236089c6b5b" title="Push a copy of an element onto the tail end of the array.">Push</a>(<a class="code" href="classcsPluginRequest.html" title="This class represents a single plugin request for csInitializer::RequestPlugins()...">csPluginRequest</a>(<a class="code" href="group__appframe.html#gaa0a3ada833a582e7384868fe8dfcdc5" title="Request VFS plugin.">CS_REQUEST_VFS</a>));
 a.<a class="code" href="classcsArray.html#6c1acc9a8bdc9d19272f5236089c6b5b" title="Push a copy of an element onto the tail end of the array.">Push</a>(<a class="code" href="classcsPluginRequest.html" title="This class represents a single plugin request for csInitializer::RequestPlugins()...">csPluginRequest</a>(<a class="code" href="group__appframe.html#g89d238e62b58958a7ec2ddbb5c3d5e25" title="Request 3D engine.">CS_REQUEST_ENGINE</a>));
 a.<a class="code" href="classcsArray.html#6c1acc9a8bdc9d19272f5236089c6b5b" title="Push a copy of an element onto the tail end of the array.">Push</a>(<a class="code" href="classcsPluginRequest.html" title="This class represents a single plugin request for csInitializer::RequestPlugins()...">csPluginRequest</a>(<a class="code" href="group__appframe.html#ga93e57905eb2720951569ace7a2f1c3b" title="Request a plugin.">CS_REQUEST_PLUGIN</a>(<span class="stringliteral">"myproj.foobar"</span>,iFoobar)));
 <a class="code" href="classcsInitializer.html#c10c1d14d78a7bbbd4f6c12caa1d4320" title="Request a few widely used standard plugins and also read the standard configuration...">csInitializer::RequestPlugins</a>(registry,a);
</pre></div> <b>WARNING</b> csArray&lt;&gt; already knows its own size, so do <b>not</b> terminate the list with CS_REQUEST_END. 
</div>
</div><p>
<a class="anchor" name="c10c1d14d78a7bbbd4f6c12caa1d4320"></a><!-- doxytag: member="csInitializer::RequestPlugins" ref="c10c1d14d78a7bbbd4f6c12caa1d4320" args="(iObjectRegistry *,...)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool csInitializer::RequestPlugins           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&nbsp;</td>
          <td class="paramname"> <em>...</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Request a few widely used standard plugins and also read the standard configuration file and command line for potential other plugins. 
<p>
This routine must be called before Initialize(). <p>
The variable arguments should contain four entries for every plugin you want to load: SCF class name, SCF interface name, inteface ID, and interface version. To make this easier it is recommended you use one of the CS_REQUEST_xxx macros above. <b>WARNING</b> Make sure to end the list with CS_REQUEST_END! 
</div>
</div><p>
<a class="anchor" name="e64ac4d29aaa8d244439161798ebfc25"></a><!-- doxytag: member="csInitializer::RequestPluginsV" ref="e64ac4d29aaa8d244439161798ebfc25" args="(iObjectRegistry *, va_list)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool csInitializer::RequestPluginsV           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">va_list&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This is just like RequestPlugins(. 
<p>
..), which accepts a variable list of arguments at compile-time, except that arguments are passed as a `va_list'. 
</div>
</div><p>
<a class="anchor" name="da15289ee6d9e60d10291026ec73f84c"></a><!-- doxytag: member="csInitializer::SetupConfigManager" ref="da15289ee6d9e60d10291026ec73f84c" args="(iObjectRegistry *, const char *configName, const char *ApplicationID=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool csInitializer::SetupConfigManager           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>configName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>ApplicationID</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Setup the config manager. 
<p>
If you have no config file then you can still call this routine using a 0 parameter. If you don't call this then either <a class="el" href="classcsInitializer.html#c10c1d14d78a7bbbd4f6c12caa1d4320" title="Request a few widely used standard plugins and also read the standard configuration...">RequestPlugins()</a> or Initialize() will call this routine with 0 parameter. The 'ApplicationID' parameter is used to determine the correct user-specific domain; if 0, the return value of <a class="el" href="classcsInitializer.html#80223ebc212454ae268702c2bf9ba740" title="The default application string name; computed from the executable name as passed...">GetDefaultAppID()</a> is used. It is possibly overriden by the application config file option "System.ApplicationID".<p>
This method will load the VFS plugin if not already present in the given object registry. 
<p>Referenced by <a class="el" href="csapplicationframework_8h-source.html#l00263">csApplicationFramework::SetupConfigManager()</a>.</p>

</div>
</div><p>
<a class="anchor" name="fb00dbc9af36eaeb5a536aca89679ad4"></a><!-- doxytag: member="csInitializer::SetupEventHandler" ref="fb00dbc9af36eaeb5a536aca89679ad4" args="(iObjectRegistry *, csEventHandlerFunc)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool csInitializer::SetupEventHandler           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__appframe.html#g542e5cde1d58cfc041f28966ffec5a54">csEventHandlerFunc</a>&nbsp;</td>
          <td class="paramname"></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Initialize an event handler function. 
<p>
This function will receive EVERY event that passes through the system. This is usually not what you want, since (1) it means you'll probably receive a lot of events you're not interested in, and (2) it's the most costly operation for the event subscription scheduler. 
</div>
</div><p>
<a class="anchor" name="4327f1348b68f6de226528de02b4ed5e"></a><!-- doxytag: member="csInitializer::SetupEventHandler" ref="4327f1348b68f6de226528de02b4ed5e" args="(iObjectRegistry *, csEventHandlerFunc, const csEventID events[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool csInitializer::SetupEventHandler           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group__appframe.html#g542e5cde1d58cfc041f28966ffec5a54">csEventHandlerFunc</a>&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="group__event__handling.html#g51e1762faeeefdadf693499fc93db757">csEventID</a>&nbsp;</td>
          <td class="paramname"> <em>events</em>[]</td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Initialize an event handler function. 
<p>
This is an easier version of <a class="el" href="classcsInitializer.html#f3e61907586204cc1c5d844ec3d0ea7a" title="Initialize an event handler for the application.">SetupEventHandler()</a> that takes a function and will register an event handler to call that function for all stated events and their children, or (if the third argument is omitted) for all events. 
</div>
</div><p>
<a class="anchor" name="f3e61907586204cc1c5d844ec3d0ea7a"></a><!-- doxytag: member="csInitializer::SetupEventHandler" ref="f3e61907586204cc1c5d844ec3d0ea7a" args="(iObjectRegistry *, iEventHandler *, const csEventID[])" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static bool csInitializer::SetupEventHandler           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="structiEventHandler.html">iEventHandler</a> *&nbsp;</td>
          <td class="paramname">, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const &nbsp;</td>
          <td class="paramname"> <em>csEventID</em>[]</td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Initialize an event handler for the application. 
<p>
This is the most general routine. This event handler will receive all events that are sent through the event manager. Use this function to know about keyboard, mouse and other events. Note that you also have to use this function to be able to render something as rendering happens as a result of one event (csevProcess). 
</div>
</div><p>
<a class="anchor" name="3d2354f35277cccf3da3714a291cd2f4"></a><!-- doxytag: member="csInitializer::SetupVFS" ref="3d2354f35277cccf3da3714a291cd2f4" args="(iObjectRegistry *objectReg, const char *pluginID=&quot;crystalspace.kernel.vfs&quot;)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="structiVFS.html">iVFS</a>* csInitializer::SetupVFS           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structiObjectRegistry.html">iObjectRegistry</a> *&nbsp;</td>
          <td class="paramname"> <em>objectReg</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>pluginID</em> = <code>&quot;crystalspace.kernel.vfs&quot;</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td width="100%"><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Find or load the VFS plugin, add it to the given object registry, and return it. 
<p>
An alternate plugin ID for VFS may be given as well. Use this method if you need to make changes to VFS, or use an alternate VFS plugin, before calling SetupConfigManager. Otherwise, SetupConfigManager will load the default VFS plugin automatically. objectReg can be the object registry object returned by CreateEnvironment, or one that you have manually set up with plugin and config manager objects. 
</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>cstool/<a class="el" href="initapp_8h-source.html">initapp.h</a></ul>
<hr size="1"><address><small>Generated for Crystal Space 1.2.1 by 
<a href="http://www.doxygen.org/index.html">doxygen</a> 1.5.3 
</small></address> </div></body> </html>