<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_1Source.html">Source</a> </div> </div> <div class="contents"> <h1>Test::Source Class Reference</h1><!-- doxytag: class="Test::Source" -->Assertment source information. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="cpptest-source_8h_source.html">cpptest-source.h</a>></code> <p> <p> <a href="classTest_1_1Source-members.html">List of all members.</a><h2>Public Member Functions</h2> <ul> <li><a class="el" href="classTest_1_1Source.html#be0f303fe92270aa12a4a749ae0395ef">Source</a> () <li><a class="el" href="classTest_1_1Source.html#c764beb685a574b81527d0f90ae9e428">Source</a> (const char *file, unsigned int line, const char *msg) <li>const std::string & <a class="el" href="classTest_1_1Source.html#bb9d618ed57da70f177289b4bb035f02">file</a> () const <li>unsigned int <a class="el" href="classTest_1_1Source.html#a61df0b07337fb411d67222669a8bc16">line</a> () const <li>const std::string & <a class="el" href="classTest_1_1Source.html#dc700711d70f29ead5f5608dd6327ef2">message</a> () const <li>const std::string & <a class="el" href="classTest_1_1Source.html#16e0a118d2d7af145a6169ff2b342290">suite</a> () const <li>const std::string & <a class="el" href="classTest_1_1Source.html#b92c88c2842efb33daf97fe601a3653b">test</a> () const </ul> <h2>Friends</h2> <ul> <li><a class="anchor" name="7de7b0dd89982bdae285f3a3b6197f9c"></a><!-- doxytag: member="Test::Source::Suite" ref="7de7b0dd89982bdae285f3a3b6197f9c" args="" --> class <b>Suite</b> </ul> <hr><a name="_details"></a><h2>Detailed Description</h2> Assertment source information. <p> Contains information about an assertment point. <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="be0f303fe92270aa12a4a749ae0395ef"></a><!-- doxytag: member="Test::Source::Source" ref="be0f303fe92270aa12a4a749ae0395ef" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Test::Source::Source </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Constructs an invalid source object, which filename and message are empty strings and the line equals zero. </div> </div><p> <a class="anchor" name="c764beb685a574b81527d0f90ae9e428"></a><!-- doxytag: member="Test::Source::Source" ref="c764beb685a574b81527d0f90ae9e428" args="(const char *file, unsigned int line, const char *msg)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Test::Source::Source </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>file</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">unsigned int </td> <td class="paramname"> <em>line</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const char * </td> <td class="paramname"> <em>msg</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Constructs a source object.<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>file</em> </td><td>Name of the file containing the failing function. </td></tr> <tr><td valign="top"></td><td valign="top"><em>line</em> </td><td>Line where the function starts. </td></tr> <tr><td valign="top"></td><td valign="top"><em>msg</em> </td><td>Expression (or message) that caused the failure. </td></tr> </table> </dl> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="bb9d618ed57da70f177289b4bb035f02"></a><!-- doxytag: member="Test::Source::file" ref="bb9d618ed57da70f177289b4bb035f02" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const string & Test::Source::file </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Name of the file containing the failing function. </dd></dl> <p>Referenced by <a class="el" href="compileroutput_8cpp_source.html#l00109">Test::CompilerOutput::assertment()</a>.</p> </div> </div><p> <a class="anchor" name="a61df0b07337fb411d67222669a8bc16"></a><!-- doxytag: member="Test::Source::line" ref="a61df0b07337fb411d67222669a8bc16" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">unsigned int Test::Source::line </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Line where the function starts. </dd></dl> <p>Referenced by <a class="el" href="compileroutput_8cpp_source.html#l00109">Test::CompilerOutput::assertment()</a>.</p> </div> </div><p> <a class="anchor" name="dc700711d70f29ead5f5608dd6327ef2"></a><!-- doxytag: member="Test::Source::message" ref="dc700711d70f29ead5f5608dd6327ef2" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const string & Test::Source::message </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Descriptive message. </dd></dl> <p>Referenced by <a class="el" href="compileroutput_8cpp_source.html#l00109">Test::CompilerOutput::assertment()</a>.</p> </div> </div><p> <a class="anchor" name="16e0a118d2d7af145a6169ff2b342290"></a><!-- doxytag: member="Test::Source::suite" ref="16e0a118d2d7af145a6169ff2b342290" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const string & Test::Source::suite </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Name of the suite, which the test belongs to. </dd></dl> </div> </div><p> <a class="anchor" name="b92c88c2842efb33daf97fe601a3653b"></a><!-- doxytag: member="Test::Source::test" ref="b92c88c2842efb33daf97fe601a3653b" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const string & Test::Source::test </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>Name of failing test. </dd></dl> </div> </div><p> <hr>The documentation for this class was generated from the following files:<ul> <li><a class="el" href="cpptest-source_8h_source.html">cpptest-source.h</a><li>source.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>