Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/doc/html/boostbook/introduction.html @ 12

Last change on this file since 12 was 12, checked in by landauf, 17 years ago

added boost

File size: 4.9 KB
Line 
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4<title>Chapter 16. Introduction</title>
5<link rel="stylesheet" href="../boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
7<link rel="start" href="../index.html" title="The Boost C++ Libraries">
8<link rel="up" href="../boostbook.html" title="Part II. The BoostBook Documentation Format">
9<link rel="prev" href="../boostbook.html" title="Part II. The BoostBook Documentation Format">
10<link rel="next" href="getting/started.html" title="Chapter 17. Getting Started">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%">
14<td valign="top"><img alt="boost.png (6897 bytes)" width="277" height="86" src="../../../boost.png"></td>
15<td align="center"><a href="../../../index.htm">Home</a></td>
16<td align="center"><a href="../../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="../../../people/people.htm">People</a></td>
18<td align="center"><a href="../../../more/faq.htm">FAQ</a></td>
19<td align="center"><a href="../../../more/index.htm">More</a></td>
20</table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="../boostbook.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../boostbook.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="getting/started.html"><img src="../images/next.png" alt="Next"></a>
24</div>
25<div class="chapter" lang="en">
26<div class="titlepage"><div><div><h2 class="title">
27<a name="boostbook.introduction"></a>Chapter 16. Introduction</h2></div></div></div>
28<p>The BoostBook documentation format is an extension of <a href="http://www.docbook.org" target="_top">DocBook</a>, an SGML- or
29    XML-based format for describing documentation. BoostBook augments
30    DocBook with semantic markup that aids in the documentation of C++
31    libraries, specifically the <a href="http://www.boost.org" target="_top">Boost C++ libraries</a>, by
32    providing the ability to express and refer to C++ constructs such
33    as namespaces, classes, overloaded functions, templates, and
34    specializations.</p>
35<p>
36    BoostBook offers additional features more specific to its use for
37    documenting the <a href="http://www.boost.org" target="_top">Boost C++
38    libraries</a>. These features are intended to eliminate or
39    reduce the need for duplication of information and to aid in
40    documenting portions of Boost that might otherwise not be
41    documented. Examples of Boost-centric features include:
42      </p>
43<div class="itemizedlist"><ul type="disc">
44<li><p><span class="bold"><strong>Testsuites</strong></span>:
45          Testsuites in Boost are created by writing an appropriate
46          Jamfile and including that Jamfile in
47          <code class="filename">status/Jamfile</code>. If the testsuites are
48          documented (<a href="http://www.boost.org/libs/multi_array/doc/test_cases.html" target="_top">as
49          in the MultiArray library</a>), the documentation is
50          maintained separately from the testcase Jamfile, leading to
51          duplication of information and the possibility of having the
52          documentation out of sync with the Jamfile. BoostBook
53          contains elements that describe a testsuite for both
54          purposes: the BoostBook stylesheets can generate
55          documentation for the testcases and also generate an
56          appropriate Jamfile to integrate the testcases with the
57          regression testing system.</p></li>
58<li>
59<p><span class="bold"><strong>Example programs</strong></span>:
60          Example programs in documentation need to be duplicated in
61          testcases to ensure that the examples compile and execute
62          correctly. Keeping the two copies in sync is a tedious and
63          error-prone task. For instance, the following code snippet
64          persisted for six months:</p>
65<pre class="programlisting">
66std::cout &lt;&lt; f(5, 3) &gt;&gt; std::endl;
67</pre>
68<p>The BoostBook format allows testcases to be generated
69          by weaving together program fragments from example programs
70          in the documentation. This capability is integrated with
71          testsuite generation so that example programs are normal
72          tests in BoostBook.</p>
73</li>
74</ul></div>
75</div>
76<table width="100%"><tr>
77<td align="left"></td>
78<td align="right"><small>Copyright © 2003-2005 Douglas Gregor</small></td>
79</tr></table>
80<hr>
81<div class="spirit-nav">
82<a accesskey="p" href="../boostbook.html"><img src="../images/prev.png" alt="Prev"></a><a accesskey="u" href="../boostbook.html"><img src="../images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../images/home.png" alt="Home"></a><a accesskey="n" href="getting/started.html"><img src="../images/next.png" alt="Next"></a>
83</div>
84</body>
85</html>
Note: See TracBrowser for help on using the repository browser.