?? class_text_outputter.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 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 Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Class List</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Class Members</a> | <a class="qindex" href="globals.html">File Members</a> | <a class="qindex" href="pages.html">Related Pages</a></div><h1>TextOutputter Class Reference<br><small>[<a class="el" href="group___writing_test_result.html">Writing test result</a>]</small></h1>Prints a <a class="el" href="class_test_result_collector.html">TestResultCollector</a> to a text stream. <a href="#_details">More...</a><p><code>#include <<a class="el" href="_text_outputter_8h-source.html">TextOutputter.h</a>></code><p><p>Inheritance diagram for TextOutputter:<p><center><img src="class_text_outputter.png" usemap="#TextOutputter_map" border="0" alt=""></center><map name="TextOutputter_map"><area href="class_outputter.html" alt="Outputter" shape="rect" coords="0,0,87,24"></map><a href="class_text_outputter-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> </td><td class="memItemRight" valign=bottom><a class="el" href="class_text_outputter.html#a0">TextOutputter</a> (<a class="el" href="class_test_result_collector.html">TestResultCollector</a> *result, std::ostream &stream)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="class_text_outputter.html#a1">~TextOutputter</a> ()</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#a1"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_text_outputter.html#a2">write</a> ()</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="class_text_outputter.html#a3">printFailures</a> ()</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="class_text_outputter.html#a4">printHeader</a> ()</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="class_text_outputter.html#a5">printFailure</a> (<a class="el" href="class_test_failure.html">TestFailure</a> *failure, int failureNumber)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="class_text_outputter.html#a6">printFailureListMark</a> (int failureNumber)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="class_text_outputter.html#a7">printFailureTestName</a> (<a class="el" href="class_test_failure.html">TestFailure</a> *failure)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="class_text_outputter.html#a8">printFailureType</a> (<a class="el" href="class_test_failure.html">TestFailure</a> *failure)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="class_text_outputter.html#a9">printFailureLocation</a> (<a class="el" href="class_source_line.html">SourceLine</a> sourceLine)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="class_text_outputter.html#a10">printFailureDetail</a> (<a class="el" href="class_exception.html">Exception</a> *thrownException)</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="class_text_outputter.html#a11">printFailureWarning</a> ()</td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>virtual void </td><td class="memItemRight" valign=bottom><a class="el" href="class_text_outputter.html#a12">printStatistics</a> ()</td></tr><tr><td colspan=2><br><h2>Protected Attributes</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top><a class="el" href="class_test_result_collector.html">TestResultCollector</a> * </td><td class="memItemRight" valign=bottom><a class="el" href="class_text_outputter.html#p0">m_result</a></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>std::ostream & </td><td class="memItemRight" valign=bottom><a class="el" href="class_text_outputter.html#p1">m_stream</a></td></tr><tr><td colspan=2><br><h2>Private Member Functions</h2></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="class_text_outputter.html#d0">TextOutputter</a> (const <a class="el" href="class_text_outputter.html">TextOutputter</a> &copy)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Prevents the use of the copy constructor. <a href="#d0"></a><br><br></td></tr><tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="class_text_outputter.html#d1">operator=</a> (const <a class="el" href="class_text_outputter.html">TextOutputter</a> &copy)</td></tr><tr><td class="mdescLeft"> </td><td class="mdescRight">Prevents the use of the copy operator. <a href="#d1"></a><br><br></td></tr></table><hr><a name="_details"></a><h2>Detailed Description</h2>Prints a <a class="el" href="class_test_result_collector.html">TestResultCollector</a> to a text stream. <p><hr><h2>Constructor & Destructor Documentation</h2><a class="anchor" name="a0" doxytag="TextOutputter::TextOutputter" ></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" nowrap valign="top"> CPPUNIT_NS_BEGIN TextOutputter::TextOutputter </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="class_test_result_collector.html">TestResultCollector</a> * </td> <td class="mdname" nowrap> <em>result</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>std::ostream & </td> <td class="mdname" nowrap> <em>stream</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a class="anchor" name="a1" doxytag="TextOutputter::~TextOutputter" ></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" nowrap valign="top"> TextOutputter::~<a class="el" href="class_text_outputter.html">TextOutputter</a> </td> <td class="md" valign="top">( </td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Destructor. <p> </td> </tr></table><a class="anchor" name="d0" doxytag="TextOutputter::TextOutputter" ></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" nowrap valign="top"> TextOutputter::TextOutputter </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="class_text_outputter.html">TextOutputter</a> & </td> <td class="mdname1" valign="top" nowrap> <em>copy</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Prevents the use of the copy constructor. <p> </td> </tr></table><hr><h2>Member Function Documentation</h2><a class="anchor" name="d1" doxytag="TextOutputter::operator=" ></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" nowrap valign="top"> void TextOutputter::operator= </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">const <a class="el" href="class_text_outputter.html">TextOutputter</a> & </td> <td class="mdname1" valign="top" nowrap> <em>copy</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [private]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p>Prevents the use of the copy operator. <p> </td> </tr></table><a class="anchor" name="a5" doxytag="TextOutputter::printFailure" ></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" nowrap valign="top"> void TextOutputter::printFailure </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="class_test_failure.html">TestFailure</a> * </td> <td class="mdname" nowrap> <em>failure</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>failureNumber</em></td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a class="anchor" name="a10" doxytag="TextOutputter::printFailureDetail" ></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" nowrap valign="top"> void TextOutputter::printFailureDetail </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="class_exception.html">Exception</a> * </td> <td class="mdname1" valign="top" nowrap> <em>thrownException</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td><p> </td> </tr></table><a class="anchor" name="a6" doxytag="TextOutputter::printFailureListMark" ></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" nowrap valign="top"> void TextOutputter::printFailureListMark </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top">int </td> <td class="mdname1" valign="top" nowrap> <em>failureNumber</em> </td> <td class="md" valign="top"> ) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr></table><table cellspacing=5 cellpadding=0 border=0> <tr> <td>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -