⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 class_auto_register_suite.html

📁 c++开发的一个不错的工具
💻 HTML
字号:
<html><head><title>CppUnit - The Unit Testing Library</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body bgcolor="#ffffff"> <table width="100%">  <tr>    <td width="40%" align="left" valign="center">      <a href="http://sourceforge.net/projects/cppunit">      CppUnit project page      </a>    </td>    <td>      <a href="FAQ">FAQ</a>    </td>    <td width="40%" align="right" valign="center">      <a href="http://cppunit.sourceforge.net">CppUnit home page</a>    </td>  </tr></table><hr><!-- Generated by Doxygen 1.3.7 --><div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="modules.html">Modules</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="namespacemembers.html">Namespace&nbsp;Members</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="pages.html">Related&nbsp;Pages</a></div><h1>AutoRegisterSuite&lt; TestCaseType &gt; Class Template Reference</h1>(Implementation) Automatically register the test suite of the specified type.  <a href="#_details">More...</a><p><code>#include &lt;<a class="el" href="_auto_register_suite_8h-source.html">AutoRegisterSuite.h</a>&gt;</code><p><a href="class_auto_register_suite-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="class_auto_register_suite.html#a0">AutoRegisterSuite</a> ()</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Auto-register the suite factory in the global registry.  <a href="#a0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_auto_register_suite.html#a1">AutoRegisterSuite</a> (const std::string &amp;name)</td></tr><tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Auto-register the suite factory in the specified registry.  <a href="#a1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_auto_register_suite.html#a2">~AutoRegisterSuite</a> ()</td></tr><tr><td colspan=2><br><h2>Private Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="class_test_factory_registry.html">TestFactoryRegistry</a> *&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_auto_register_suite.html#r0">m_registry</a></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="class_test_suite_factory.html">TestSuiteFactory</a>&lt; TestCaseType &gt;&nbsp;</td><td class="memItemRight" valign=bottom><a class="el" href="class_auto_register_suite.html#r1">m_factory</a></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2><h3>template&lt;class TestCaseType&gt;<br> class AutoRegisterSuite&lt; TestCaseType &gt;</h3>(Implementation) Automatically register the test suite of the specified type. <p>You should not use this class directly. Instead, use the following macros:<ul><li><a class="el" href="group___creating_test_suite.html#ga0">CPPUNIT_TEST_SUITE_REGISTRATION()</a></li><li><a class="el" href="group___creating_test_suite.html#ga1">CPPUNIT_TEST_SUITE_NAMED_REGISTRATION()</a></li></ul><p>This object will register the test returned by TestCaseType::suite() when constructed to the test registry.<p>This object is intented to be used as a static variable.<p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>TestCaseType</em>&nbsp;</td><td>Type of the test case which suite is registered. </td></tr>  </table></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group___creating_test_suite.html#ga0">CPPUNIT_TEST_SUITE_REGISTRATION</a>, <a class="el" href="group___creating_test_suite.html#ga1">CPPUNIT_TEST_SUITE_NAMED_REGISTRATION</a> <p>CppUnit::TestFactoryRegistry. </dd></dl><p><hr><h2>Constructor &amp; Destructor Documentation</h2><a class="anchor" name="a0" doxytag="AutoRegisterSuite::AutoRegisterSuite" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" colspan="4">template&lt;class TestCaseType&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="class_auto_register_suite.html">AutoRegisterSuite</a>&lt; TestCaseType &gt;::<a class="el" href="class_auto_register_suite.html">AutoRegisterSuite</a>           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Auto-register the suite factory in the global registry. <p>    </td>  </tr></table><a class="anchor" name="a1" doxytag="AutoRegisterSuite::AutoRegisterSuite" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" colspan="4">template&lt;class TestCaseType&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="class_auto_register_suite.html">AutoRegisterSuite</a>&lt; TestCaseType &gt;::<a class="el" href="class_auto_register_suite.html">AutoRegisterSuite</a>           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="md" nowrap valign="top">const std::string &amp;&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> [inline]</code></td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>Auto-register the suite factory in the specified registry. <p><dl compact><dt><b>Parameters:</b></dt><dd>  <table border="0" cellspacing="2" cellpadding="0">    <tr><td></td><td valign=top><em>name</em>&nbsp;</td><td>Name of the registry. </td></tr>  </table></dl>    </td>  </tr></table><a class="anchor" name="a2" doxytag="AutoRegisterSuite::~AutoRegisterSuite" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" colspan="4">template&lt;class TestCaseType&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="class_auto_register_suite.html">AutoRegisterSuite</a>&lt; TestCaseType &gt;::~<a class="el" href="class_auto_register_suite.html">AutoRegisterSuite</a>           </td>          <td class="md" valign="top">(&nbsp;</td>          <td class="mdname1" valign="top" nowrap>          </td>          <td class="md" valign="top">&nbsp;)&nbsp;</td>          <td class="md" nowrap><code> [inline]</code></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 Data Documentation</h2><a class="anchor" name="r1" doxytag="AutoRegisterSuite::m_factory" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" colspan="4">template&lt;class TestCaseType&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="class_test_suite_factory.html">TestSuiteFactory</a>&lt;TestCaseType&gt; <a class="el" href="class_auto_register_suite.html">AutoRegisterSuite</a>&lt; TestCaseType &gt;::<a class="el" href="class_auto_register_suite.html#r1">m_factory</a><code> [private]</code>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><a class="anchor" name="r0" doxytag="AutoRegisterSuite::m_registry" ></a><p><table class="mdTable" width="100%" cellpadding="2" cellspacing="0">  <tr>    <td class="mdRow">      <table cellpadding="0" cellspacing="0" border="0">        <tr>          <td class="md" colspan="4">template&lt;class TestCaseType&gt; </td>        </tr>        <tr>          <td class="md" nowrap valign="top"> <a class="el" href="class_test_factory_registry.html">TestFactoryRegistry</a>* <a class="el" href="class_auto_register_suite.html">AutoRegisterSuite</a>&lt; TestCaseType &gt;::<a class="el" href="class_auto_register_suite.html#r0">m_registry</a><code> [private]</code>          </td>        </tr>      </table>    </td>  </tr></table><table cellspacing=5 cellpadding=0 border=0>  <tr>    <td>      &nbsp;    </td>    <td><p>    </td>  </tr></table><hr>The documentation for this class was generated from the following file:<ul><li><a class="el" href="_auto_register_suite_8h-source.html">AutoRegisterSuite.h</a></ul><hr><table width="100%">  <tr>    <td width="10%" align="left" valign="center">      <a href="http://sourceforge.net">       <img      src="http://sourceforge.net/sflogo.php?group_id=11795"      width="88" height="31" border="0" alt="SourceForge Logo"></a>    </td>    <td width="20%" align="left" valign="center">      hosts this site.    </td>    <td>    </td>    <td align="right" valign="center">      Send comments to:<br>      <a href="mailto:cppunit-devel@lists.sourceforge.net">CppUnit Developers</a>    </td>  </tr></table></body> </html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -