Sophie

Sophie

distrib > Mandriva > 2007.0 > i586 > by-pkgid > ad1ba1135a9c9eeffc2e538163e00373 > files > 351

libCommonC++2_1.4-devel-1.4.1-1mdv2007.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>GNU CommonC++: ost::TypeManager Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.4.6 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="namespaces.html"><span>Namespaces</span></a></li>
    <li id="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>
    <li><a href="examples.html"><span>Examples</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>
<div class="nav">
<a class="el" href="namespaceost.html">ost</a>::<a class="el" href="classost_1_1_type_manager.html">TypeManager</a></div>
<h1>ost::TypeManager Class Reference</h1><!-- doxytag: class="ost::TypeManager" -->This class manages the types for generation of the persistent objects.Type manager for persistence engine.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="persist_8h-source.html">persist.h</a>&gt;</code>
<p>
<a href="classost_1_1_type_manager-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 Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">typedef std::map&lt; <a class="el" href="classost_1_1_string.html">String</a>,<br>
 <a class="el" href="namespaceost.html#baf4b8bd869b80b3711d0d84f5b91ac5">NewBaseObjectFunction</a> &gt;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_type_manager.html#898c5cca59cb8c845d8c836aeed0fae0">StringFunctionMap</a></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="classost_1_1_type_manager.html#da6b3c436c67f4e2f9a2a44bfcc34583">add</a> (const char *name, <a class="el" href="namespaceost.html#baf4b8bd869b80b3711d0d84f5b91ac5">NewBaseObjectFunction</a> construction)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This adds a new construction function to the type manager.  <a href="#da6b3c436c67f4e2f9a2a44bfcc34583"></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="classost_1_1_type_manager.html#65faf1182b3b27f7d70c94e2ba26e71c">remove</a> (const char *name)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">And this one removes a type from the managers lists.  <a href="#65faf1182b3b27f7d70c94e2ba26e71c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classost_1_1_base_object.html">BaseObject</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_type_manager.html#ec12ff7c1d3949b563e25005a578c046">createInstanceOf</a> (const char *name)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This function creates a new object of the required type and returns a pointer to it.  <a href="#ec12ff7c1d3949b563e25005a578c046"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Classes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">class &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_type_manager_1_1_registration.html">Registration</a></td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">This manages a registration to the typemanager - attempting to remove problems with the optimisers.  <a href="classost_1_1_type_manager_1_1_registration.html#_details">More...</a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
This class manages the types for generation of the persistent objects.Type manager for persistence engine. 
<p>
Its data structures are managed automatically by the system. They are implicitly filled by the constructors who declare classes to the system.<p>
<dl compact><dt><b>Author:</b></dt><dd>Daniel Silverstone </dd></dl>

<p>
<hr><h2>Member Typedef Documentation</h2>
<a class="anchor" name="898c5cca59cb8c845d8c836aeed0fae0"></a><!-- doxytag: member="ost::TypeManager::StringFunctionMap" ref="898c5cca59cb8c845d8c836aeed0fae0" args="" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">typedef std::map&lt;<a class="el" href="classost_1_1_string.html">String</a>,<a class="el" href="namespaceost.html#baf4b8bd869b80b3711d0d84f5b91ac5">NewBaseObjectFunction</a>&gt; <a class="el" href="classost_1_1_type_manager.html#898c5cca59cb8c845d8c836aeed0fae0">ost::TypeManager::StringFunctionMap</a>          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
    </td>
  </tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="da6b3c436c67f4e2f9a2a44bfcc34583"></a><!-- doxytag: member="ost::TypeManager::add" ref="da6b3c436c67f4e2f9a2a44bfcc34583" args="(const char *name, NewBaseObjectFunction construction)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">static void ost::TypeManager::add           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname" nowrap> <em>name</em>, </td>
        </tr>
        <tr>
          <td class="md" nowrap align="right"></td>
          <td class="md"></td>
          <td class="md" nowrap><a class="el" href="namespaceost.html#baf4b8bd869b80b3711d0d84f5b91ac5">NewBaseObjectFunction</a>&nbsp;</td>
          <td class="mdname" nowrap> <em>construction</em></td>
        </tr>
        <tr>
          <td class="md"></td>
          <td class="md">)&nbsp;</td>
          <td class="md" colspan="2"><code> [static]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
This adds a new construction function to the type manager. 
<p>
    </td>
  </tr>
</table>
<a class="anchor" name="ec12ff7c1d3949b563e25005a578c046"></a><!-- doxytag: member="ost::TypeManager::createInstanceOf" ref="ec12ff7c1d3949b563e25005a578c046" args="(const char *name)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">static <a class="el" href="classost_1_1_base_object.html">BaseObject</a>* ost::TypeManager::createInstanceOf           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>name</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [static]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
This function creates a new object of the required type and returns a pointer to it. 
<p>
NULL is returned if we couldn't find the type     </td>
  </tr>
</table>
<a class="anchor" name="65faf1182b3b27f7d70c94e2ba26e71c"></a><!-- doxytag: member="ost::TypeManager::remove" ref="65faf1182b3b27f7d70c94e2ba26e71c" args="(const char *name)" --><p>
<table class="mdTable" cellpadding="2" cellspacing="0">
  <tr>
    <td class="mdRow">
      <table cellpadding="0" cellspacing="0" border="0">
        <tr>
          <td class="md" nowrap valign="top">static void ost::TypeManager::remove           </td>
          <td class="md" valign="top">(&nbsp;</td>
          <td class="md" nowrap valign="top">const char *&nbsp;</td>
          <td class="mdname1" valign="top" nowrap> <em>name</em>          </td>
          <td class="md" valign="top">&nbsp;)&nbsp;</td>
          <td class="md" nowrap><code> [static]</code></td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
  <tr>
    <td>
      &nbsp;
    </td>
    <td>

<p>
And this one removes a type from the managers lists. 
<p>
    </td>
  </tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="persist_8h-source.html">persist.h</a></ul>
<hr size="1"><address style="align: right;"><small>Generated on Mon Jun 19 10:50:56 2006 for GNU CommonC++ by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.6 </small></address>
</body>
</html>