<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.5.9 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related 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 List</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="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" -->Compiler-like output handler. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="cpptest-compileroutput_8h_source.html">cpptest-compileroutput.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for Test::CompilerOutput:</div> <div class="dynsection"> <p><center><img src="classTest_1_1CompilerOutput.png" usemap="#Test::CompilerOutput_map" border="0" alt=""></center> <map name="Test::CompilerOutput_map"> <area href="classTest_1_1Output.html" alt="Test::Output" shape="rect" coords="0,0,128,24"> </map> </div> <p> <a href="classTest_1_1CompilerOutput-members.html">List of all members.</a><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#b34cf506804cefbc67545a256af196ff">Format</a> { <a class="el" href="classTest_1_1CompilerOutput.html#b34cf506804cefbc67545a256af196ff1a83926858dfb1bab06bc0a313a49dac">Generic</a>, <a class="el" href="classTest_1_1CompilerOutput.html#b34cf506804cefbc67545a256af196ff9ad6dc16df2c992e8b77a3f6ee2247d8">BCC</a>, <a class="el" href="classTest_1_1CompilerOutput.html#b34cf506804cefbc67545a256af196ff7d077829f643d60a87a022d39989dd3b">GCC</a>, <a class="el" href="classTest_1_1CompilerOutput.html#b34cf506804cefbc67545a256af196ffe4f7af0eaa05253ea35484384deeb86b">MSVC</a> } </ul> <h2>Public Member Functions</h2> <ul> <li><a class="anchor" name="816ae9a0ff2fb6cbb95c7cd815a6e621"></a><!-- doxytag: member="Test::CompilerOutput::CompilerOutput" ref="816ae9a0ff2fb6cbb95c7cd815a6e621" args="(Format format=Generic, std::ostream &stream=std::cout)" --> <b>CompilerOutput</b> (<a class="el" href="classTest_1_1CompilerOutput.html#b34cf506804cefbc67545a256af196ff">Format</a> format=Generic, std::ostream &stream=std::cout) <li><a class="anchor" name="49f7092d23ce60e3b83fa30fb5ab9ab7"></a><!-- doxytag: member="Test::CompilerOutput::CompilerOutput" ref="49f7092d23ce60e3b83fa30fb5ab9ab7" args="(const std::string &format, std::ostream &stream=std::cout)" --> <b>CompilerOutput</b> (const std::string &format, std::ostream &stream=std::cout) <li>virtual void <a class="el" href="classTest_1_1CompilerOutput.html#e276b6874eb54c8b1e3d8e3c610522dc">assertment</a> (const <a class="el" href="classTest_1_1Source.html">Source</a> &s) </ul> <hr><a name="_details"></a><h2>Detailed Description</h2> Compiler-like output handler. <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> The output format is configurable to be able to emulate different compiler outputs. The following modifiers exist:<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" name="b34cf506804cefbc67545a256af196ff"></a><!-- doxytag: member="Test::CompilerOutput::Format" ref="b34cf506804cefbc67545a256af196ff" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">enum <a class="el" href="classTest_1_1CompilerOutput.html#b34cf506804cefbc67545a256af196ff">Test::CompilerOutput::Format</a> </td> </tr> </table> </div> <div class="memdoc"> <p> Pre-defined compiler output formats. <dl compact><dt><b>Enumerator: </b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"><em><a class="anchor" name="b34cf506804cefbc67545a256af196ff1a83926858dfb1bab06bc0a313a49dac"></a><!-- doxytag: member="Generic" ref="b34cf506804cefbc67545a256af196ff1a83926858dfb1bab06bc0a313a49dac" args="" -->Generic</em> </td><td> Generic compiler format, which equals: <code>%file:%line: %text</code> </td></tr> <tr><td valign="top"><em><a class="anchor" name="b34cf506804cefbc67545a256af196ff9ad6dc16df2c992e8b77a3f6ee2247d8"></a><!-- doxytag: member="BCC" ref="b34cf506804cefbc67545a256af196ff9ad6dc16df2c992e8b77a3f6ee2247d8" args="" -->BCC</em> </td><td> <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>. </td></tr> <tr><td valign="top"><em><a class="anchor" name="b34cf506804cefbc67545a256af196ff7d077829f643d60a87a022d39989dd3b"></a><!-- doxytag: member="GCC" ref="b34cf506804cefbc67545a256af196ff7d077829f643d60a87a022d39989dd3b" args="" -->GCC</em> </td><td> <a href="http://gcc.gnu.org">GNU Compiler Collection</a> (GCC) format, which equals: <code>%file:%line: %text</code> </td></tr> <tr><td valign="top"><em><a class="anchor" name="b34cf506804cefbc67545a256af196ffe4f7af0eaa05253ea35484384deeb86b"></a><!-- doxytag: member="MSVC" ref="b34cf506804cefbc67545a256af196ffe4f7af0eaa05253ea35484384deeb86b" args="" -->MSVC</em> </td><td> <a href="http://www.microsoft.com">Microsoft Visual C++</a> (MSVC) format, which equals: <code>%file(%line) : %text</code> </td></tr> </table> </dl> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="e276b6874eb54c8b1e3d8e3c610522dc"></a><!-- doxytag: member="Test::CompilerOutput::assertment" ref="e276b6874eb54c8b1e3d8e3c610522dc" args="(const Source &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> & </td> <td class="paramname"> <em>s</em> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Called when an assertment is issued.<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>s</em> </td><td>Assert point information. </td></tr> </table> </dl> <p>Reimplemented from <a class="el" href="classTest_1_1Output.html#48c31f0baa7627d81939be840c9a7f65">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><p> <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>compileroutput.cpp</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>