<!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>GNU CommonC++: ost::TypeManager Class 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.3 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> <li><a href="examples.html"><span>Examples</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespaceost.html">ost</a>::<a class="el" href="classost_1_1_type_manager.html">TypeManager</a> </div> </div> <div class="contents"> <h1>ost::TypeManager Class Reference</h1><!-- doxytag: class="ost::TypeManager" --> <p>This class manages the types for generation of the persistent objects. <a href="#_details">More...</a></p> <p><code>#include <<a class="el" href="persist_8h_source.html">persist.h</a>></code></p> <p><a href="classost_1_1_type_manager-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Classes</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">class </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"> </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> <tr><td colspan="2"><h2>Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef std::map< <a class="el" href="classost_1_1_string.html">String</a>, <br class="typebreak"/> <a class="el" href="namespaceost.html#abaf4b8bd869b80b3711d0d84f5b91ac5">NewBaseObjectFunction</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_type_manager.html#a898c5cca59cb8c845d8c836aeed0fae0">StringFunctionMap</a></td></tr> <tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_type_manager.html#ada6b3c436c67f4e2f9a2a44bfcc34583">add</a> (const char *name, <a class="el" href="namespaceost.html#abaf4b8bd869b80b3711d0d84f5b91ac5">NewBaseObjectFunction</a> construction)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">This adds a new construction function to the type manager. <a href="#ada6b3c436c67f4e2f9a2a44bfcc34583"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static void </td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_type_manager.html#a65faf1182b3b27f7d70c94e2ba26e71c">remove</a> (const char *name)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">And this one removes a type from the managers lists. <a href="#a65faf1182b3b27f7d70c94e2ba26e71c"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classost_1_1_base_object.html">BaseObject</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classost_1_1_type_manager.html#aec12ff7c1d3949b563e25005a578c046">createInstanceOf</a> (const char *name)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">This function creates a new object of the required type and returns a pointer to it. <a href="#aec12ff7c1d3949b563e25005a578c046"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <p>This class manages the types for generation of the persistent objects. </p> <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 class="author"><dt><b>Author:</b></dt><dd>Daniel Silverstone Type manager for persistence engine. </dd></dl> <hr/><h2>Member Typedef Documentation</h2> <a class="anchor" id="a898c5cca59cb8c845d8c836aeed0fae0"></a><!-- doxytag: member="ost::TypeManager::StringFunctionMap" ref="a898c5cca59cb8c845d8c836aeed0fae0" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef std::map<<a class="el" href="classost_1_1_string.html">String</a>,<a class="el" href="namespaceost.html#abaf4b8bd869b80b3711d0d84f5b91ac5">NewBaseObjectFunction</a>> <a class="el" href="classost_1_1_type_manager.html#a898c5cca59cb8c845d8c836aeed0fae0">ost::TypeManager::StringFunctionMap</a></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="ada6b3c436c67f4e2f9a2a44bfcc34583"></a><!-- doxytag: member="ost::TypeManager::add" ref="ada6b3c436c67f4e2f9a2a44bfcc34583" args="(const char *name, NewBaseObjectFunction construction)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void ost::TypeManager::add </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>name</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="namespaceost.html#abaf4b8bd869b80b3711d0d84f5b91ac5">NewBaseObjectFunction</a> </td> <td class="paramname"> <em>construction</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This adds a new construction function to the type manager. </p> </div> </div> <a class="anchor" id="aec12ff7c1d3949b563e25005a578c046"></a><!-- doxytag: member="ost::TypeManager::createInstanceOf" ref="aec12ff7c1d3949b563e25005a578c046" args="(const char *name)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="classost_1_1_base_object.html">BaseObject</a>* ost::TypeManager::createInstanceOf </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>name</em></td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>This function creates a new object of the required type and returns a pointer to it. </p> <p>NULL is returned if we couldn't find the type </p> </div> </div> <a class="anchor" id="a65faf1182b3b27f7d70c94e2ba26e71c"></a><!-- doxytag: member="ost::TypeManager::remove" ref="a65faf1182b3b27f7d70c94e2ba26e71c" args="(const char *name)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static void ost::TypeManager::remove </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>name</em></td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p>And this one removes a type from the managers lists. </p> </div> </div> <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></li> </ul> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated on Fri Nov 12 09:55:47 2010 for GNU CommonC++ by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.3 </small></address> </body> </html>