Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 4da0df31c82e4012a4c60f3f1114a1ca > files > 21

cpptest-devel-1.1.1-1.fc14.x86_64.rpm

<html>
<head>
    <title>CppTest - A C++ Unit Testing Framework</title>
    <link href="doxygen.css" rel="stylesheet" type="text/css">
    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>

<body bgcolor="#ffffff"> 
    <table width="100%">
    <tr>
        <td width="40%" align="right" valign="center">
            <a href="http://cpptest.sourceforge.net">CppTest home page</a>
        </td>
        <td></td>
        <td width="40%" align="left" valign="center">
            <a href="http://sourceforge.net/projects/cpptest">CppTest project page</a>
        </td>
    </tr>
    </table>
    <hr>

<!-- Generated by Doxygen 1.6.2-20100208 -->
<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="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>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <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="navpath"><a class="el" href="namespaceTest.html">Test</a>::<a class="el" href="classTest_1_1CompilerOutput.html">CompilerOutput</a>
  </div>
</div>
<div class="contents">
<h1>Test::CompilerOutput Class Reference</h1><!-- doxytag: class="Test::CompilerOutput" --><!-- doxytag: inherits="Test::Output" -->
<p>Compiler-like output handler.  
<a href="#_details">More...</a></p>

<p><code>#include &lt;<a class="el" href="cpptest-compileroutput_8h_source.html">cpptest-compileroutput.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Test::CompilerOutput:</div>
<div class="dynsection">
 <div class="center">
  <img src="classTest_1_1CompilerOutput.png" usemap="#Test::CompilerOutput_map" alt=""/>
  <map id="Test::CompilerOutput_map" name="Test::CompilerOutput_map">
<area href="classTest_1_1Output.html" alt="Test::Output" shape="rect" coords="0,0,128,24"/>
</map>
 </div>
</div>

<p><a href="classTest_1_1CompilerOutput-members.html">List of all members.</a></p>
<h2>Classes</h2>
<ul>
<li>class <a class="el" href="classTest_1_1CompilerOutput_1_1InvalidFormat.html">InvalidFormat</a>
<dl class="el"><dd class="mdescRight">Compiler output exception.  <a href="classTest_1_1CompilerOutput_1_1InvalidFormat.html#_details">More...</a><br/></dl></ul>
<h2>Public Types</h2>
<ul>
<li>enum <a class="el" href="classTest_1_1CompilerOutput.html#ab34cf506804cefbc67545a256af196ff">Format</a> { <a class="el" href="classTest_1_1CompilerOutput.html#ab34cf506804cefbc67545a256af196ffa1a83926858dfb1bab06bc0a313a49dac">Generic</a>, 
<a class="el" href="classTest_1_1CompilerOutput.html#ab34cf506804cefbc67545a256af196ffa9ad6dc16df2c992e8b77a3f6ee2247d8">BCC</a>, 
<a class="el" href="classTest_1_1CompilerOutput.html#ab34cf506804cefbc67545a256af196ffa7d077829f643d60a87a022d39989dd3b">GCC</a>, 
<a class="el" href="classTest_1_1CompilerOutput.html#ab34cf506804cefbc67545a256af196ffae4f7af0eaa05253ea35484384deeb86b">MSVC</a>
 }
</ul>
<h2>Public Member Functions</h2>
<ul>
<li><a class="anchor" id="a816ae9a0ff2fb6cbb95c7cd815a6e621"></a><!-- doxytag: member="Test::CompilerOutput::CompilerOutput" ref="a816ae9a0ff2fb6cbb95c7cd815a6e621" args="(Format format=Generic, std::ostream &amp;stream=std::cout)" -->
<b>CompilerOutput</b> (<a class="el" href="classTest_1_1CompilerOutput.html#ab34cf506804cefbc67545a256af196ff">Format</a> format=Generic, std::ostream &amp;stream=std::cout)
<li><a class="anchor" id="a49f7092d23ce60e3b83fa30fb5ab9ab7"></a><!-- doxytag: member="Test::CompilerOutput::CompilerOutput" ref="a49f7092d23ce60e3b83fa30fb5ab9ab7" args="(const std::string &amp;format, std::ostream &amp;stream=std::cout)" -->
<b>CompilerOutput</b> (const std::string &amp;format, std::ostream &amp;stream=std::cout)
<li>virtual void <a class="el" href="classTest_1_1CompilerOutput.html#ae276b6874eb54c8b1e3d8e3c610522dc">assertment</a> (const <a class="el" href="classTest_1_1Source.html">Source</a> &amp;s)
</ul>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>Compiler-like output handler. </p>
<p>Test suite output handler that only outputs failures in compiler warning/error format. This way, you can use your IDE to browse between failures.</p>
<p>The output format is configurable to be able to emulate different compiler outputs. The following modifiers exist:</p>
<ul>
<li><em>file</em> Outputs the file containing the test function.</li>
<li><em>line</em> Line number for the the test function.</li>
<li><em>text</em> Expression (or message) that caused the assertment. Note that each modifier can only be specified once. </li>
</ul>
<hr/><h2>Member Enumeration Documentation</h2>
<a class="anchor" id="ab34cf506804cefbc67545a256af196ff"></a><!-- doxytag: member="Test::CompilerOutput::Format" ref="ab34cf506804cefbc67545a256af196ff" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classTest_1_1CompilerOutput.html#ab34cf506804cefbc67545a256af196ff">Test::CompilerOutput::Format</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Pre-defined compiler output formats. </p>
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" id="ab34cf506804cefbc67545a256af196ffa1a83926858dfb1bab06bc0a313a49dac"></a><!-- doxytag: member="Generic" ref="ab34cf506804cefbc67545a256af196ffa1a83926858dfb1bab06bc0a313a49dac" args="" -->Generic</em>&nbsp;</td><td>
<p>Generic compiler format, which equals: <code>%file:%line: %text</code> </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ab34cf506804cefbc67545a256af196ffa9ad6dc16df2c992e8b77a3f6ee2247d8"></a><!-- doxytag: member="BCC" ref="ab34cf506804cefbc67545a256af196ffa9ad6dc16df2c992e8b77a3f6ee2247d8" args="" -->BCC</em>&nbsp;</td><td>
<p><a href="http://www.borland.com/products/downloads/download_cbuilder.html">Borland C++ Compiler</a> (BCC) format, which equals: <code>Error cpptest %file %line: %text</code>. </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ab34cf506804cefbc67545a256af196ffa7d077829f643d60a87a022d39989dd3b"></a><!-- doxytag: member="GCC" ref="ab34cf506804cefbc67545a256af196ffa7d077829f643d60a87a022d39989dd3b" args="" -->GCC</em>&nbsp;</td><td>
<p><a href="http://gcc.gnu.org">GNU Compiler Collection</a> (GCC) format, which equals: <code>%file:%line: %text</code> </p>
</td></tr>
<tr><td valign="top"><em><a class="anchor" id="ab34cf506804cefbc67545a256af196ffae4f7af0eaa05253ea35484384deeb86b"></a><!-- doxytag: member="MSVC" ref="ab34cf506804cefbc67545a256af196ffae4f7af0eaa05253ea35484384deeb86b" args="" -->MSVC</em>&nbsp;</td><td>
<p><a href="http://www.microsoft.com">Microsoft Visual C++</a> (MSVC) format, which equals: <code>%file(%line) : %text</code> </p>
</td></tr>
</table>
</dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ae276b6874eb54c8b1e3d8e3c610522dc"></a><!-- doxytag: member="Test::CompilerOutput::assertment" ref="ae276b6874eb54c8b1e3d8e3c610522dc" args="(const Source &amp;s)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Test::CompilerOutput::assertment </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classTest_1_1Source.html">Source</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>s</em></td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Called when an assertment is issued.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>s</em>&nbsp;</td><td>Assert point information. </td></tr>
  </table>
  </dd>
</dl>

<p>Reimplemented from <a class="el" href="classTest_1_1Output.html#a48c31f0baa7627d81939be840c9a7f65">Test::Output</a>.</p>

<p>References <a class="el" href="source_8cpp_source.html#l00055">Test::Source::file()</a>, <a class="el" href="source_8cpp_source.html#l00063">Test::Source::line()</a>, and <a class="el" href="source_8cpp_source.html#l00071">Test::Source::message()</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="cpptest-compileroutput_8h_source.html">cpptest-compileroutput.h</a></li>
<li>compileroutput.cpp</li>
</ul>
</div>
    <hr>
    <div align="center">
        Supported by:
        <br><br>
        <img src="http://sourceforge.net/sflogo.php?group_id=77564"
             width="88" height="31" border="0" alt="SourceForge Logo"></a>
    </div>
</body> 
</html>