blob: 5ec04d678e589a660b8b0ef5193c7bf677420d28 [file] [log] [blame]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>The Program Execution Monitor implementation</title>
<link rel="stylesheet" href="../../style/style.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.74.0">
<link rel="home" href="../index.html" title="Boost Test Library">
<link rel="up" href="../prg-exec-monitor.html" title="Part II. Boost Test Library: The Program Execution Monitor">
<link rel="prev" href="../prg-exec-monitor.html" title="Part II. Boost Test Library: The Program Execution Monitor">
<link rel="next" href="compilation.html" title="The Program Execution Monitor compilation">
<script language="JavaScript1.2" src="../../js/boost-test.js"></script>
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table width="100%"><tr>
<td width="10%"><a href="../index.html"><img alt="Home" width="229" height="61" border="0" src="../../../../../libs/test/docbook/img/boost.test.logo.png"></a></td>
<td valign="middle" align="left"> &gt; <a href="../prg-exec-monitor.html">The Program Execution Monitor</a><a href="../minimal.html">
&gt;
</a><b>Implementation</b>
</td>
<td><div class="spirit-nav">
<a href="../prg-exec-monitor.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a href="compilation.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a>
</div></td>
</tr></table>
<hr>
<div class="section" lang="en">
<div class="titlepage"><div><div><h3 class="title">
<a name="pem.impl"></a>The Program Execution Monitor implementation</h3></div></div></div>
<p class="first-line-indented">
To monitor execution of user supplied function cpp_main() the Program Execution Monitor relies on the Boost.Test's
<a class="link" href="../execution-monitor.html" title="Part I. Boost Test Library: The Execution Monitor">Execution Monitor</a>. Also the Program Execution Monitor supplies the function main() to facilitate
uniform error reporting. Following files constitute the Program Execution Monitor implementation:
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><a href="../../../../../boost/test/impl/execution_monitor.ipp" target="_top"><code class="filename">libs/test/execution_monitor.cpp</code></a></span></p></td>
<td>
provides <a class="link" href="../execution-monitor.html" title="Part I. Boost Test Library: The Execution Monitor">Execution Monitor</a> implementation for all supported
configurations.
</td>
</tr>
<tr>
<td><p><span class="term"><a href="../../../../../boost/test/impl/cpp_main.ipp" target="_top"><code class="filename">libs/test/cpp_main.cpp</code></a></span></p></td>
<td>supplies function main() for static library build</td>
</tr>
<tr>
<td><p><span class="term"><a href="../../../../../boost/test/included/prg_exec_monitor.hpp" target="_top"><code class="filename">boost/test/included/prg_exec_monitor.hpp</code></a></span></p></td>
<td>combines all implementation files into single header to be use as inlined version of component</td>
</tr>
<tr>
<td><p><span class="term"><a href="../../../../../boost/test/prg_exec_monitor.hpp" target="_top"><code class="filename">boost/test/prg_exec_monitor.hpp</code></a></span></p></td>
<td>
contains definitions for main() function for dynamic library build and pragmas for auto-linking feature support.
</td>
</tr>
</tbody>
</table></div>
<p class="first-line-indented">
The Program Execution Monitor implementation wraps several system headers and is intended to be used as standalone library. While there
exist an alternative variant to <a class="link" href="compilation.html#pem.compilation.direct-include" title="Including the Program Execution Monitor directly into your program">include the whole implementation
directly</a> into your program, for the long term usage the preferable solution is to
<a class="link" href="compilation.html#pem.compilation.standalone" title="Standalone library compilation">build library once</a> and reuse it.
</p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2001-2007 Gennadiy Rozental</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="../prg-exec-monitor.html"><img src="../../../../../doc/html/images/prev.png" alt="Prev"></a><a accesskey="u" href="../prg-exec-monitor.html"><img src="../../../../../doc/html/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/html/images/home.png" alt="Home"></a><a accesskey="n" href="compilation.html"><img src="../../../../../doc/html/images/next.png" alt="Next"></a>
</div>
</body>
</html>