Sophie

Sophie

distrib > Mandriva > current > x86_64 > by-pkgid > 3736f276bb1ccfbcee6cb2d27b25d981 > files > 378

openscap-devel-0.5.7-1mdv2010.1.x86_64.rpm

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Open SCAP Library: oscap_string_map Struct Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Data&nbsp;Structures</span></a></li>
      <li><a href="classes.html"><span>Data&nbsp;Structure&nbsp;Index</span></a></li>
      <li><a href="functions.html"><span>Data&nbsp;Fields</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>oscap_string_map Struct Reference</h1><!-- doxytag: class="oscap_string_map" -->
<p>Define mapping between symbolic constant and its string representation.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="util_8h_source.html">util.h</a>&gt;</code></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Data Fields</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9829b586421a58d05b777b7c04f26394"></a><!-- doxytag: member="oscap_string_map::value" ref="a9829b586421a58d05b777b7c04f26394" args="" -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><b>value</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="adf5a6e02a988e5285f7bef49625127c0"></a><!-- doxytag: member="oscap_string_map::string" ref="adf5a6e02a988e5285f7bef49625127c0" args="" -->
const char *&nbsp;</td><td class="memItemRight" valign="bottom"><b>string</b></td></tr>
<tr><td colspan="2"><h2>Related Functions</h2></td></tr>
<tr><td colspan="2"><p>(Note that these are not member functions.) </p>
<br/><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structoscap__string__map.html#a6bda0f46c76ca15d381bbc08d932dfaa">oscap_string_to_enum</a> (const struct <a class="el" href="structoscap__string__map.html">oscap_string_map</a> *map, const char *str)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert a string to an enumeration constant.  <a href="#a6bda0f46c76ca15d381bbc08d932dfaa"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const char *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structoscap__string__map.html#aa1d9de0387526ec8dbb26b494ef1703d">oscap_enum_to_string</a> (const struct <a class="el" href="structoscap__string__map.html">oscap_string_map</a> *map, int val)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Convert an enumeration constant to its corresponding string representation.  <a href="#aa1d9de0387526ec8dbb26b494ef1703d"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Define mapping between symbolic constant and its string representation. </p>
<p>It is supposed to define array of these structures, ending with element with the <em>string</em> member set to NULL. Value of such member also defines the default value for strings not defined elsewhere. </p>
<hr/><h2>Friends And Related Function Documentation</h2>
<a class="anchor" id="aa1d9de0387526ec8dbb26b494ef1703d"></a><!-- doxytag: member="oscap_string_map::oscap_enum_to_string" ref="aa1d9de0387526ec8dbb26b494ef1703d" args="(const struct oscap_string_map *map, int val)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char * oscap_enum_to_string </td>
          <td>(</td>
          <td class="paramtype">const struct <a class="el" href="structoscap__string__map.html">oscap_string_map</a> *&nbsp;</td>
          <td class="paramname"> <em>map</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>val</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convert an enumeration constant to its corresponding string representation. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td>An array of <a class="el" href="structoscap__string__map.html" title="Define mapping between symbolic constant and its string representation.">oscap_string_map</a> structures that defines mapping between constants and strings. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>val</em>&nbsp;</td><td>value to be converted </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a6bda0f46c76ca15d381bbc08d932dfaa"></a><!-- doxytag: member="oscap_string_map::oscap_string_to_enum" ref="a6bda0f46c76ca15d381bbc08d932dfaa" args="(const struct oscap_string_map *map, const char *str)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int oscap_string_to_enum </td>
          <td>(</td>
          <td class="paramtype">const struct <a class="el" href="structoscap__string__map.html">oscap_string_map</a> *&nbsp;</td>
          <td class="paramname"> <em>map</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&nbsp;</td>
          <td class="paramname"> <em>str</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [related]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Convert a string to an enumeration constant. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>map</em>&nbsp;</td><td>An array of <a class="el" href="structoscap__string__map.html" title="Define mapping between symbolic constant and its string representation.">oscap_string_map</a> structures that defines mapping between constants and strings. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>str</em>&nbsp;</td><td>string to be converted </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>/home/pvrabec/openscap/openscap-0.5.7/src/common/<a class="el" href="util_8h_source.html">util.h</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on 26 Feb 2010 for Open SCAP Library by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>
</html>