Sophie

Sophie

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

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: cswinWtoA Struct 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>cswinWtoA Struct Reference</h1><!-- doxytag: class="cswinWtoA" -->Small helper to convert a wide to an ANSI string, useful when passing arguments to a function.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="wintools_8h-source.html">csutil/win32/wintools.h</a>&gt;</code>
<p>

<p>
<a href="structcswinWtoA-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcswinWtoA.html#23fa6a6972f6e73a9725722f775812b3">cswinWtoA</a> (const <a class="el" href="group__util.html#g43124e776b499fd41c598b2f6d210242">wchar_t</a> *ws)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Construct from a wchar_t string.  <a href="#23fa6a6972f6e73a9725722f775812b3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcswinWtoA.html#e339ca1bf5b09772d188ef74fa1f55ed">operator const char *</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Return the string passed in on construction as an ANSI string.  <a href="#e339ca1bf5b09772d188ef74fa1f55ed"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcswinWtoA.html#d8e5c95803d7f0c5e35cee74aa1fe351">~cswinWtoA</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destruct, free up memory.  <a href="#d8e5c95803d7f0c5e35cee74aa1fe351"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Small helper to convert a wide to an ANSI string, useful when passing arguments to a function. 
<p>
<div class="fragment"><pre class="fragment">  <span class="keywordtype">wchar_t</span> test[] = L<span class="stringliteral">"Foo"</span>;
  SomeFunctionA (<a class="code" href="structcswinWtoA.html" title="Small helper to convert a wide to an ANSI string, useful when passing arguments to...">cswinWtoA</a> (test));
</pre></div> <dl class="remark" compact><dt><b>Remarks:</b></dt><dd>This class provides functionality specific to the Win32 platform. To ensure that code using this functionality compiles properly on all other platforms, the use of the class and inclusion of the header file should be surrounded by appropriate ' '#if defined(CS_PLATFORM_WIN32) ... #endif' statements. </dd></dl>

<p>Definition at line <a class="el" href="wintools_8h-source.html#l00093">93</a> of file <a class="el" href="wintools_8h-source.html">wintools.h</a>.</p>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="23fa6a6972f6e73a9725722f775812b3"></a><!-- doxytag: member="cswinWtoA::cswinWtoA" ref="23fa6a6972f6e73a9725722f775812b3" args="(const wchar_t *ws)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cswinWtoA::cswinWtoA           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="group__util.html#g43124e776b499fd41c598b2f6d210242">wchar_t</a> *&nbsp;</td>
          <td class="paramname"> <em>ws</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Construct from a wchar_t string. 
<p>

<p>Definition at line <a class="el" href="wintools_8h-source.html#l00099">99</a> of file <a class="el" href="wintools_8h-source.html">wintools.h</a>.</p>

<p>References <a class="el" href="wintools_8h-source.html#l00065">cswinWideToAnsi()</a>.</p>

</div>
</div><p>
<a class="anchor" name="d8e5c95803d7f0c5e35cee74aa1fe351"></a><!-- doxytag: member="cswinWtoA::~cswinWtoA" ref="d8e5c95803d7f0c5e35cee74aa1fe351" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cswinWtoA::~cswinWtoA           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destruct, free up memory. 
<p>

<p>Definition at line <a class="el" href="wintools_8h-source.html#l00102">102</a> of file <a class="el" href="wintools_8h-source.html">wintools.h</a>.</p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="e339ca1bf5b09772d188ef74fa1f55ed"></a><!-- doxytag: member="cswinWtoA::operator const char *" ref="e339ca1bf5b09772d188ef74fa1f55ed" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">cswinWtoA::operator const char *           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td width="100%"> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Return the string passed in on construction as an ANSI string. 
<p>

<p>Definition at line <a class="el" href="wintools_8h-source.html#l00105">105</a> of file <a class="el" href="wintools_8h-source.html">wintools.h</a>.</p>

</div>
</div><p>
<hr>The documentation for this struct was generated from the following file:<ul>
<li>csutil/win32/<a class="el" href="wintools_8h-source.html">wintools.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>