Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72635 - sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html
From: pbristow_at_[hidden]
Date: 2011-06-17 08:34:55


Author: pbristow
Date: 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
New Revision: 72635
URL: http://svn.boost.org/trac/boost/changeset/72635

Log:
final doxygen html
Added:
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_e_a_ncheck_8cpp.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_e_a_ncheck_8cpp_source.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_e_a_ncheck_8hpp.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_e_a_ncheck_8hpp_source.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_i_b_m_check_8hpp.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_i_b_m_check_8hpp_source.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_i_s_b_n___p_a_b_8hpp.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_i_s_b_n___p_a_b_8hpp_source.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_i_s_s_n___p_a_b_8hpp.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_i_s_s_n___p_a_b_8hpp_source.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_u_p_ccheck_8cpp.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_u_p_ccheck_8cpp_source.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_u_p_ccheck_8hpp.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_u_p_ccheck_8hpp_source.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_v_i_s_a_check_8hpp.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_v_i_s_a_check_8hpp_source.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/adler_8hpp.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/adler_8hpp_source.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/amex_8hpp.html (contents, props changed)
   sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/amex_8hpp_source.html (contents, props changed)

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_e_a_ncheck_8cpp.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_e_a_ncheck_8cpp.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,194 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+</div>
+<div class="header">
+ <div class="summary">
+Functions </div>
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/EANcheck.cpp File Reference</div> </div>
+</div>
+<div class="contents">
+<div class="textblock"><code>#include &lt;iostream&gt;</code><br/>
+<code>#include &lt;string&gt;</code><br/>
+<code>#include &lt;vector&gt;</code><br/>
+<code>#include &lt;cassert&gt;</code><br/>
+<code>#include &quot;<a class="el" href="_e_a_ncheck_8hpp_source.html">EANcheck.hpp</a>&quot;</code><br/>
+</div>
+<p>Go to the source code of this file.</p>
+<table class="memberdecls">
+<tr><td colspan="2"><h2><a name="func-members"></a>
+Functions</h2></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_e_a_ncheck_8cpp.html#acb1cc57803ca9e6657ead13f96675d4c">EANcheck</a> (std::string s)</td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_e_a_ncheck_8cpp.html#a29ccfb8c054b6963ee6d8f9cf77209b1">EANcompute</a> (std::string s)</td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_e_a_ncheck_8cpp.html#a7f994e78df98e9fa6e54e53d347ad5b2">EAN8check</a> (std::string s)</td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_e_a_ncheck_8cpp.html#a46749bc99672e24292e147f4f098ca7e">EAN8compute</a> (std::string s)</td></tr>
+</table>
+<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
+<div class="textblock">
+<p>Definition in file <a class="el" href="_e_a_ncheck_8cpp_source.html">EANcheck.cpp</a>.</p>
+</div><hr/><h2>Function Documentation</h2>
+<a class="anchor" id="a7f994e78df98e9fa6e54e53d347ad5b2"></a><!-- doxytag: member="EANcheck.cpp::EAN8check" ref="a7f994e78df98e9fa6e54e53d347ad5b2" args="(std::string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool EAN8check </td>
+ <td>(</td>
+ <td class="paramtype">std::string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Definition at line <a class="el" href="_e_a_ncheck_8cpp_source.html#l00107">107</a> of file <a class="el" href="_e_a_ncheck_8cpp_source.html">EANcheck.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a46749bc99672e24292e147f4f098ca7e"></a><!-- doxytag: member="EANcheck.cpp::EAN8compute" ref="a46749bc99672e24292e147f4f098ca7e" args="(std::string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">char EAN8compute </td>
+ <td>(</td>
+ <td class="paramtype">std::string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Definition at line <a class="el" href="_e_a_ncheck_8cpp_source.html#l00139">139</a> of file <a class="el" href="_e_a_ncheck_8cpp_source.html">EANcheck.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="acb1cc57803ca9e6657ead13f96675d4c"></a><!-- doxytag: member="EANcheck.cpp::EANcheck" ref="acb1cc57803ca9e6657ead13f96675d4c" args="(std::string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool EANcheck </td>
+ <td>(</td>
+ <td class="paramtype">std::string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Definition at line <a class="el" href="_e_a_ncheck_8cpp_source.html#l00042">42</a> of file <a class="el" href="_e_a_ncheck_8cpp_source.html">EANcheck.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a29ccfb8c054b6963ee6d8f9cf77209b1"></a><!-- doxytag: member="EANcheck.cpp::EANcompute" ref="a29ccfb8c054b6963ee6d8f9cf77209b1" args="(std::string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">char EANcompute </td>
+ <td>(</td>
+ <td class="paramtype">std::string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Definition at line <a class="el" href="_e_a_ncheck_8cpp_source.html#l00073">73</a> of file <a class="el" href="_e_a_ncheck_8cpp_source.html">EANcheck.cpp</a>.</p>
+
+</div>
+</div>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_e_a_ncheck_8cpp_source.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_e_a_ncheck_8cpp_source.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,267 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+<div class="header">
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/EANcheck.cpp</div> </div>
+</div>
+<div class="contents">
+Go to the documentation of this file.<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
+<a name="l00002"></a>00002
+<a name="l00003"></a>00003 <span class="comment">// Copyright Paul A. Bristow 2011.</span>
+<a name="l00004"></a>00004
+<a name="l00005"></a>00005 <span class="comment">// Use, modification and distribution are subject to the</span>
+<a name="l00006"></a>00006 <span class="comment">// Boost Software License, Version 1.0.</span>
+<a name="l00007"></a>00007 <span class="comment">// (See accompanying file LICENSE_1_0.txt</span>
+<a name="l00008"></a>00008 <span class="comment">// or copy at http://www.boost.org/LICENSE_1_0.txt)</span>
+<a name="l00009"></a>00009 <span class="comment">// European Article numbering</span>
+<a name="l00010"></a>00010
+<a name="l00011"></a>00011 <span class="comment">// EAN check</span>
+<a name="l00012"></a>00012
+<a name="l00013"></a>00013 <span class="comment">// EAN Symbol Specification Manual,</span>
+<a name="l00014"></a>00014 <span class="comment">// Universal Product Code, Uniform Code Council, Dayton, Ohio, USA.</span>
+<a name="l00015"></a>00015 <span class="comment">// M. Blocksma, Reading the Numbers, Penguin, New York 1989.</span>
+<a name="l00016"></a>00016 <span class="comment">// Joseph A Gallian, ACM Computing Surveys, 28(3), 504-517 (Sep 1996)</span>
+<a name="l00017"></a>00017 <span class="comment">// Section 2, page 505 example of Kelloggs Low fat Granola 03800013710 &amp; check digit 5.</span>
+<a name="l00018"></a>00018 <span class="comment">// EAN-13 check is (</span>
+<a name="l00019"></a>00019 <span class="comment">// Example is 7 012345 678908</span>
+<a name="l00020"></a>00020 <span class="comment">// EAN-8 check is -(1, 2, 3, 4, 5, 6, 7) * (3,1,3,1,3,1,3,1,3) mod 10 == 0</span>
+<a name="l00021"></a>00021 <span class="comment">// eg -(1 * 3 + 2 * 1 * 3 * 3 + 4 * 1 + %* 3 + 6 * 1 + 7 * 3) mod 10</span>
+<a name="l00022"></a>00022 <span class="comment">//</span>
+<a name="l00023"></a>00023 <span class="comment">// Stephen Barnett, Discrete Mathematics, Numbers and Beyond, Addison-Wesley.</span>
+<a name="l00024"></a>00024 <span class="comment">// ISBN 0201342928 EAN 978 201 342925</span>
+<a name="l00025"></a>00025 <span class="comment">// EAN for books is based on the ISBN and begins with the digits 978,</span>
+<a name="l00026"></a>00026 <span class="comment">// and the next nine digits being the first nine digits of the ISBN,</span>
+<a name="l00027"></a>00027 <span class="comment">// finally an EAN-13 check decimal digit.</span>
+<a name="l00028"></a>00028
+<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;iostream&gt;</span> <span class="comment">// For testing only.</span>
+<a name="l00030"></a>00030 <span class="comment">//using std::cout; // For testing only.</span>
+<a name="l00031"></a>00031 <span class="comment">//using std::endl; // For testing only.</span>
+<a name="l00032"></a>00032
+<a name="l00033"></a>00033 <span class="preprocessor">#include &lt;string&gt;</span>
+<a name="l00034"></a>00034 <span class="comment">//using std::string;</span>
+<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;vector&gt;</span>
+<a name="l00036"></a>00036 <span class="comment">//using std::vector;</span>
+<a name="l00037"></a>00037
+<a name="l00038"></a>00038 <span class="preprocessor">#include &lt;cassert&gt;</span>
+<a name="l00039"></a>00039
+<a name="l00040"></a>00040 <span class="preprocessor">#include &quot;<a class="code" href="_e_a_ncheck_8hpp.html">EANcheck.hpp</a>&quot;</span> <span class="comment">// Declarations of bool EANcheck(string s); &amp; char EANcompute(string s);</span>
+<a name="l00041"></a>00041
+<a name="l00042"></a><a class="code" href="_e_a_ncheck_8hpp.html#acb1cc57803ca9e6657ead13f96675d4c">00042</a> <span class="keywordtype">bool</span> <a class="code" href="_e_a_ncheck_8cpp.html#acb1cc57803ca9e6657ead13f96675d4c">EANcheck</a>(std::string s)
+<a name="l00043"></a>00043 { <span class="comment">// Check that a EAN 13 includes the correct check end digit.</span>
+<a name="l00044"></a>00044 <span class="keywordflow">if</span> (s.size() != 13)
+<a name="l00045"></a>00045 { <span class="comment">// Must be exactly 12 decimal digits + one decimal check digit.</span>
+<a name="l00046"></a>00046 std::cout &lt;&lt; <span class="stringliteral">&quot;length is &quot;</span> &lt;&lt; <span class="keywordtype">unsigned</span> int(s.size()) &lt;&lt; std::endl;
+<a name="l00047"></a>00047 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+<a name="l00048"></a>00048 }
+<a name="l00049"></a>00049 std::vector&lt;int&gt; v(13); <span class="comment">// Exactly 13 requirement.</span>
+<a name="l00050"></a>00050 assert(v.size() == 13);
+<a name="l00051"></a>00051 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; 13; i++)
+<a name="l00052"></a>00052 {
+<a name="l00053"></a>00053 <span class="keywordflow">if</span> (isdigit(s[i]))
+<a name="l00054"></a>00054 {
+<a name="l00055"></a>00055 v[i] = s[i] - <span class="charliteral">&#39;0&#39;</span>;
+<a name="l00056"></a>00056 }
+<a name="l00057"></a>00057 <span class="keywordflow">else</span>
+<a name="l00058"></a>00058 { <span class="comment">// Unexpected character in string!</span>
+<a name="l00059"></a>00059 std::cout &lt;&lt; <span class="stringliteral">&quot; unexpected char &quot;</span> &lt;&lt; s[i] &lt;&lt; std::endl;
+<a name="l00060"></a>00060 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+<a name="l00061"></a>00061 }
+<a name="l00062"></a>00062 }
+<a name="l00063"></a>00063 <span class="keywordtype">int</span> check = (v[0] * 1 + v[1] * 3 + v[2] * 1 + v[3] * 3 + v[4] * 1 + v[5] * 3
+<a name="l00064"></a>00064 + v[6] * 1 + v[7] * 3 + v[8] * 1 + v[9] * 3 + v[10] * 1 + v[11] * 3
+<a name="l00065"></a>00065 + v[12] * 1); <span class="comment">// the 13th decimal check digit.</span>
+<a name="l00066"></a>00066 <span class="comment">//std::cout &lt;&lt; check &lt;&lt; std::endl;</span>
+<a name="l00067"></a>00067 check %= 10; <span class="comment">// modulus 10 because must be a decimal check digit,</span>
+<a name="l00068"></a>00068 <span class="comment">// (not X as ISBN system).</span>
+<a name="l00069"></a>00069 <span class="comment">//std::cout &lt;&lt; check &lt;&lt; std::endl;</span>
+<a name="l00070"></a>00070 <span class="keywordflow">return</span> (check == 0);
+<a name="l00071"></a>00071 } <span class="comment">// bool EANcheck(string s)</span>
+<a name="l00072"></a>00072
+<a name="l00073"></a><a class="code" href="_e_a_ncheck_8hpp.html#a29ccfb8c054b6963ee6d8f9cf77209b1">00073</a> <span class="keywordtype">char</span> <a class="code" href="_e_a_ncheck_8cpp.html#a29ccfb8c054b6963ee6d8f9cf77209b1">EANcompute</a>(std::string s)
+<a name="l00074"></a>00074 { <span class="comment">// Compute EAN check digit.</span>
+<a name="l00075"></a>00075 <span class="keywordflow">if</span> (s.size() != 12)
+<a name="l00076"></a>00076 { <span class="comment">// Must be exactly 12 decimal digits.</span>
+<a name="l00077"></a>00077 std::cout &lt;&lt; <span class="stringliteral">&quot;EAN length is &quot;</span> &lt;&lt; <span class="keywordtype">unsigned</span> int(s.size()) &lt;&lt; std::endl;
+<a name="l00078"></a>00078 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+<a name="l00079"></a>00079 }
+<a name="l00080"></a>00080 std::vector&lt;int&gt; v(13); <span class="comment">// Exactly 12 digits required,</span>
+<a name="l00081"></a>00081 <span class="comment">// but leave space for check digit too?</span>
+<a name="l00082"></a>00082 assert(v.size() == 13);
+<a name="l00083"></a>00083
+<a name="l00084"></a>00084 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; 12; i++)
+<a name="l00085"></a>00085 {
+<a name="l00086"></a>00086 <span class="keywordflow">if</span> (isdigit(s[i]))
+<a name="l00087"></a>00087 { <span class="comment">// Convert ACSII digit chars to int.</span>
+<a name="l00088"></a>00088 v[i] = s[i] - <span class="charliteral">&#39;0&#39;</span>;
+<a name="l00089"></a>00089 }
+<a name="l00090"></a>00090 <span class="keywordflow">else</span>
+<a name="l00091"></a>00091 { <span class="comment">// Unexpected character in string!</span>
+<a name="l00092"></a>00092 std::cout &lt;&lt; <span class="stringliteral">&quot; unexpected char &quot;</span> &lt;&lt; s[i] &lt;&lt; std::endl;
+<a name="l00093"></a>00093 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+<a name="l00094"></a>00094 }
+<a name="l00095"></a>00095 }
+<a name="l00096"></a>00096 <span class="keywordtype">int</span> check = (v[0] * 1 + v[1] * 3 + v[2] * 1 + v[3] * 3 + v[4] * 1 + v[5] * 3
+<a name="l00097"></a>00097 + v[6] * 1 + v[7] * 3 + v[8] * 1 + v[9] * 3 + v[10] * 1 + v[11] * 3
+<a name="l00098"></a>00098 ); <span class="comment">// decimal check digit.</span>
+<a name="l00099"></a>00099
+<a name="l00100"></a>00100 <span class="comment">//cout &lt;&lt; check &lt;&lt; endl;</span>
+<a name="l00101"></a>00101 check %= 10; <span class="comment">// modulus 10 so can be a decimal digit.</span>
+<a name="l00102"></a>00102 check = (check != 0) ? 10 - check : 0;
+<a name="l00103"></a>00103 <span class="comment">//std::cout &lt;&lt; check &lt;&lt; std::endl;</span>
+<a name="l00104"></a>00104 <span class="keywordflow">return</span> char(check + <span class="charliteral">&#39;0&#39;</span>); <span class="comment">// ASCII &#39;0&#39; to &#39;9&#39;</span>
+<a name="l00105"></a>00105 } <span class="comment">// bool EANcompute(string s)</span>
+<a name="l00106"></a>00106
+<a name="l00107"></a><a class="code" href="_e_a_ncheck_8cpp.html#a7f994e78df98e9fa6e54e53d347ad5b2">00107</a> <span class="keywordtype">bool</span> <a class="code" href="_e_a_ncheck_8cpp.html#a7f994e78df98e9fa6e54e53d347ad5b2">EAN8check</a>(std::string s)
+<a name="l00108"></a>00108 { <span class="comment">// Check that a EAN-8 string includes the correct check digit.</span>
+<a name="l00109"></a>00109 <span class="comment">// Examples: EAN8check(&quot;12345670&quot;)</span>
+<a name="l00110"></a>00110 <span class="comment">// EAN8check(&quot;00511728&quot;)</span>
+<a name="l00111"></a>00111 <span class="keywordflow">if</span> (s.size() != 8)
+<a name="l00112"></a>00112 { <span class="comment">// Must be exactly 7 decimal digits &amp; one decimal check digit.</span>
+<a name="l00113"></a>00113 std::cout &lt;&lt; <span class="stringliteral">&quot;length is &quot;</span> &lt;&lt; <span class="keywordtype">unsigned</span> int(s.size()) &lt;&lt; <span class="stringliteral">&quot;!&quot;</span> &lt;&lt; std::endl;
+<a name="l00114"></a>00114 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+<a name="l00115"></a>00115 }
+<a name="l00116"></a>00116 std::vector&lt;int&gt; v(8); <span class="comment">// Exactly 8 decimal digits required.</span>
+<a name="l00117"></a>00117 assert(v.size() == 8);
+<a name="l00118"></a>00118 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; 8; i++)
+<a name="l00119"></a>00119 {
+<a name="l00120"></a>00120 <span class="keywordflow">if</span> (isdigit(s[i]))
+<a name="l00121"></a>00121 { <span class="comment">// Convert ascii digit chars to int.</span>
+<a name="l00122"></a>00122 v[i] = s[i] - <span class="charliteral">&#39;0&#39;</span>; <span class="comment">// Convert ascii digit chars to int.</span>
+<a name="l00123"></a>00123 }
+<a name="l00124"></a>00124 <span class="keywordflow">else</span>
+<a name="l00125"></a>00125 { <span class="comment">// Unexpected character in string!</span>
+<a name="l00126"></a>00126 std::cout &lt;&lt; <span class="stringliteral">&quot; unexpected char &quot;</span> &lt;&lt; s[i] &lt;&lt; std::endl;
+<a name="l00127"></a>00127 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+<a name="l00128"></a>00128 }
+<a name="l00129"></a>00129 }
+<a name="l00130"></a>00130 <span class="keywordtype">int</span> check = (v[0] * 3 + v[1] * 1 + v[2] * 3 + v[3] * 1 + v[4] * 3 + v[5] * 1 + v[6] * 3
+<a name="l00131"></a>00131 + v[7] * 1 <span class="comment">// the 8th decimal check digit.</span>
+<a name="l00132"></a>00132 );
+<a name="l00133"></a>00133 <span class="comment">//std::cout &lt;&lt; check &lt;&lt; std::endl;</span>
+<a name="l00134"></a>00134 check %= 10; <span class="comment">// modulus 10 because must be a decimal check digit (not X as ISBN system).</span>
+<a name="l00135"></a>00135 <span class="comment">//std::cout &lt;&lt; check &lt;&lt; std::endl;</span>
+<a name="l00136"></a>00136 <span class="keywordflow">return</span> (check == 0);
+<a name="l00137"></a>00137 } <span class="comment">// bool EANcheck(string s)</span>
+<a name="l00138"></a>00138
+<a name="l00139"></a><a class="code" href="_e_a_ncheck_8cpp.html#a46749bc99672e24292e147f4f098ca7e">00139</a> <span class="keywordtype">char</span> <a class="code" href="_e_a_ncheck_8cpp.html#a46749bc99672e24292e147f4f098ca7e">EAN8compute</a>(std::string s)
+<a name="l00140"></a>00140 { <span class="comment">// Compute EAN-8 check digit.</span>
+<a name="l00141"></a>00141 <span class="keywordflow">if</span> (s.size() != 7)
+<a name="l00142"></a>00142 { <span class="comment">// Must be exactly 7 decimal digits, because 8th will be the check digit.</span>
+<a name="l00143"></a>00143 std::cout &lt;&lt; <span class="stringliteral">&quot;EAN length is &quot;</span> &lt;&lt; <span class="keywordtype">unsigned</span> int(s.size()) &lt;&lt; std::endl;
+<a name="l00144"></a>00144 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+<a name="l00145"></a>00145 }
+<a name="l00146"></a>00146 std::vector&lt;int&gt; v(7);<span class="comment">// Exactly 7 digits required,</span>
+<a name="l00147"></a>00147 assert(v.size() == 7);
+<a name="l00148"></a>00148 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; 7; i++)
+<a name="l00149"></a>00149 {
+<a name="l00150"></a>00150 <span class="keywordflow">if</span> (isdigit(s[i]))
+<a name="l00151"></a>00151 {
+<a name="l00152"></a>00152 v[i] = s[i] - <span class="charliteral">&#39;0&#39;</span>;
+<a name="l00153"></a>00153 }
+<a name="l00154"></a>00154 <span class="keywordflow">else</span>
+<a name="l00155"></a>00155 { <span class="comment">// Unexpected character in string!</span>
+<a name="l00156"></a>00156 std::cout &lt;&lt; <span class="stringliteral">&quot; unexpected char &quot;</span> &lt;&lt; s[i] &lt;&lt; std::endl;
+<a name="l00157"></a>00157 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+<a name="l00158"></a>00158 }
+<a name="l00159"></a>00159 }
+<a name="l00160"></a>00160 <span class="keywordtype">int</span> check = - (
+<a name="l00161"></a>00161 v[0] * 3 + v[1] * 1 + v[2] * 3 + v[3] * 1 + v[4] * 3 + v[5] * 1 + v[6] * 3
+<a name="l00162"></a>00162 ); <span class="comment">// decimal check digit.</span>
+<a name="l00163"></a>00163
+<a name="l00164"></a>00164 <span class="comment">//std::cout &lt;&lt; check &lt;&lt; std::endl;</span>
+<a name="l00165"></a>00165 check %= 10; <span class="comment">// modulus 10 as must be be a decimal digit (not X as ISBN system).</span>
+<a name="l00166"></a>00166 <span class="comment">//std::cout &lt;&lt; check &lt;&lt; std::endl;</span>
+<a name="l00167"></a>00167 <span class="keywordflow">return</span> char(check + <span class="charliteral">&#39;0&#39;</span>); <span class="comment">// ASCII &#39;0&#39; to &#39;9&#39;</span>
+<a name="l00168"></a>00168 } <span class="comment">// bool EANcompute(string s)</span>
+<a name="l00169"></a>00169
+<a name="l00170"></a>00170 <span class="comment">// and bar code 2 in 5...</span>
+</pre></div></div>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_e_a_ncheck_8hpp.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_e_a_ncheck_8hpp.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,147 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+</div>
+<div class="header">
+ <div class="summary">
+Functions </div>
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/EANcheck.hpp File Reference</div> </div>
+</div>
+<div class="contents">
+<div class="textblock"><code>#include &lt;string&gt;</code><br/>
+</div>
+<p>Go to the source code of this file.</p>
+<table class="memberdecls">
+<tr><td colspan="2"><h2><a name="func-members"></a>
+Functions</h2></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_e_a_ncheck_8hpp.html#acb1cc57803ca9e6657ead13f96675d4c">EANcheck</a> (std::string s)</td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_e_a_ncheck_8hpp.html#a29ccfb8c054b6963ee6d8f9cf77209b1">EANcompute</a> (std::string s)</td></tr>
+</table>
+<hr/><h2>Function Documentation</h2>
+<a class="anchor" id="acb1cc57803ca9e6657ead13f96675d4c"></a><!-- doxytag: member="EANcheck.hpp::EANcheck" ref="acb1cc57803ca9e6657ead13f96675d4c" args="(std::string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool EANcheck </td>
+ <td>(</td>
+ <td class="paramtype">std::string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Definition at line <a class="el" href="_e_a_ncheck_8cpp_source.html#l00042">42</a> of file <a class="el" href="_e_a_ncheck_8cpp_source.html">EANcheck.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a29ccfb8c054b6963ee6d8f9cf77209b1"></a><!-- doxytag: member="EANcheck.hpp::EANcompute" ref="a29ccfb8c054b6963ee6d8f9cf77209b1" args="(std::string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">char EANcompute </td>
+ <td>(</td>
+ <td class="paramtype">std::string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Definition at line <a class="el" href="_e_a_ncheck_8cpp_source.html#l00073">73</a> of file <a class="el" href="_e_a_ncheck_8cpp_source.html">EANcheck.cpp</a>.</p>
+
+</div>
+</div>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_e_a_ncheck_8hpp_source.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_e_a_ncheck_8hpp_source.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,115 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+<div class="header">
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/EANcheck.hpp</div> </div>
+</div>
+<div class="contents">
+Go to the documentation of this file.<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// EAN.hpp</span>
+<a name="l00002"></a>00002
+<a name="l00003"></a>00003 <span class="comment">// European Article Numbering</span>
+<a name="l00004"></a>00004 <span class="comment">// similar to </span>
+<a name="l00005"></a>00005 <span class="comment">// UPC Symbol Specification Manual, Uniform Code Council, Dayton, Ohio, USA.</span>
+<a name="l00006"></a>00006 <span class="comment">// M. Blocksma, Reading the Numbers, Penguin, New York 1989.</span>
+<a name="l00007"></a>00007 <span class="comment">// Joseph A Gallian, ACM Computing Surveys, 28(3), 504-517 (Sep 1996)</span>
+<a name="l00008"></a>00008 <span class="comment">// Section 2, 506</span>
+<a name="l00009"></a>00009 <span class="comment">// 13 decimal digit code, like UPC</span>
+<a name="l00010"></a>00010 <span class="comment">// uses a two digits that identify the country in which the item was produced.</span>
+<a name="l00011"></a>00011 <span class="comment">// C Harmon &amp; R Adams, Reading between the Lines, Helmers publishing NH (1989)</span>
+<a name="l00012"></a>00012 <span class="comment">// Stephen Barnett, discrete Mathematics, Numbers and Beyond, Addison-Wesley.</span>
+<a name="l00013"></a>00013 <span class="comment">// ISBN 0201342928 EAN 9 78201 342925</span>
+<a name="l00014"></a>00014
+<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;string&gt;</span>
+<a name="l00016"></a>00016
+<a name="l00017"></a>00017 <span class="keywordtype">bool</span> <a class="code" href="_e_a_ncheck_8cpp.html#acb1cc57803ca9e6657ead13f96675d4c">EANcheck</a>(std::string s);
+<a name="l00018"></a>00018 <span class="keywordtype">char</span> <a class="code" href="_e_a_ncheck_8cpp.html#a29ccfb8c054b6963ee6d8f9cf77209b1">EANcompute</a>(std::string s);
+</pre></div></div>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_i_b_m_check_8hpp.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_i_b_m_check_8hpp.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,149 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+</div>
+<div class="header">
+ <div class="summary">
+Functions </div>
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/IBMCheck.hpp File Reference</div> </div>
+</div>
+<div class="contents">
+<div class="textblock"><code>#include &lt;string&gt;</code><br/>
+<code>#include &lt;vector&gt;</code><br/>
+<code>#include &lt;cctype&gt;</code><br/>
+</div>
+<p>Go to the source code of this file.</p>
+<table class="memberdecls">
+<tr><td colspan="2"><h2><a name="func-members"></a>
+Functions</h2></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_i_b_m_check_8hpp.html#a51a037dc0d5daad5c759da61f9bf9f5a">IBMcheck</a> (string s)</td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_i_b_m_check_8hpp.html#a6a90f1b7f7b88ba2e382bbebb5324726">IBMcompute</a> (string s)</td></tr>
+</table>
+<hr/><h2>Function Documentation</h2>
+<a class="anchor" id="a51a037dc0d5daad5c759da61f9bf9f5a"></a><!-- doxytag: member="IBMCheck.hpp::IBMcheck" ref="a51a037dc0d5daad5c759da61f9bf9f5a" args="(string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool IBMcheck </td>
+ <td>(</td>
+ <td class="paramtype">string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Definition at line <a class="el" href="_i_b_m_check_8hpp_source.html#l00025">25</a> of file <a class="el" href="_i_b_m_check_8hpp_source.html">IBMCheck.hpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a6a90f1b7f7b88ba2e382bbebb5324726"></a><!-- doxytag: member="IBMCheck.hpp::IBMcompute" ref="a6a90f1b7f7b88ba2e382bbebb5324726" args="(string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">char IBMcompute </td>
+ <td>(</td>
+ <td class="paramtype">string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Definition at line <a class="el" href="_i_b_m_check_8hpp_source.html#l00065">65</a> of file <a class="el" href="_i_b_m_check_8hpp_source.html">IBMCheck.hpp</a>.</p>
+
+</div>
+</div>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_i_b_m_check_8hpp_source.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_i_b_m_check_8hpp_source.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,201 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+<div class="header">
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/IBMCheck.hpp</div> </div>
+</div>
+<div class="contents">
+Go to the documentation of this file.<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// IBM check used by MAstercard, VISA, and most other credit card companies.</span>
+<a name="l00002"></a>00002
+<a name="l00003"></a>00003 <span class="comment">// Is an even/odd weighted code.</span>
+<a name="l00004"></a>00004
+<a name="l00005"></a>00005 <span class="comment">// Digits in the even positions (numbering from the right) are multiplied by 2,</span>
+<a name="l00006"></a>00006 <span class="comment">// then reduced to a single digit (if &gt; 9) by &quot;casting out nines&quot;</span>
+<a name="l00007"></a>00007 <span class="comment">// (subtracting 9, which is equivalent to adding the digits).</span>
+<a name="l00008"></a>00008 <span class="comment">// All digits are them summed</span>
+<a name="l00009"></a>00009 <span class="comment">// and a check digit added to make the result evenly divisble by 10.</span>
+<a name="l00010"></a>00010
+<a name="l00011"></a>00011 <span class="comment">// EAN for books is based on the ISBN and begins with the digits 978,</span>
+<a name="l00012"></a>00012 <span class="comment">// and the next nine digits being the first nine digits of the ISBN,</span>
+<a name="l00013"></a>00013 <span class="comment">// finally an EAN-13 check decimal digit.</span>
+<a name="l00014"></a>00014
+<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;string&gt;</span>
+<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;vector&gt;</span>
+<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;cctype&gt;</span> <span class="comment">// isdigit, isspace, tolower</span>
+<a name="l00018"></a>00018
+<a name="l00019"></a>00019 <span class="keyword">using</span> std::string;
+<a name="l00020"></a>00020 <span class="keyword">using</span> std::vector;
+<a name="l00021"></a>00021
+<a name="l00022"></a>00022 <span class="keyword">using</span> std::cout;
+<a name="l00023"></a>00023 <span class="keyword">using</span> std::endl;
+<a name="l00024"></a>00024
+<a name="l00025"></a><a class="code" href="_i_b_m_check_8hpp.html#a51a037dc0d5daad5c759da61f9bf9f5a">00025</a> <span class="keywordtype">bool</span> <a class="code" href="_i_b_m_check_8hpp.html#a51a037dc0d5daad5c759da61f9bf9f5a">IBMcheck</a>(<span class="keywordtype">string</span> s)
+<a name="l00026"></a>00026 { <span class="comment">// Check an existing IBM check string s</span>
+<a name="l00027"></a>00027 <span class="comment">// which includes a check digit 0 to 9.</span>
+<a name="l00028"></a>00028 vector&lt;int&gt; v(16);
+<a name="l00029"></a>00029 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; 16; i++)
+<a name="l00030"></a>00030 { <span class="comment">// Convert decimal digit characters in string to integers in vector.</span>
+<a name="l00031"></a>00031 <span class="keywordflow">if</span> (isdigit(s[i]))
+<a name="l00032"></a>00032 {
+<a name="l00033"></a>00033 v[i] = s[i] - <span class="charliteral">&#39;0&#39;</span>;
+<a name="l00034"></a>00034 }
+<a name="l00035"></a>00035 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (toupper(s[i] == <span class="charliteral">&#39;X&#39;</span>))
+<a name="l00036"></a>00036 {
+<a name="l00037"></a>00037 v[i] = 10;
+<a name="l00038"></a>00038 }
+<a name="l00039"></a>00039 <span class="keywordflow">else</span>
+<a name="l00040"></a>00040 { <span class="comment">// give up! (assumes no whitespace or punctuation).</span>
+<a name="l00041"></a>00041 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+<a name="l00042"></a>00042 }
+<a name="l00043"></a>00043 <span class="comment">// cout &lt;&lt; v[i] &lt;&lt; &#39; &#39;;</span>
+<a name="l00044"></a>00044 }
+<a name="l00045"></a>00045 <span class="keywordtype">int</span> check = 0;
+<a name="l00046"></a>00046 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; 16; i++)
+<a name="l00047"></a>00047 {
+<a name="l00048"></a>00048 <span class="keywordflow">if</span> ((i % 2) == 0)
+<a name="l00049"></a>00049 { <span class="comment">// even</span>
+<a name="l00050"></a>00050 v[i] *= 2;
+<a name="l00051"></a>00051 <span class="keywordflow">if</span> (v[i] &gt; 9)
+<a name="l00052"></a>00052 {
+<a name="l00053"></a>00053 v[i] -= 9; <span class="comment">// &quot;casting out nines&quot;</span>
+<a name="l00054"></a>00054 }
+<a name="l00055"></a>00055 }
+<a name="l00056"></a>00056 <span class="comment">// else unchanged if odd.</span>
+<a name="l00057"></a>00057 check += v[i]; <span class="comment">//</span>
+<a name="l00058"></a>00058 }
+<a name="l00059"></a>00059 <span class="comment">//cout &lt;&lt; &#39;\n&#39; &lt;&lt; check &lt;&lt; endl;</span>
+<a name="l00060"></a>00060 check %= 10; <span class="comment">// modulus 10</span>
+<a name="l00061"></a>00061 <span class="comment">// cout &lt;&lt; &#39; &#39; &lt;&lt; check &lt;&lt; endl;</span>
+<a name="l00062"></a>00062 <span class="keywordflow">return</span> (check == 0); <span class="comment">// true if check digit is correct.</span>
+<a name="l00063"></a>00063 } <span class="comment">// bool IBMcheck(string s)</span>
+<a name="l00064"></a>00064
+<a name="l00065"></a><a class="code" href="_i_b_m_check_8hpp.html#a6a90f1b7f7b88ba2e382bbebb5324726">00065</a> <span class="keywordtype">char</span> <a class="code" href="_i_b_m_check_8hpp.html#a6a90f1b7f7b88ba2e382bbebb5324726">IBMcompute</a>(<span class="keywordtype">string</span> s)
+<a name="l00066"></a>00066 { <span class="comment">// Compute check digit 0 to 9 for the string provided.</span>
+<a name="l00067"></a>00067 <span class="comment">// Might allow other size if remove whitespace and punctutation?</span>
+<a name="l00068"></a>00068 vector&lt;int&gt; v(15); <span class="comment">// To hold numeric values from character values in string s.</span>
+<a name="l00069"></a>00069 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; 15; i++)
+<a name="l00070"></a>00070 {
+<a name="l00071"></a>00071 <span class="keywordflow">if</span> (isdigit(s[i]))
+<a name="l00072"></a>00072 {
+<a name="l00073"></a>00073 v[i] = s[i] - <span class="charliteral">&#39;0&#39;</span>;
+<a name="l00074"></a>00074 }
+<a name="l00075"></a>00075 <span class="keywordflow">else</span>
+<a name="l00076"></a>00076 { <span class="comment">// throw?</span>
+<a name="l00077"></a>00077 <span class="comment">//return &#39;?&#39;;</span>
+<a name="l00078"></a>00078 <span class="comment">// ignore</span>
+<a name="l00079"></a>00079 }
+<a name="l00080"></a>00080 <span class="comment">// cout &lt;&lt; v[i] &lt;&lt; &#39; &#39;;</span>
+<a name="l00081"></a>00081 }
+<a name="l00082"></a>00082 <span class="keywordtype">int</span> check = 0;
+<a name="l00083"></a>00083 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; 15; i++)
+<a name="l00084"></a>00084 {
+<a name="l00085"></a>00085 <span class="keywordflow">if</span> ((i % 2) == 0)
+<a name="l00086"></a>00086 { <span class="comment">// even</span>
+<a name="l00087"></a>00087 v[i] *= 2;
+<a name="l00088"></a>00088 <span class="keywordflow">if</span> (v[i] &gt; 9)
+<a name="l00089"></a>00089 {
+<a name="l00090"></a>00090 v[i] -= 9; <span class="comment">// &quot;casting out nines&quot;</span>
+<a name="l00091"></a>00091 }
+<a name="l00092"></a>00092 }
+<a name="l00093"></a>00093 <span class="comment">// else unchanged if odd.</span>
+<a name="l00094"></a>00094 check += v[i]; <span class="comment">//</span>
+<a name="l00095"></a>00095 }
+<a name="l00096"></a>00096 <span class="comment">// cout &lt;&lt; &#39;\n&#39; &lt;&lt; check &lt;&lt; endl;</span>
+<a name="l00097"></a>00097
+<a name="l00098"></a>00098 check %= 10; <span class="comment">// modulus 10</span>
+<a name="l00099"></a>00099 <span class="comment">// cout &lt;&lt; &#39; &#39; &lt;&lt; check &lt;&lt; endl;</span>
+<a name="l00100"></a>00100 <span class="keywordflow">if</span> (check == 0) <span class="keywordflow">return</span> <span class="charliteral">&#39;0&#39;</span>;
+<a name="l00101"></a>00101 check = 10 - check;
+<a name="l00102"></a>00102 <span class="keywordflow">return</span> char(check + <span class="charliteral">&#39;0&#39;</span>);
+<a name="l00103"></a>00103 } <span class="comment">// char IBMcompute(string s)</span>
+<a name="l00104"></a>00104
+</pre></div></div>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_i_s_b_n___p_a_b_8hpp.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_i_s_b_n___p_a_b_8hpp.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,192 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+</div>
+<div class="header">
+ <div class="summary">
+Functions </div>
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/ISBN_PAB.hpp File Reference</div> </div>
+</div>
+<div class="contents">
+
+<p>Obselete versio of ISBN check and compute.
+More...</p>
+<div class="textblock"><code>#include &lt;string&gt;</code><br/>
+<code>#include &lt;vector&gt;</code><br/>
+<code>#include &lt;cctype&gt;</code><br/>
+</div>
+<p>Go to the source code of this file.</p>
+<table class="memberdecls">
+<tr><td colspan="2"><h2><a name="func-members"></a>
+Functions</h2></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_i_s_b_n___p_a_b_8hpp.html#a1f1469fc48332dfc7843706a6167c419">ISBNcheck</a> (string s)</td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_i_s_b_n___p_a_b_8hpp.html#a65325e046f7a6c18548994f06ca6977e">ISBNcompute</a> (string s)</td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_i_s_b_n___p_a_b_8hpp.html#a013d2166f9a512631ad20be97ec353b8">ISBNcheck</a> (std::string s)</td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_i_s_b_n___p_a_b_8hpp.html#af258b04e317dd24dafadf43337f16eb0">ISBNcompute</a> (std::string s)</td></tr>
+</table>
+<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
+<div class="textblock"><p>Obselete versio of ISBN check and compute. </p>
+
+<p>Definition in file <a class="el" href="_i_s_b_n___p_a_b_8hpp_source.html">ISBN_PAB.hpp</a>.</p>
+</div><hr/><h2>Function Documentation</h2>
+<a class="anchor" id="a1f1469fc48332dfc7843706a6167c419"></a><!-- doxytag: member="ISBN_PAB.hpp::ISBNcheck" ref="a1f1469fc48332dfc7843706a6167c419" args="(string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool ISBNcheck </td>
+ <td>(</td>
+ <td class="paramtype">string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+</div>
+</div>
+<a class="anchor" id="a013d2166f9a512631ad20be97ec353b8"></a><!-- doxytag: member="ISBN_PAB.hpp::ISBNcheck" ref="a013d2166f9a512631ad20be97ec353b8" args="(std::string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool ISBNcheck </td>
+ <td>(</td>
+ <td class="paramtype">std::string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Definition at line <a class="el" href="_i_s_b_n___p_a_b_8hpp_source.html#l00049">49</a> of file <a class="el" href="_i_s_b_n___p_a_b_8hpp_source.html">ISBN_PAB.hpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="af258b04e317dd24dafadf43337f16eb0"></a><!-- doxytag: member="ISBN_PAB.hpp::ISBNcompute" ref="af258b04e317dd24dafadf43337f16eb0" args="(std::string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">char ISBNcompute </td>
+ <td>(</td>
+ <td class="paramtype">std::string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Definition at line <a class="el" href="_i_s_b_n___p_a_b_8hpp_source.html#l00078">78</a> of file <a class="el" href="_i_s_b_n___p_a_b_8hpp_source.html">ISBN_PAB.hpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a65325e046f7a6c18548994f06ca6977e"></a><!-- doxytag: member="ISBN_PAB.hpp::ISBNcompute" ref="a65325e046f7a6c18548994f06ca6977e" args="(string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">char ISBNcompute </td>
+ <td>(</td>
+ <td class="paramtype">string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+</div>
+</div>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_i_s_b_n___p_a_b_8hpp_source.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_i_s_b_n___p_a_b_8hpp_source.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,208 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+<div class="header">
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/ISBN_PAB.hpp</div> </div>
+</div>
+<div class="contents">
+Go to the documentation of this file.<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// ISBN_PAB.hpp obselete version</span>
+<a name="l00002"></a>00002
+<a name="l00005"></a>00005
+<a name="l00006"></a>00006 <span class="comment">// Boost checks/isbn_pab.hpp header file ------------------------------------//</span>
+<a name="l00007"></a>00007
+<a name="l00008"></a>00008 <span class="comment">// (C) Copyright Paul A. Bristow, 2002, 2011</span>
+<a name="l00009"></a>00009
+<a name="l00010"></a>00010 <span class="comment">// Distributed under the Boost Software License, Version 1.0.</span>
+<a name="l00011"></a>00011 <span class="comment">// (See accompanying file LICENSE_1_0.txt</span>
+<a name="l00012"></a>00012 <span class="comment">// or copy at http://www.boost.org/LICENSE_1_0.txt>
+<a name="l00013"></a>00013
+<a name="l00014"></a>00014 <span class="comment">// The Standard Book Numbering Agency Ltd, London.</span>
+<a name="l00015"></a>00015 <span class="comment">// ISBN.org</span>
+<a name="l00016"></a>00016 <span class="comment">// Philip M. Tuchinsky, International Standard Book Numbers,</span>
+<a name="l00017"></a>00017 <span class="comment">// UMAP Journal 5(1985) 41-45, ISSN 0197-3622</span>
+<a name="l00018"></a>00018 <span class="comment">// ISO Standard International Standard Book Number 2108:1992.</span>
+<a name="l00019"></a>00019 <span class="comment">//
http://www.isbn.org/standards/home/isbn/digitalworld.asp>
+<a name="l00020"></a>00020 <span class="comment">// Length of the ISBN String/Check Digit</span>
+<a name="l00021"></a>00021
+<a name="l00022"></a>00022 <span class="comment">// In January 2005, the ISBN standard will expand the current 10-digit string of numbers to 13.</span>
+<a name="l00023"></a>00023 <span class="comment">// This action is being taken to increase the availability of new numbers</span>
+<a name="l00024"></a>00024 <span class="comment">// and to make the ISBN standard compatible with European standard numbering systems EAN13.</span>
+<a name="l00025"></a>00025 <span class="comment">// All ISBNs in the original pool of numbers will be prefaced</span>
+<a name="l00026"></a>00026 <span class="comment">// by the prefix &quot;978&quot; to accomplish this increase in digits.</span>
+<a name="l00027"></a>00027 <span class="comment">// All new ISBNs will be given a prefix &quot;979&quot;,</span>
+<a name="l00028"></a>00028 <span class="comment">// allowing the agency to effectively &quot;reuse&quot; the current pool of ISBNs.</span>
+<a name="l00029"></a>00029
+<a name="l00030"></a>00030
+<a name="l00031"></a>00031 <span class="comment">//#include &lt;iostream&gt; // test only.</span>
+<a name="l00032"></a>00032 <span class="comment">//using std::cout;</span>
+<a name="l00033"></a>00033 <span class="comment">//using std::endl;</span>
+<a name="l00034"></a>00034
+<a name="l00035"></a>00035 <span class="preprocessor">#include &lt;string&gt;</span>
+<a name="l00036"></a>00036 <span class="comment">//using std::string;</span>
+<a name="l00037"></a>00037
+<a name="l00038"></a>00038 <span class="preprocessor">#include &lt;vector&gt;</span>
+<a name="l00039"></a>00039 <span class="comment">//using std::vector;</span>
+<a name="l00040"></a>00040
+<a name="l00041"></a>00041 <span class="preprocessor">#include &lt;cctype&gt;</span>
+<a name="l00042"></a>00042 <span class="comment">// using std::isdigit and std::tolower</span>
+<a name="l00043"></a>00043
+<a name="l00044"></a>00044 <span class="comment">// Defines:</span>
+<a name="l00045"></a>00045 <span class="keywordtype">bool</span> <a class="code" href="checks__fwd_8hpp.html#a1f1469fc48332dfc7843706a6167c419">ISBNcheck</a>(<span class="keywordtype">string</span> s);
+<a name="l00046"></a>00046 <span class="keywordtype">char</span> <a class="code" href="checks__fwd_8hpp.html#a65325e046f7a6c18548994f06ca6977e">ISBNcompute</a>(<span class="keywordtype">string</span> s);
+<a name="l00047"></a>00047
+<a name="l00048"></a>00048
+<a name="l00049"></a><a class="code" href="_i_s_b_n___p_a_b_8hpp.html#a013d2166f9a512631ad20be97ec353b8">00049</a> <span class="keywordtype">bool</span> <a class="code" href="checks__fwd_8hpp.html#a1f1469fc48332dfc7843706a6167c419">ISBNcheck</a>(std::string s)
+<a name="l00050"></a>00050 { <span class="comment">// Check an existing ISBN string s</span>
+<a name="l00051"></a>00051 <span class="comment">// which includes a check digit 0 to 9 or X (=11)</span>
+<a name="l00052"></a>00052 std::vector&lt;int&gt; v(10);
+<a name="l00053"></a>00053 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; 10; i++)
+<a name="l00054"></a>00054 {
+<a name="l00055"></a>00055 <span class="keywordflow">if</span> (std::isdigit(s[i]))
+<a name="l00056"></a>00056 {
+<a name="l00057"></a>00057 v[i] = s[i] - <span class="charliteral">&#39;0&#39;</span>;
+<a name="l00058"></a>00058 }
+<a name="l00059"></a>00059 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (toupper(s[i] == <span class="charliteral">&#39;X&#39;</span>))
+<a name="l00060"></a>00060 {
+<a name="l00061"></a>00061 v[i] = 10;
+<a name="l00062"></a>00062 }
+<a name="l00063"></a>00063 <span class="keywordflow">else</span>
+<a name="l00064"></a>00064 { <span class="comment">// give up! (assumes no whitespace or punctuation).</span>
+<a name="l00065"></a>00065 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+<a name="l00066"></a>00066 }
+<a name="l00067"></a>00067 <span class="comment">// cout &lt;&lt; v[i] &lt;&lt; &#39; &#39;;</span>
+<a name="l00068"></a>00068 }
+<a name="l00069"></a>00069 <span class="keywordtype">int</span> check = 10 * v[0] + 9 * v[1] + 8 * v[2] + 7 * v[3] + 6 * v[4]
+<a name="l00070"></a>00070 + 5 * v[5] + 4 * v[6] + 3 * v[7] + 2 * v[8]
+<a name="l00071"></a>00071 + 1 * v[9]; <span class="comment">// check digit</span>
+<a name="l00072"></a>00072 <span class="comment">// std::cout &lt;&lt; &#39; &#39; &lt;&lt; check &lt;&lt; std::endl;</span>
+<a name="l00073"></a>00073 check %= 11; <span class="comment">// modulus 11</span>
+<a name="l00074"></a>00074 <span class="comment">// std::cout &lt;&lt; &#39; &#39; &lt;&lt; check &lt;&lt; std::endl;</span>
+<a name="l00075"></a>00075 <span class="keywordflow">return</span> (check == 0); <span class="comment">// true if check digit is correct.</span>
+<a name="l00076"></a>00076 } <span class="comment">// bool ISBNcheck(std::string s)</span>
+<a name="l00077"></a>00077
+<a name="l00078"></a><a class="code" href="_i_s_b_n___p_a_b_8hpp.html#af258b04e317dd24dafadf43337f16eb0">00078</a> <span class="keywordtype">char</span> <a class="code" href="checks__fwd_8hpp.html#a65325e046f7a6c18548994f06ca6977e">ISBNcompute</a>(std::string s)
+<a name="l00079"></a>00079 { <span class="comment">// Compute check digit 0 to 9 or X (=11) for the string provided.</span>
+<a name="l00080"></a>00080 <span class="keywordflow">if</span> (s.size() != 9)
+<a name="l00081"></a>00081 {
+<a name="l00082"></a>00082 <span class="keywordflow">return</span> -1; <span class="comment">// Must be exactly 9 digits (to be a 10 digit ISBN)</span>
+<a name="l00083"></a>00083 }
+<a name="l00084"></a>00084 <span class="comment">// Might allow other size if remove whitespace and punctutation?</span>
+<a name="l00085"></a>00085 std::vector&lt;int&gt; v(9);
+<a name="l00086"></a>00086 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; 9; i++)
+<a name="l00087"></a>00087 {
+<a name="l00088"></a>00088 <span class="keywordflow">if</span> (std::isdigit(s[i]))
+<a name="l00089"></a>00089 {
+<a name="l00090"></a>00090 v[i] = s[i] - <span class="charliteral">&#39;0&#39;</span>;
+<a name="l00091"></a>00091 }
+<a name="l00092"></a>00092 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (std::toupper(s[i] == <span class="charliteral">&#39;X&#39;</span>))
+<a name="l00093"></a>00093 {
+<a name="l00094"></a>00094 v[i] = 10;
+<a name="l00095"></a>00095 }
+<a name="l00096"></a>00096 <span class="keywordflow">else</span>
+<a name="l00097"></a>00097 { <span class="comment">// throw?</span>
+<a name="l00098"></a>00098 <span class="keywordflow">return</span> <span class="charliteral">&#39;?&#39;</span>;
+<a name="l00099"></a>00099 }
+<a name="l00100"></a>00100 <span class="comment">// cout &lt;&lt; v[i] &lt;&lt; &#39; &#39;;</span>
+<a name="l00101"></a>00101 }
+<a name="l00102"></a>00102 <span class="keywordtype">int</span> check = 10 * v[0] + 9 * v[1] + 8 * v[2] + 7 * v[3] + 6 * v[4]
+<a name="l00103"></a>00103 + 5 * v[5] + 4 * v[6] + 3 * v[7] + 2 * v[8];
+<a name="l00104"></a>00104
+<a name="l00105"></a>00105 <span class="comment">// std::cout &lt;&lt; &#39;\n&#39; &lt;&lt; check &lt;&lt; std::endl;</span>
+<a name="l00106"></a>00106
+<a name="l00107"></a>00107 check %= 11; <span class="comment">// modulus 11</span>
+<a name="l00108"></a>00108 <span class="comment">// std::cout &lt;&lt; &#39; &#39; &lt;&lt; check &lt;&lt; std::endl;</span>
+<a name="l00109"></a>00109 <span class="keywordflow">if</span> (check == 0) <span class="keywordflow">return</span> <span class="charliteral">&#39;0&#39;</span>;
+<a name="l00110"></a>00110 check = 11 - check;
+<a name="l00111"></a>00111 <span class="keywordflow">return</span> (check == 10) ? <span class="charliteral">&#39;X&#39;</span> : char(check + <span class="charliteral">&#39;0&#39;</span>);
+<a name="l00112"></a>00112 } <span class="comment">// char ISBNcomputer(std::string s)</span>
+<a name="l00113"></a>00113
+</pre></div></div>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!--
http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_i_s_s_n___p_a_b_8hpp.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_i_s_s_n___p_a_b_8hpp.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,150 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+</div>
+<div class="header">
+ <div class="summary">
+Functions </div>
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/ISSN_PAB.hpp File Reference</div> </div>
+</div>
+<div class="contents">
+<div class="textblock"><code>#include &lt;iostream&gt;</code><br/>
+<code>#include &lt;string&gt;</code><br/>
+<code>#include &lt;vector&gt;</code><br/>
+<code>#include &lt;cctype&gt;</code><br/>
+</div>
+<p>Go to the source code of this file.</p>
+<table class="memberdecls">
+<tr><td colspan="2"><h2><a name="func-members"></a>
+Functions</h2></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_i_s_s_n___p_a_b_8hpp.html#ad505888bf80c9107e42300f963276f54">ISSNcheck</a> (string s)</td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_i_s_s_n___p_a_b_8hpp.html#a3a09f9dbd9325f44a0fd0a485c116ad6">ISSNcompute</a> (string s)</td></tr>
+</table>
+<hr/><h2>Function Documentation</h2>
+<a class="anchor" id="ad505888bf80c9107e42300f963276f54"></a><!-- doxytag: member="ISSN_PAB.hpp::ISSNcheck" ref="ad505888bf80c9107e42300f963276f54" args="(string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool ISSNcheck </td>
+ <td>(</td>
+ <td class="paramtype">string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Definition at line <a class="el" href="_i_s_s_n___p_a_b_8hpp_source.html#l00029">29</a> of file <a class="el" href="_i_s_s_n___p_a_b_8hpp_source.html">ISSN_PAB.hpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a3a09f9dbd9325f44a0fd0a485c116ad6"></a><!-- doxytag: member="ISSN_PAB.hpp::ISSNcompute" ref="a3a09f9dbd9325f44a0fd0a485c116ad6" args="(string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">char ISSNcompute </td>
+ <td>(</td>
+ <td class="paramtype">string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Definition at line <a class="el" href="_i_s_s_n___p_a_b_8hpp_source.html#l00057">57</a> of file <a class="el" href="_i_s_s_n___p_a_b_8hpp_source.html">ISSN_PAB.hpp</a>.</p>
+
+</div>
+</div>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_i_s_s_n___p_a_b_8hpp_source.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_i_s_s_n___p_a_b_8hpp_source.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,191 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+<div class="header">
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/ISSN_PAB.hpp</div> </div>
+</div>
+<div class="contents">
+Go to the documentation of this file.<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// ISSN.hpp</span>
+<a name="l00002"></a>00002
+<a name="l00003"></a>00003 <span class="comment">// The Standard Book Numbering Agency Ltd, London.</span>
+<a name="l00004"></a>00004 <span class="comment">// Philip M. Tuchinsky, International Standard Book Numbers, UMAP Journal 5(1985) 41-45, ISSN 0197-3622</span>
+<a name="l00005"></a>00005 <span class="comment">// ISO Standard, International Standard Book Number 2108:1992.</span>
+<a name="l00006"></a>00006 <span class="comment">// http://www.issn.org:8080/English/pub/faqs/barcodes>
+<a name="l00007"></a>00007 <span class="comment">// EAN-13 codes start with 977, &quot;land of serial publications&quot;</span>
+<a name="l00008"></a>00008 <span class="comment">// for example ISSN 1144-875X GENCOD informations(Paris)</span>
+<a name="l00009"></a>00009 <span class="comment">// EAN-13 bar code is 9 771144 875007</span>
+<a name="l00010"></a>00010 <span class="comment">// ISSN Check digit, in this case X is removed from the ISSN,</span>
+<a name="l00011"></a>00011 <span class="comment">// 00 is price code (usually 00), 7 is EAN-13 check digit</span>
+<a name="l00012"></a>00012 <span class="comment">// and finally issue number 03 for March, for example.</span>
+<a name="l00013"></a>00013
+<a name="l00014"></a>00014 <span class="comment">// Defines:</span>
+<a name="l00015"></a>00015 <span class="keywordtype">bool</span> <a class="code" href="_i_s_s_n___p_a_b_8hpp.html#ad505888bf80c9107e42300f963276f54">ISSNcheck</a>(<span class="keywordtype">string</span> s);
+<a name="l00016"></a>00016 <span class="keywordtype">char</span> <a class="code" href="_i_s_s_n___p_a_b_8hpp.html#a3a09f9dbd9325f44a0fd0a485c116ad6">ISSNcompute</a>(<span class="keywordtype">string</span> s);
+<a name="l00017"></a>00017
+<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;iostream&gt;</span>
+<a name="l00019"></a>00019 <span class="preprocessor">#include &lt;string&gt;</span>
+<a name="l00020"></a>00020 <span class="preprocessor">#include &lt;vector&gt;</span>
+<a name="l00021"></a>00021 <span class="preprocessor">#include &lt;cctype&gt;</span> <span class="comment">// for isdigit and tolower</span>
+<a name="l00022"></a>00022
+<a name="l00023"></a>00023 <span class="keyword">using</span> std::string;
+<a name="l00024"></a>00024 <span class="keyword">using</span> std::vector;
+<a name="l00025"></a>00025
+<a name="l00026"></a>00026 <span class="keyword">using</span> std::cout; <span class="comment">// test only.</span>
+<a name="l00027"></a>00027 <span class="keyword">using</span> std::endl;
+<a name="l00028"></a>00028
+<a name="l00029"></a><a class="code" href="_i_s_s_n___p_a_b_8hpp.html#ad505888bf80c9107e42300f963276f54">00029</a> <span class="keywordtype">bool</span> <a class="code" href="_i_s_s_n___p_a_b_8hpp.html#ad505888bf80c9107e42300f963276f54">ISSNcheck</a>(<span class="keywordtype">string</span> s)
+<a name="l00030"></a>00030 { <span class="comment">// Check an existing ISSN string s</span>
+<a name="l00031"></a>00031 <span class="comment">// which includes a check digit 0 to 9 or X (=11)</span>
+<a name="l00032"></a>00032 vector&lt;int&gt; v(8);
+<a name="l00033"></a>00033 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; 8; i++)
+<a name="l00034"></a>00034 {
+<a name="l00035"></a>00035 <span class="keywordflow">if</span> (isdigit(s[i]))
+<a name="l00036"></a>00036 {
+<a name="l00037"></a>00037 v[i] = s[i] - <span class="charliteral">&#39;0&#39;</span>;
+<a name="l00038"></a>00038 }
+<a name="l00039"></a>00039 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (toupper(s[i] == <span class="charliteral">&#39;X&#39;</span>))
+<a name="l00040"></a>00040 {
+<a name="l00041"></a>00041 v[i] = 10;
+<a name="l00042"></a>00042 }
+<a name="l00043"></a>00043 <span class="keywordflow">else</span>
+<a name="l00044"></a>00044 { <span class="comment">// give up! (assumes no whitespace or punctuation).</span>
+<a name="l00045"></a>00045 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+<a name="l00046"></a>00046 }
+<a name="l00047"></a>00047 <span class="comment">// cout &lt;&lt; v[i] &lt;&lt; &#39; &#39;;</span>
+<a name="l00048"></a>00048 }
+<a name="l00049"></a>00049 <span class="keywordtype">int</span> check = 8 * v[0] + 7 * v[1] + 6 * v[2] + 5 * v[3] + 4 * v[4]
+<a name="l00050"></a>00050 + 3 * v[5] + 2 * v[6] + 1 * v[7];
+<a name="l00051"></a>00051 <span class="comment">//cout &lt;&lt; &#39; &#39; &lt;&lt; check &lt;&lt; endl;</span>
+<a name="l00052"></a>00052 check %= 11; <span class="comment">// modulus 11</span>
+<a name="l00053"></a>00053 <span class="comment">//cout &lt;&lt; &#39; &#39; &lt;&lt; check &lt;&lt; endl;</span>
+<a name="l00054"></a>00054 <span class="keywordflow">return</span> (check == 0); <span class="comment">// true if check digit is correct.</span>
+<a name="l00055"></a>00055 } <span class="comment">// bool ISSNcheck(string s)</span>
+<a name="l00056"></a>00056
+<a name="l00057"></a><a class="code" href="_i_s_s_n___p_a_b_8hpp.html#a3a09f9dbd9325f44a0fd0a485c116ad6">00057</a> <span class="keywordtype">char</span> <a class="code" href="_i_s_s_n___p_a_b_8hpp.html#a3a09f9dbd9325f44a0fd0a485c116ad6">ISSNcompute</a>(<span class="keywordtype">string</span> s)
+<a name="l00058"></a>00058 { <span class="comment">// Compute check digit 0 to 9 or X (=11) for the string provided.</span>
+<a name="l00059"></a>00059 <span class="keywordflow">if</span> (s.size() != 7)
+<a name="l00060"></a>00060 {
+<a name="l00061"></a>00061 <span class="keywordflow">return</span> <span class="charliteral">&#39;?&#39;</span> ; <span class="comment">// Must be exactly 7 digits (to be a 8 digit ISSN)</span>
+<a name="l00062"></a>00062 }
+<a name="l00063"></a>00063 <span class="comment">// Might allow other sizes if remove whitespace and punctutation?</span>
+<a name="l00064"></a>00064 vector&lt;int&gt; v(7);
+<a name="l00065"></a>00065 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; 7; i++)
+<a name="l00066"></a>00066 {
+<a name="l00067"></a>00067 <span class="keywordflow">if</span> (isdigit(s[i]))
+<a name="l00068"></a>00068 {
+<a name="l00069"></a>00069 v[i] = s[i] - <span class="charliteral">&#39;0&#39;</span>;
+<a name="l00070"></a>00070 }
+<a name="l00071"></a>00071 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (toupper(s[i] == <span class="charliteral">&#39;X&#39;</span>))
+<a name="l00072"></a>00072 {
+<a name="l00073"></a>00073 v[i] = 10;
+<a name="l00074"></a>00074 }
+<a name="l00075"></a>00075 <span class="keywordflow">else</span>
+<a name="l00076"></a>00076 { <span class="comment">// throw?</span>
+<a name="l00077"></a>00077 <span class="keywordflow">return</span> <span class="charliteral">&#39;?&#39;</span>;
+<a name="l00078"></a>00078 }
+<a name="l00079"></a>00079 <span class="comment">// cout &lt;&lt; v[i] &lt;&lt; &#39; &#39;;</span>
+<a name="l00080"></a>00080 }
+<a name="l00081"></a>00081 <span class="keywordtype">int</span> check = 8 * v[0] + 7 * v[1] + 6 * v[2] + 5 * v[3] + 4 * v[4] + 3 * v[5] + 2 * v[6];
+<a name="l00082"></a>00082
+<a name="l00083"></a>00083 check %= 11; <span class="comment">// modulus 11</span>
+<a name="l00084"></a>00084 <span class="keywordflow">if</span> (check == 0) <span class="keywordflow">return</span> <span class="charliteral">&#39;0&#39;</span>;
+<a name="l00085"></a>00085 check = 11 - check;
+<a name="l00086"></a>00086 <span class="keywordflow">return</span> (check == 10) ? <span class="charliteral">&#39;X&#39;</span> : char(check + <span class="charliteral">&#39;0&#39;</span>);
+<a name="l00087"></a>00087 <span class="comment">// return 3 * v[0] + 4 * v[1] + 5 * v[2] + 6 * v[3] + 7 * v[4] + 8 * v[5] + 9 * v[6];</span>
+<a name="l00088"></a>00088 <span class="comment">// L. Egghe &amp; R. Rousseau, Mathmetical and Computer Modelling, </span>
+<a name="l00089"></a>00089 <span class="comment">// 33 (2001), 943-955 ISSN 0895-7177 page 944,</span>
+<a name="l00090"></a>00090 <span class="comment">// equation 5 - simpler version of equation 4, the ISO standard.</span>
+<a name="l00091"></a>00091 } <span class="comment">// char ISSNcomputer(string s)</span>
+<a name="l00092"></a>00092
+<a name="l00093"></a>00093
+<a name="l00094"></a>00094
+</pre></div></div>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!--
http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_u_p_ccheck_8cpp.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_u_p_ccheck_8cpp.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,154 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+</div>
+<div class="header">
+ <div class="summary">
+Functions </div>
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/UPCcheck.cpp File Reference</div> </div>
+</div>
+<div class="contents">
+<div class="textblock"><code>#include &lt;iostream&gt;</code><br/>
+<code>#include &lt;string&gt;</code><br/>
+<code>#include &lt;vector&gt;</code><br/>
+<code>#include &lt;cassert&gt;</code><br/>
+<code>#include &lt;<a class="el" href="_u_p_ccheck_8hpp_source.html">boost/checks/UPCcheck.hpp</a>&gt;</code><br/>
+</div>
+<p>Go to the source code of this file.</p>
+<table class="memberdecls">
+<tr><td colspan="2"><h2><a name="func-members"></a>
+Functions</h2></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_u_p_ccheck_8cpp.html#ab82eabc7d7a42cb933a0e110bc6e1568">UPCcheck</a> (std::string s)</td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_u_p_ccheck_8cpp.html#a15fc9890db87638008c57d553c474eea">UPCcompute</a> (std::string s)</td></tr>
+</table>
+<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
+<div class="textblock">
+<p>Definition in file <a class="el" href="_u_p_ccheck_8cpp_source.html">UPCcheck.cpp</a>.</p>
+</div><hr/><h2>Function Documentation</h2>
+<a class="anchor" id="ab82eabc7d7a42cb933a0e110bc6e1568"></a><!-- doxytag: member="UPCcheck.cpp::UPCcheck" ref="ab82eabc7d7a42cb933a0e110bc6e1568" args="(std::string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool UPCcheck </td>
+ <td>(</td>
+ <td class="paramtype">std::string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Definition at line <a class="el" href="_u_p_ccheck_8cpp_source.html#l00034">34</a> of file <a class="el" href="_u_p_ccheck_8cpp_source.html">UPCcheck.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a15fc9890db87638008c57d553c474eea"></a><!-- doxytag: member="UPCcheck.cpp::UPCcompute" ref="a15fc9890db87638008c57d553c474eea" args="(std::string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">char UPCcompute </td>
+ <td>(</td>
+ <td class="paramtype">std::string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Definition at line <a class="el" href="_u_p_ccheck_8cpp_source.html#l00067">67</a> of file <a class="el" href="_u_p_ccheck_8cpp_source.html">UPCcheck.cpp</a>.</p>
+
+</div>
+</div>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_u_p_ccheck_8cpp_source.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_u_p_ccheck_8cpp_source.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,193 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+<div class="header">
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/UPCcheck.cpp</div> </div>
+</div>
+<div class="contents">
+Go to the documentation of this file.<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
+<a name="l00002"></a>00002
+<a name="l00003"></a>00003 <span class="comment">// Copyright Paul A. Bristow 2011.</span>
+<a name="l00004"></a>00004
+<a name="l00005"></a>00005 <span class="comment">// Use, modification and distribution are subject to the</span>
+<a name="l00006"></a>00006 <span class="comment">// Boost Software License, Version 1.0.</span>
+<a name="l00007"></a>00007 <span class="comment">// (See accompanying file LICENSE_1_0.txt</span>
+<a name="l00008"></a>00008 <span class="comment">// or copy at http://www.boost.org/LICENSE_1_0.txt)</span>
+<a name="l00009"></a>00009
+<a name="l00010"></a>00010 <span class="comment">// UPC check</span>
+<a name="l00011"></a>00011
+<a name="l00012"></a>00012 <span class="comment">// Universal Product Code</span>
+<a name="l00013"></a>00013 <span class="comment">// UPC Symbol Specification Manual, Uniform Code Council, Dayton, Ohio, USA.</span>
+<a name="l00014"></a>00014 <span class="comment">// M. Blocksma, Reading the Numbers, Penguin, New York 1989.</span>
+<a name="l00015"></a>00015 <span class="comment">// Joseph A Gallian, ACM Computing Surveys, 28(3), 504-517 (Sep 1996)</span>
+<a name="l00016"></a>00016 <span class="comment">// Section 2, page 505 example of Kellogs Low fat Granola 03800013710 &amp; check digit 5.</span>
+<a name="l00017"></a>00017
+<a name="l00018"></a>00018 <span class="comment">// Shipping code adds a second using modulo 103 arithmetic.</span>
+<a name="l00019"></a>00019 <span class="comment">// USS-128 Uniform Symbology Specification, p5,</span>
+<a name="l00020"></a>00020 <span class="comment">// Uniform Code Couuncil, Ohio, USA. (1986)</span>
+<a name="l00021"></a>00021
+<a name="l00022"></a>00022 <span class="preprocessor">#include &lt;iostream&gt;</span> <span class="comment">// For testing only.</span>
+<a name="l00023"></a>00023 <span class="keyword">using</span> std::cout; <span class="comment">// For testing only.</span>
+<a name="l00024"></a>00024 <span class="keyword">using</span> std::endl; <span class="comment">// For testing only.</span>
+<a name="l00025"></a>00025 <span class="preprocessor">#include &lt;string&gt;</span>
+<a name="l00026"></a>00026 <span class="comment">// using std::string;</span>
+<a name="l00027"></a>00027 <span class="preprocessor">#include &lt;vector&gt;</span>
+<a name="l00028"></a>00028 <span class="comment">//using std::vector;</span>
+<a name="l00029"></a>00029 <span class="preprocessor">#include &lt;cassert&gt;</span>
+<a name="l00030"></a>00030
+<a name="l00031"></a>00031 <span class="preprocessor">#include &lt;<a class="code" href="_u_p_ccheck_8hpp.html">boost/checks/UPCcheck.hpp</a>&gt;</span> <span class="comment">// Declarations of bool UPCcheck(string s);</span>
+<a name="l00032"></a>00032 <span class="comment">// &amp; char UPCcompute(string s);</span>
+<a name="l00033"></a>00033
+<a name="l00034"></a><a class="code" href="_u_p_ccheck_8hpp.html#ab82eabc7d7a42cb933a0e110bc6e1568">00034</a> <span class="keywordtype">bool</span> <a class="code" href="_u_p_ccheck_8cpp.html#ab82eabc7d7a42cb933a0e110bc6e1568">UPCcheck</a>(std::string s)
+<a name="l00035"></a>00035 { <span class="comment">// Check that a UPC includes the correct check digit.</span>
+<a name="l00036"></a>00036 <span class="keywordflow">if</span> (s.size() != 12)
+<a name="l00037"></a>00037 { <span class="comment">// Must be exactly 11 decimal digits + one decimal check digit.</span>
+<a name="l00038"></a>00038 cout &lt;&lt; <span class="stringliteral">&quot;length is &quot;</span> &lt;&lt; <span class="keywordtype">unsigned</span> int(s.size()) &lt;&lt; <span class="stringliteral">&quot; ! but must be exactly 12.&quot;</span>&lt;&lt; endl;
+<a name="l00039"></a>00039 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+<a name="l00040"></a>00040 }
+<a name="l00041"></a>00041 std::vector&lt;int&gt; v (12);
+<a name="l00042"></a>00042 assert(v.size() == 12);
+<a name="l00043"></a>00043 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; 12; i++)
+<a name="l00044"></a>00044 {
+<a name="l00045"></a>00045 <span class="keywordtype">char</span> d = s[i];
+<a name="l00046"></a>00046 <span class="keywordflow">if</span> (isdigit(d))
+<a name="l00047"></a>00047 {
+<a name="l00048"></a>00048 <span class="keywordtype">int</span> c = d - int(<span class="charliteral">&#39;0&#39;</span>);
+<a name="l00049"></a>00049 <span class="comment">//v.push_back(c);</span>
+<a name="l00050"></a>00050 v[i] = c;
+<a name="l00051"></a>00051 }
+<a name="l00052"></a>00052 <span class="keywordflow">else</span>
+<a name="l00053"></a>00053 { <span class="comment">// Unexpected character in string!</span>
+<a name="l00054"></a>00054 cout &lt;&lt; <span class="stringliteral">&quot; Unexpected char &quot;</span> &lt;&lt; s[i] &lt;&lt; endl;
+<a name="l00055"></a>00055 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+<a name="l00056"></a>00056 }
+<a name="l00057"></a>00057 }
+<a name="l00058"></a>00058 <span class="keywordtype">int</span> check = (v[0] * 3 + v[1] * 1 + v[2] * 3 + v[3] * 1 + v[4] * 3 + v[5] * 1
+<a name="l00059"></a>00059 + v[6] * 3 + v[7] * 1 + v[8] * 3 + v[9] * 1 + v[10] * 3
+<a name="l00060"></a>00060 + v[11] * 1); <span class="comment">// the 12th decimal check digit.</span>
+<a name="l00061"></a>00061 <span class="comment">// cout &lt;&lt; check &lt;&lt; endl;</span>
+<a name="l00062"></a>00062 check %= 10; <span class="comment">// modulus 10 because a decimal check digit.</span>
+<a name="l00063"></a>00063 <span class="comment">//cout &lt;&lt; check &lt;&lt; endl;</span>
+<a name="l00064"></a>00064 <span class="keywordflow">return</span> bool(check == 0);
+<a name="l00065"></a>00065 } <span class="comment">// bool UPCcheck(string s)</span>
+<a name="l00066"></a>00066
+<a name="l00067"></a><a class="code" href="_u_p_ccheck_8hpp.html#a15fc9890db87638008c57d553c474eea">00067</a> <span class="keywordtype">char</span> <a class="code" href="_u_p_ccheck_8cpp.html#a15fc9890db87638008c57d553c474eea">UPCcompute</a>(std::string s)
+<a name="l00068"></a>00068 { <span class="comment">// Compute UPC check digit.</span>
+<a name="l00069"></a>00069 <span class="keywordflow">if</span> (s.size() != 11)
+<a name="l00070"></a>00070 { <span class="comment">// Must be exactly 11 decimal digits.</span>
+<a name="l00071"></a>00071 cout &lt;&lt; <span class="stringliteral">&quot;UPC length is &quot;</span> &lt;&lt; <span class="keywordtype">unsigned</span> int(s.size()) &lt;&lt; <span class="stringliteral">&quot;! but should be exactly 11.&quot;</span> &lt;&lt; endl;
+<a name="l00072"></a>00072 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+<a name="l00073"></a>00073 }
+<a name="l00074"></a>00074 std::vector&lt;int&gt; v (12);
+<a name="l00075"></a>00075 assert(v.size() == 12); <span class="comment">// Exactly 11 digits required,</span>
+<a name="l00076"></a>00076 <span class="comment">// but leave one space for check digit too.</span>
+<a name="l00077"></a>00077 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; 10; i++)
+<a name="l00078"></a>00078 {
+<a name="l00079"></a>00079 <span class="keywordflow">if</span> (isdigit(s[i]))
+<a name="l00080"></a>00080 {
+<a name="l00081"></a>00081 v[i] = s[i] - int(<span class="charliteral">&#39;0&#39;</span>);
+<a name="l00082"></a>00082 }
+<a name="l00083"></a>00083 <span class="keywordflow">else</span>
+<a name="l00084"></a>00084 { <span class="comment">// Unexpected character in string!</span>
+<a name="l00085"></a>00085 cout &lt;&lt; <span class="stringliteral">&quot; unexpected char &quot;</span> &lt;&lt; s[i] &lt;&lt; endl;
+<a name="l00086"></a>00086 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+<a name="l00087"></a>00087 }
+<a name="l00088"></a>00088 }
+<a name="l00089"></a>00089 <span class="keywordtype">int</span> check = (v[0] * 3 + v[1] * 1 + v[2] * 3 + v[3] * 1 + v[4] * 3 + v[5] * 1
+<a name="l00090"></a>00090 + v[6] * 3 + v[7] * 1 + v[8] * 3 + v[9] * 1 + v[10] * 3);
+<a name="l00091"></a>00091 <span class="comment">// cout &lt;&lt;&quot;check int before mod &quot; &lt;&lt; check &lt;&lt; endl;</span>
+<a name="l00092"></a>00092 check %= 10; <span class="comment">// modulus 10 so can be a decimal digit.</span>
+<a name="l00093"></a>00093 check = (check != 0) ? 10 - check : 0;
+<a name="l00094"></a>00094 <span class="comment">// cout &lt;&lt; check &lt;&lt; endl;</span>
+<a name="l00095"></a>00095 <span class="keywordflow">return</span> char(check + <span class="charliteral">&#39;0&#39;</span>); <span class="comment">// ASCII &#39;0&#39; to &#39;9&#39;</span>
+<a name="l00096"></a>00096 } <span class="comment">// bool UPCcompute(string s)</span>
+</pre></div></div>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_u_p_ccheck_8hpp.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_u_p_ccheck_8hpp.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,150 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+</div>
+<div class="header">
+ <div class="summary">
+Functions </div>
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/UPCcheck.hpp File Reference</div> </div>
+</div>
+<div class="contents">
+<div class="textblock"><code>#include &lt;string&gt;</code><br/>
+</div>
+<p>Go to the source code of this file.</p>
+<table class="memberdecls">
+<tr><td colspan="2"><h2><a name="func-members"></a>
+Functions</h2></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_u_p_ccheck_8hpp.html#ab82eabc7d7a42cb933a0e110bc6e1568">UPCcheck</a> (std::string s)</td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_u_p_ccheck_8hpp.html#a15fc9890db87638008c57d553c474eea">UPCcompute</a> (std::string s)</td></tr>
+</table>
+<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
+<div class="textblock">
+<p>Definition in file <a class="el" href="_u_p_ccheck_8hpp_source.html">UPCcheck.hpp</a>.</p>
+</div><hr/><h2>Function Documentation</h2>
+<a class="anchor" id="ab82eabc7d7a42cb933a0e110bc6e1568"></a><!-- doxytag: member="UPCcheck.hpp::UPCcheck" ref="ab82eabc7d7a42cb933a0e110bc6e1568" args="(std::string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool UPCcheck </td>
+ <td>(</td>
+ <td class="paramtype">std::string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Definition at line <a class="el" href="_u_p_ccheck_8cpp_source.html#l00034">34</a> of file <a class="el" href="_u_p_ccheck_8cpp_source.html">UPCcheck.cpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a15fc9890db87638008c57d553c474eea"></a><!-- doxytag: member="UPCcheck.hpp::UPCcompute" ref="a15fc9890db87638008c57d553c474eea" args="(std::string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">char UPCcompute </td>
+ <td>(</td>
+ <td class="paramtype">std::string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Definition at line <a class="el" href="_u_p_ccheck_8cpp_source.html#l00067">67</a> of file <a class="el" href="_u_p_ccheck_8cpp_source.html">UPCcheck.cpp</a>.</p>
+
+</div>
+</div>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_u_p_ccheck_8hpp_source.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_u_p_ccheck_8hpp_source.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,118 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+<div class="header">
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/UPCcheck.hpp</div> </div>
+</div>
+<div class="contents">
+Go to the documentation of this file.<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001
+<a name="l00002"></a>00002
+<a name="l00003"></a>00003 <span class="comment">// Copyright Paul A. Bristow 2011.</span>
+<a name="l00004"></a>00004
+<a name="l00005"></a>00005 <span class="comment">// Use, modification and distribution are subject to the</span>
+<a name="l00006"></a>00006 <span class="comment">// Boost Software License, Version 1.0.</span>
+<a name="l00007"></a>00007 <span class="comment">// (See accompanying file LICENSE_1_0.txt</span>
+<a name="l00008"></a>00008 <span class="comment">// or copy at http://www.boost.org/LICENSE_1_0.txt)</span>
+<a name="l00009"></a>00009
+<a name="l00010"></a>00010 <span class="comment">// UPCcheck.hpp</span>
+<a name="l00011"></a>00011
+<a name="l00012"></a>00012 <span class="comment">// Universal Product Code UPC check</span>
+<a name="l00013"></a>00013 <span class="comment">// UPC Symbol Specification Manual, Uniform Code Council, Dayton, Ohio, USA.</span>
+<a name="l00014"></a>00014 <span class="comment">// M. Blocksma, Reading the Numbers, Penguin, New York 1989.</span>
+<a name="l00015"></a>00015 <span class="comment">// Joseph A Gallian, ACM Computing Surveys, 28(3), 504-517 (Sep 1996)</span>
+<a name="l00016"></a>00016 <span class="comment">// Section 2</span>
+<a name="l00017"></a>00017
+<a name="l00018"></a>00018 <span class="preprocessor">#include &lt;string&gt;</span>
+<a name="l00019"></a>00019
+<a name="l00020"></a>00020 <span class="keywordtype">bool</span> <a class="code" href="_u_p_ccheck_8cpp.html#ab82eabc7d7a42cb933a0e110bc6e1568">UPCcheck</a>(std::string s);
+<a name="l00021"></a>00021 <span class="keywordtype">char</span> <a class="code" href="_u_p_ccheck_8cpp.html#a15fc9890db87638008c57d553c474eea">UPCcompute</a>(std::string s);
+</pre></div></div>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_v_i_s_a_check_8hpp.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_v_i_s_a_check_8hpp.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,184 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+</div>
+<div class="header">
+ <div class="summary">
+Functions &#124;
+Variables </div>
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/VISACheck.hpp File Reference</div> </div>
+</div>
+<div class="contents">
+<div class="textblock"><code>#include &lt;string&gt;</code><br/>
+<code>#include &lt;vector&gt;</code><br/>
+<code>#include &lt;cctype&gt;</code><br/>
+</div>
+<p>Go to the source code of this file.</p>
+<table class="memberdecls">
+<tr><td colspan="2"><h2><a name="func-members"></a>
+Functions</h2></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_v_i_s_a_check_8hpp.html#a52fe2a762412840a5fff6cba0ea7b2fc">VISAcheck</a> (string s)</td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_v_i_s_a_check_8hpp.html#a999d59d5afb776a9a2254b09b01746d0">VISAcompute</a> (string s)</td></tr>
+<tr><td colspan="2"><h2><a name="var-members"></a>
+Variables</h2></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="_v_i_s_a_check_8hpp.html#aed37740d17e9a973283c0d6ec48ec950">perm</a> [10]</td></tr>
+</table>
+<hr/><h2>Function Documentation</h2>
+<a class="anchor" id="a52fe2a762412840a5fff6cba0ea7b2fc"></a><!-- doxytag: member="VISACheck.hpp::VISAcheck" ref="a52fe2a762412840a5fff6cba0ea7b2fc" args="(string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">bool VISAcheck </td>
+ <td>(</td>
+ <td class="paramtype">string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Definition at line <a class="el" href="_v_i_s_a_check_8hpp_source.html#l00041">41</a> of file <a class="el" href="_v_i_s_a_check_8hpp_source.html">VISACheck.hpp</a>.</p>
+
+</div>
+</div>
+<a class="anchor" id="a999d59d5afb776a9a2254b09b01746d0"></a><!-- doxytag: member="VISACheck.hpp::VISAcompute" ref="a999d59d5afb776a9a2254b09b01746d0" args="(string s)" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">char VISAcompute </td>
+ <td>(</td>
+ <td class="paramtype">string&#160;</td>
+ <td class="paramname"><em>s</em></td><td>)</td>
+ <td></td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+
+<p>Definition at line <a class="el" href="_v_i_s_a_check_8hpp_source.html#l00087">87</a> of file <a class="el" href="_v_i_s_a_check_8hpp_source.html">VISACheck.hpp</a>.</p>
+
+</div>
+</div>
+<hr/><h2>Variable Documentation</h2>
+<a class="anchor" id="aed37740d17e9a973283c0d6ec48ec950"></a><!-- doxytag: member="VISACheck.hpp::perm" ref="aed37740d17e9a973283c0d6ec48ec950" args="[10]" -->
+<div class="memitem">
+<div class="memproto">
+ <table class="memname">
+ <tr>
+ <td class="memname">int <a class="el" href="_v_i_s_a_check_8hpp.html#aed37740d17e9a973283c0d6ec48ec950">perm</a>[10]</td>
+ </tr>
+ </table>
+</div>
+<div class="memdoc">
+<b>Initial value:</b><div class="fragment"><pre class="fragment">
+{
+
+
+ 0,
+ 2,
+ 4,
+ 6,
+ 8,
+ 1,
+ 3,
+ 5,
+ 7,
+ 9,
+}
+</pre></div>
+<p>Definition at line <a class="el" href="_v_i_s_a_check_8hpp_source.html#l00025">25</a> of file <a class="el" href="_v_i_s_a_check_8hpp_source.html">VISACheck.hpp</a>.</p>
+
+</div>
+</div>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_v_i_s_a_check_8hpp_source.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/_v_i_s_a_check_8hpp_source.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,366 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+<div class="header">
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/VISACheck.hpp</div> </div>
+</div>
+<div class="contents">
+Go to the documentation of this file.<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// IBM check used by Mastercard, VISA, and most other credit card companies.</span>
+<a name="l00002"></a>00002 <span class="comment">// Version using Joseph A. Gallian permutations, rather than &#39;casting out nines&#39;</span>
+<a name="l00003"></a>00003 <span class="comment">// See Error Detection Methods, Joseph A. Gallian,</span>
+<a name="l00004"></a>00004 <span class="comment">// ACM computing Surveys, 28(3) 504-517 (Sep 1996)</span>
+<a name="l00005"></a>00005 <span class="comment">// ISSN 0360-0300</span>
+<a name="l00006"></a>00006
+<a name="l00007"></a>00007 <span class="comment">// Is an even/odd weighted code.</span>
+<a name="l00008"></a>00008
+<a name="l00009"></a>00009 <span class="comment">// Digits in the even positions (numbering from the right) are multiplied by 2,</span>
+<a name="l00010"></a>00010 <span class="comment">// then reduced to a single digit (if &gt; 9) by &quot;casting out nines&quot;</span>
+<a name="l00011"></a>00011 <span class="comment">// (subtracting 9, which is equivalent to adding the digits).</span>
+<a name="l00012"></a>00012 <span class="comment">// All digits are them summed</span>
+<a name="l00013"></a>00013 <span class="comment">// and a check digit added to make the result evenly divisble by 10.</span>
+<a name="l00014"></a>00014
+<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;string&gt;</span>
+<a name="l00016"></a>00016 <span class="preprocessor">#include &lt;vector&gt;</span>
+<a name="l00017"></a>00017 <span class="preprocessor">#include &lt;cctype&gt;</span> <span class="comment">// isdigit, isspace, tolower</span>
+<a name="l00018"></a>00018
+<a name="l00019"></a>00019 <span class="keyword">using</span> std::string;
+<a name="l00020"></a>00020 <span class="keyword">using</span> std::vector;
+<a name="l00021"></a>00021
+<a name="l00022"></a>00022 <span class="keyword">using</span> std::cout;
+<a name="l00023"></a>00023 <span class="keyword">using</span> std::endl;
+<a name="l00024"></a>00024
+<a name="l00025"></a><a class="code" href="_v_i_s_a_check_8hpp.html#aed37740d17e9a973283c0d6ec48ec950">00025</a> <span class="keywordtype">int</span> <a class="code" href="_v_i_s_a_check_8hpp.html#aed37740d17e9a973283c0d6ec48ec950">perm</a>[10] =
+<a name="l00026"></a>00026 { <span class="comment">// J A Gallian &amp; S Winters, (1988), Amer. Math. Monthly 95, 548-551.</span>
+<a name="l00027"></a>00027 <span class="comment">// A. Ecker &amp; G. Poch, Check Characeter system, Computing, 37, 277-301 (1986)</span>
+<a name="l00028"></a>00028 <span class="comment">// if digit == 0, add 0, if digit is 1, add 2 to check.</span>
+<a name="l00029"></a>00029 0, <span class="comment">// s(0) = 0 page 506 section 3, Credit card scheme.</span>
+<a name="l00030"></a>00030 2, <span class="comment">// s(1) = 2 </span>
+<a name="l00031"></a>00031 4, <span class="comment">// s(2) = 4</span>
+<a name="l00032"></a>00032 6, <span class="comment">// s(3) = 6</span>
+<a name="l00033"></a>00033 8, <span class="comment">// s(4) = 8</span>
+<a name="l00034"></a>00034 1, <span class="comment">// s(5) = 1</span>
+<a name="l00035"></a>00035 3, <span class="comment">// s(6) = 3</span>
+<a name="l00036"></a>00036 5, <span class="comment">// s(7) = 5</span>
+<a name="l00037"></a>00037 7, <span class="comment">// s(8) = 7</span>
+<a name="l00038"></a>00038 9, <span class="comment">// s(9) = 9</span>
+<a name="l00039"></a>00039 };
+<a name="l00040"></a>00040
+<a name="l00041"></a><a class="code" href="_v_i_s_a_check_8hpp.html#a52fe2a762412840a5fff6cba0ea7b2fc">00041</a> <span class="keywordtype">bool</span> <a class="code" href="_v_i_s_a_check_8hpp.html#a52fe2a762412840a5fff6cba0ea7b2fc">VISAcheck</a>(<span class="keywordtype">string</span> s)
+<a name="l00042"></a>00042 { <span class="comment">// Check an existing IBM check string s</span>
+<a name="l00043"></a>00043 <span class="comment">// which includes a check digit 0 to 9.</span>
+<a name="l00044"></a>00044 <span class="comment">// const int n = 8; // n-1 digits, plus 1 nth check digit.</span>
+<a name="l00045"></a>00045 <span class="keyword">const</span> <span class="keywordtype">int</span> n = int(s.size()); <span class="comment">// including check digit, so do all n digits.</span>
+<a name="l00046"></a>00046 <span class="comment">// cout &lt;&lt; &quot;Check n = &quot; &lt;&lt; n &lt;&lt; endl;</span>
+<a name="l00047"></a>00047 <span class="comment">// 16 for credit card numbers.</span>
+<a name="l00048"></a>00048 vector&lt;int&gt; v(n);
+<a name="l00049"></a>00049 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; n; i++)
+<a name="l00050"></a>00050 { <span class="comment">// Convert decimal digit characters in string to integers in vector.</span>
+<a name="l00051"></a>00051 <span class="keywordflow">if</span> (isdigit(s[i]))
+<a name="l00052"></a>00052 {
+<a name="l00053"></a>00053 v[i] = s[i] - <span class="charliteral">&#39;0&#39;</span>;
+<a name="l00054"></a>00054 }
+<a name="l00055"></a>00055 <span class="keywordflow">else</span> <span class="keywordflow">if</span> (toupper(s[i] == <span class="charliteral">&#39;X&#39;</span>))
+<a name="l00056"></a>00056 {
+<a name="l00057"></a>00057 v[i] = 10;
+<a name="l00058"></a>00058 }
+<a name="l00059"></a>00059 <span class="keywordflow">else</span>
+<a name="l00060"></a>00060 { <span class="comment">// give up! (assumes no whitespace or punctuation).</span>
+<a name="l00061"></a>00061 <span class="keywordflow">return</span> <span class="keyword">false</span>;
+<a name="l00062"></a>00062 }
+<a name="l00063"></a>00063 <span class="comment">//cout &lt;&lt; v[i] &lt;&lt; &#39; &#39;;</span>
+<a name="l00064"></a>00064 }
+<a name="l00065"></a>00065 <span class="comment">//cout &lt;&lt; endl;</span>
+<a name="l00066"></a>00066 <span class="keywordtype">int</span> check = 0;
+<a name="l00067"></a>00067 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; n; i++)
+<a name="l00068"></a>00068 { <span class="comment">// Assumes n (total including check digit) is even.</span>
+<a name="l00069"></a>00069 <span class="comment">// Permute the even numbered digits instead if n is odd.</span>
+<a name="l00070"></a>00070 <span class="keywordflow">if</span> ((i % 2) == 0)
+<a name="l00071"></a>00071 { <span class="comment">// i is even, odd numbered digits (counting 1, 2, 3 ... n) are permuted.</span>
+<a name="l00072"></a>00072 <span class="comment">// cout &lt;&lt; v[i] &lt;&lt; &#39; &#39; &lt;&lt; perm[v[i]] &lt;&lt; endl;</span>
+<a name="l00073"></a>00073 check += <a class="code" href="_v_i_s_a_check_8hpp.html#aed37740d17e9a973283c0d6ec48ec950">perm</a>[v[i]];
+<a name="l00074"></a>00074 }
+<a name="l00075"></a>00075 <span class="keywordflow">else</span>
+<a name="l00076"></a>00076 { <span class="comment">// even numbered digits (counting 1, 2, 3 ... n) are unchanged.</span>
+<a name="l00077"></a>00077 <span class="comment">// cout &lt;&lt; v[i] &lt;&lt; endl;</span>
+<a name="l00078"></a>00078 check += v[i]; <span class="comment">//</span>
+<a name="l00079"></a>00079 }
+<a name="l00080"></a>00080 }
+<a name="l00081"></a>00081 <span class="comment">// cout &lt;&lt; &#39;\n&#39; &lt;&lt; check &lt;&lt; endl;</span>
+<a name="l00082"></a>00082 check %= 10; <span class="comment">// modulus 10</span>
+<a name="l00083"></a>00083 <span class="comment">// cout &lt;&lt; &#39; &#39; &lt;&lt; check &lt;&lt; endl;</span>
+<a name="l00084"></a>00084 <span class="keywordflow">return</span> (check == 0); <span class="comment">// true if check digit is correct.</span>
+<a name="l00085"></a>00085 } <span class="comment">// bool IBMcheck(string s)</span>
+<a name="l00086"></a>00086
+<a name="l00087"></a><a class="code" href="_v_i_s_a_check_8hpp.html#a999d59d5afb776a9a2254b09b01746d0">00087</a> <span class="keywordtype">char</span> <a class="code" href="_v_i_s_a_check_8hpp.html#a999d59d5afb776a9a2254b09b01746d0">VISAcompute</a>(<span class="keywordtype">string</span> s)
+<a name="l00088"></a>00088 { <span class="comment">// Compute check digit 0 to 9 for the string provided.</span>
+<a name="l00089"></a>00089 <span class="comment">// Might allow other size if remove whitespace and punctutation?</span>
+<a name="l00090"></a>00090 <span class="comment">// const int n = 8; // including check digit, so only do n-1 digits.</span>
+<a name="l00091"></a>00091 <span class="keyword">const</span> <span class="keywordtype">int</span> n = int(s.size() +1); <span class="comment">// including check digit, so only do n-1 digits.</span>
+<a name="l00092"></a>00092 <span class="comment">// cout &lt;&lt; &quot;compute n = &quot; &lt;&lt; n &lt;&lt; endl;</span>
+<a name="l00093"></a>00093
+<a name="l00094"></a>00094 vector&lt;int&gt; v(n-1); <span class="comment">// To hold numeric values from character values in string s.</span>
+<a name="l00095"></a>00095 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; n-1; i++)
+<a name="l00096"></a>00096 {
+<a name="l00097"></a>00097 <span class="keywordflow">if</span> (isdigit(s[i]))
+<a name="l00098"></a>00098 {
+<a name="l00099"></a>00099 v[i] = s[i] - <span class="charliteral">&#39;0&#39;</span>;
+<a name="l00100"></a>00100 }
+<a name="l00101"></a>00101 <span class="keywordflow">else</span>
+<a name="l00102"></a>00102 { <span class="comment">// throw?</span>
+<a name="l00103"></a>00103 <span class="comment">//return &#39;?&#39;;</span>
+<a name="l00104"></a>00104 <span class="comment">// ignore</span>
+<a name="l00105"></a>00105 }
+<a name="l00106"></a>00106 <span class="comment">// cout &lt;&lt; v[i] &lt;&lt; &#39; &#39;;</span>
+<a name="l00107"></a>00107 }
+<a name="l00108"></a>00108 <span class="keywordtype">int</span> check = 0;
+<a name="l00109"></a>00109 <span class="keywordflow">for</span> (<span class="keywordtype">int</span> i = 0; i &lt; n-1; i++)
+<a name="l00110"></a>00110 { <span class="comment">// Assumes n (total including check digit) is even.</span>
+<a name="l00111"></a>00111 <span class="comment">// Permute the even numbered digits instead if n is odd.</span>
+<a name="l00112"></a>00112 <span class="keywordflow">if</span> ((i % 2) == 0)
+<a name="l00113"></a>00113 { <span class="comment">// i is even, odd numbered digits (counting 1, 2, 3 ... n) are permuted.</span>
+<a name="l00114"></a>00114 <span class="comment">// cout &lt;&lt; v[i] &lt;&lt; &#39; &#39; &lt;&lt; perm[v[i]] &lt;&lt; endl;</span>
+<a name="l00115"></a>00115 check += <a class="code" href="_v_i_s_a_check_8hpp.html#aed37740d17e9a973283c0d6ec48ec950">perm</a>[v[i]]; <span class="comment">// permutated.</span>
+<a name="l00116"></a>00116 }
+<a name="l00117"></a>00117 <span class="keywordflow">else</span>
+<a name="l00118"></a>00118 { <span class="comment">// even numbered digits (counting 1, 2, 3 ... n) are unchanged.</span>
+<a name="l00119"></a>00119 <span class="comment">// cout &lt;&lt; v[i] &lt;&lt; endl;</span>
+<a name="l00120"></a>00120 check += v[i]; <span class="comment">// unchanged.</span>
+<a name="l00121"></a>00121 }
+<a name="l00122"></a>00122 }
+<a name="l00123"></a>00123 <span class="comment">// cout &lt;&lt; &quot;\nComputed check &quot; &lt;&lt; check &lt;&lt; endl;</span>
+<a name="l00124"></a>00124 <span class="comment">// cout &lt;&lt; &#39;\n&#39; &lt;&lt; check &lt;&lt; endl;</span>
+<a name="l00125"></a>00125 check %= 10; <span class="comment">// modulus 10</span>
+<a name="l00126"></a>00126 <span class="comment">// cout &lt;&lt; &#39; &#39; &lt;&lt; check &lt;&lt; endl;</span>
+<a name="l00127"></a>00127 <span class="keywordflow">if</span> (check == 0) <span class="keywordflow">return</span> <span class="charliteral">&#39;0&#39;</span>;
+<a name="l00128"></a>00128 check = 10 - check;
+<a name="l00129"></a>00129 <span class="keywordflow">return</span> char(check + <span class="charliteral">&#39;0&#39;</span>);
+<a name="l00130"></a>00130 } <span class="comment">// char IBMcompute(string s)</span>
+<a name="l00131"></a>00131
+<a name="l00132"></a>00132 <span class="comment">/*</span>
+<a name="l00133"></a>00133 <span class="comment"></span>
+<a name="l00134"></a>00134 <span class="comment"></span>
+<a name="l00135"></a>00135 <span class="comment">Test j:\cpp\isbn\testisbn.cpp Thu Nov 28 09:46:29 2002</span>
+<a name="l00136"></a>00136 <span class="comment">VISAcheck(&quot;76592146&quot;)</span>
+<a name="l00137"></a>00137 <span class="comment">Check n = 8</span>
+<a name="l00138"></a>00138 <span class="comment">7 6 5 9 2 1 4 6</span>
+<a name="l00139"></a>00139 <span class="comment">7 5</span>
+<a name="l00140"></a>00140 <span class="comment">6</span>
+<a name="l00141"></a>00141 <span class="comment">5 1</span>
+<a name="l00142"></a>00142 <span class="comment">9</span>
+<a name="l00143"></a>00143 <span class="comment">2 4</span>
+<a name="l00144"></a>00144 <span class="comment">1</span>
+<a name="l00145"></a>00145 <span class="comment">4 8</span>
+<a name="l00146"></a>00146 <span class="comment">6</span>
+<a name="l00147"></a>00147 <span class="comment"></span>
+<a name="l00148"></a>00148 <span class="comment">40</span>
+<a name="l00149"></a>00149 <span class="comment"> 0</span>
+<a name="l00150"></a>00150 <span class="comment">true</span>
+<a name="l00151"></a>00151 <span class="comment">VISAcompute(&quot;7659214&quot;)</span>
+<a name="l00152"></a>00152 <span class="comment">compute n = 8</span>
+<a name="l00153"></a>00153 <span class="comment">7 5</span>
+<a name="l00154"></a>00154 <span class="comment">6</span>
+<a name="l00155"></a>00155 <span class="comment">5 1</span>
+<a name="l00156"></a>00156 <span class="comment">9</span>
+<a name="l00157"></a>00157 <span class="comment">2 4</span>
+<a name="l00158"></a>00158 <span class="comment">1</span>
+<a name="l00159"></a>00159 <span class="comment">4 8</span>
+<a name="l00160"></a>00160 <span class="comment"></span>
+<a name="l00161"></a>00161 <span class="comment">Computed check 34</span>
+<a name="l00162"></a>00162 <span class="comment">VISAcompute(&quot;7659214&quot;) 6</span>
+<a name="l00163"></a>00163 <span class="comment">Check n = 16</span>
+<a name="l00164"></a>00164 <span class="comment">5 8 1 8 0 0 6 1 9 1 1 4 0 0 2 7</span>
+<a name="l00165"></a>00165 <span class="comment">5 1</span>
+<a name="l00166"></a>00166 <span class="comment">8</span>
+<a name="l00167"></a>00167 <span class="comment">1 2</span>
+<a name="l00168"></a>00168 <span class="comment">8</span>
+<a name="l00169"></a>00169 <span class="comment">0 0</span>
+<a name="l00170"></a>00170 <span class="comment">0</span>
+<a name="l00171"></a>00171 <span class="comment">6 3</span>
+<a name="l00172"></a>00172 <span class="comment">1</span>
+<a name="l00173"></a>00173 <span class="comment">9 9</span>
+<a name="l00174"></a>00174 <span class="comment">1</span>
+<a name="l00175"></a>00175 <span class="comment">1 2</span>
+<a name="l00176"></a>00176 <span class="comment">4</span>
+<a name="l00177"></a>00177 <span class="comment">0 0</span>
+<a name="l00178"></a>00178 <span class="comment">0</span>
+<a name="l00179"></a>00179 <span class="comment">2 4</span>
+<a name="l00180"></a>00180 <span class="comment">7</span>
+<a name="l00181"></a>00181 <span class="comment"></span>
+<a name="l00182"></a>00182 <span class="comment">50</span>
+<a name="l00183"></a>00183 <span class="comment"> 0</span>
+<a name="l00184"></a>00184 <span class="comment">VISAcheck(&quot;5818006191140027&quot;) true</span>
+<a name="l00185"></a>00185 <span class="comment">compute n = 16</span>
+<a name="l00186"></a>00186 <span class="comment">5 1</span>
+<a name="l00187"></a>00187 <span class="comment">8</span>
+<a name="l00188"></a>00188 <span class="comment">1 2</span>
+<a name="l00189"></a>00189 <span class="comment">8</span>
+<a name="l00190"></a>00190 <span class="comment">0 0</span>
+<a name="l00191"></a>00191 <span class="comment">0</span>
+<a name="l00192"></a>00192 <span class="comment">6 3</span>
+<a name="l00193"></a>00193 <span class="comment">1</span>
+<a name="l00194"></a>00194 <span class="comment">9 9</span>
+<a name="l00195"></a>00195 <span class="comment">1</span>
+<a name="l00196"></a>00196 <span class="comment">1 2</span>
+<a name="l00197"></a>00197 <span class="comment">4</span>
+<a name="l00198"></a>00198 <span class="comment">0 0</span>
+<a name="l00199"></a>00199 <span class="comment">0</span>
+<a name="l00200"></a>00200 <span class="comment">2 4</span>
+<a name="l00201"></a>00201 <span class="comment"></span>
+<a name="l00202"></a>00202 <span class="comment">Computed check 43</span>
+<a name="l00203"></a>00203 <span class="comment">VISAcompute(&quot;581800619114002&quot;) 7</span>
+<a name="l00204"></a>00204 <span class="comment">Check n = 16</span>
+<a name="l00205"></a>00205 <span class="comment">4 4 1 7 1 2 3 4 5 6 7 8 9 1 1 2</span>
+<a name="l00206"></a>00206 <span class="comment">4 8</span>
+<a name="l00207"></a>00207 <span class="comment">4</span>
+<a name="l00208"></a>00208 <span class="comment">1 2</span>
+<a name="l00209"></a>00209 <span class="comment">7</span>
+<a name="l00210"></a>00210 <span class="comment">1 2</span>
+<a name="l00211"></a>00211 <span class="comment">2</span>
+<a name="l00212"></a>00212 <span class="comment">3 6</span>
+<a name="l00213"></a>00213 <span class="comment">4</span>
+<a name="l00214"></a>00214 <span class="comment">5 1</span>
+<a name="l00215"></a>00215 <span class="comment">6</span>
+<a name="l00216"></a>00216 <span class="comment">7 5</span>
+<a name="l00217"></a>00217 <span class="comment">8</span>
+<a name="l00218"></a>00218 <span class="comment">9 9</span>
+<a name="l00219"></a>00219 <span class="comment">1</span>
+<a name="l00220"></a>00220 <span class="comment">1 2</span>
+<a name="l00221"></a>00221 <span class="comment">2</span>
+<a name="l00222"></a>00222 <span class="comment"></span>
+<a name="l00223"></a>00223 <span class="comment">69</span>
+<a name="l00224"></a>00224 <span class="comment"> 9</span>
+<a name="l00225"></a>00225 <span class="comment">VISAcheck(&quot;4417123456789112&quot;) false</span>
+<a name="l00226"></a>00226 <span class="comment">compute n = 16</span>
+<a name="l00227"></a>00227 <span class="comment">4 8</span>
+<a name="l00228"></a>00228 <span class="comment">4</span>
+<a name="l00229"></a>00229 <span class="comment">1 2</span>
+<a name="l00230"></a>00230 <span class="comment">7</span>
+<a name="l00231"></a>00231 <span class="comment">1 2</span>
+<a name="l00232"></a>00232 <span class="comment">2</span>
+<a name="l00233"></a>00233 <span class="comment">3 6</span>
+<a name="l00234"></a>00234 <span class="comment">4</span>
+<a name="l00235"></a>00235 <span class="comment">5 1</span>
+<a name="l00236"></a>00236 <span class="comment">6</span>
+<a name="l00237"></a>00237 <span class="comment">7 5</span>
+<a name="l00238"></a>00238 <span class="comment">8</span>
+<a name="l00239"></a>00239 <span class="comment">9 9</span>
+<a name="l00240"></a>00240 <span class="comment">1</span>
+<a name="l00241"></a>00241 <span class="comment">1 2</span>
+<a name="l00242"></a>00242 <span class="comment"></span>
+<a name="l00243"></a>00243 <span class="comment">Computed check 67</span>
+<a name="l00244"></a>00244 <span class="comment">VISAcompute(&quot;441712345678911&quot;) 3</span>
+<a name="l00245"></a>00245 <span class="comment">Check n = 16</span>
+<a name="l00246"></a>00246 <span class="comment">4 4 1 7 1 2 3 4 5 6 7 8 9 1 1 3</span>
+<a name="l00247"></a>00247 <span class="comment">4 8</span>
+<a name="l00248"></a>00248 <span class="comment">4</span>
+<a name="l00249"></a>00249 <span class="comment">1 2</span>
+<a name="l00250"></a>00250 <span class="comment">7</span>
+<a name="l00251"></a>00251 <span class="comment">1 2</span>
+<a name="l00252"></a>00252 <span class="comment">2</span>
+<a name="l00253"></a>00253 <span class="comment">3 6</span>
+<a name="l00254"></a>00254 <span class="comment">4</span>
+<a name="l00255"></a>00255 <span class="comment">5 1</span>
+<a name="l00256"></a>00256 <span class="comment">6</span>
+<a name="l00257"></a>00257 <span class="comment">7 5</span>
+<a name="l00258"></a>00258 <span class="comment">8</span>
+<a name="l00259"></a>00259 <span class="comment">9 9</span>
+<a name="l00260"></a>00260 <span class="comment">1</span>
+<a name="l00261"></a>00261 <span class="comment">1 2</span>
+<a name="l00262"></a>00262 <span class="comment">3</span>
+<a name="l00263"></a>00263 <span class="comment"></span>
+<a name="l00264"></a>00264 <span class="comment">70</span>
+<a name="l00265"></a>00265 <span class="comment"> 0</span>
+<a name="l00266"></a>00266 <span class="comment">VISAcheck(&quot;4417123456789113&quot;) true</span>
+<a name="l00267"></a>00267 <span class="comment">Press any key to continue</span>
+<a name="l00268"></a>00268 <span class="comment"></span>
+<a name="l00269"></a>00269 <span class="comment">*/</span>
+</pre></div></div>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/adler_8hpp.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/adler_8hpp.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,107 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+</div>
+<div class="header">
+ <div class="summary">
+Namespaces </div>
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/adler.hpp File Reference</div> </div>
+</div>
+<div class="contents">
+
+<p>Go to the source code of this file.</p>
+<table class="memberdecls">
+<tr><td colspan="2"><h2><a name="namespaces"></a>
+Namespaces</h2></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceboost.html">boost</a></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceboost_1_1checks.html">boost::checks</a></td></tr>
+</table>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/adler_8hpp_source.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/adler_8hpp_source.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,116 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+<div class="header">
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/adler.hpp</div> </div>
+</div>
+<div class="contents">
+Go to the documentation of this file.<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Boost checks/adler.hpp header file ------------------------------------//</span>
+<a name="l00002"></a>00002 <span class="comment">// (C) Copyright Pierre Talbot 2011</span>
+<a name="l00003"></a>00003 <span class="comment">// Distributed under the Boost Software License, Version 1.0. (See</span>
+<a name="l00004"></a>00004 <span class="comment">// accompanying file LICENSE_1_0.txt or copy at</span>
+<a name="l00005"></a>00005 <span class="comment">// http://www.boost.org/LICENSE_1_0.txt>
+<a name="l00006"></a>00006 <span class="comment">// See
http://www.boost.org for updates, documentation, and revision history.</span>
+<a name="l00007"></a>00007
+<a name="l00008"></a>00008 <span class="preprocessor">#ifndef BOOST_ADLER_INCLUDED</span>
+<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define BOOST_ADLER_INCLUDED</span>
+<a name="l00010"></a>00010 <span class="preprocessor"></span>
+<a name="l00011"></a>00011
+<a name="l00012"></a><a class="code" href="namespaceboost.html">00012</a> <span class="keyword">namespace </span>boost {
+<a name="l00013"></a><a class="code" href="namespaceboost_1_1checks.html">00013</a> <span class="keyword">namespace </span>checks{
+<a name="l00014"></a>00014
+<a name="l00015"></a>00015
+<a name="l00016"></a>00016 } <span class="comment">// namespace checks</span>
+<a name="l00017"></a>00017 } <span class="comment">// namespace boost</span>
+<a name="l00018"></a>00018
+<a name="l00019"></a>00019 <span class="preprocessor">#endif</span>
+</pre></div></div>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/amex_8hpp.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/amex_8hpp.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,107 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+</div>
+<div class="header">
+ <div class="summary">
+Namespaces </div>
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/amex.hpp File Reference</div> </div>
+</div>
+<div class="contents">
+
+<p>Go to the source code of this file.</p>
+<table class="memberdecls">
+<tr><td colspan="2"><h2><a name="namespaces"></a>
+Namespaces</h2></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceboost.html">boost</a></td></tr>
+<tr><td class="memItemLeft" align="right" valign="top">namespace &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespaceboost_1_1checks.html">boost::checks</a></td></tr>
+</table>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+

Added: sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/amex_8hpp_source.html
==============================================================================
--- (empty file)
+++ sandbox/SOC/2011/checks/libs/checks/doc/doxygen/html/amex_8hpp_source.html 2011-06-17 08:34:53 EDT (Fri, 17 Jun 2011)
@@ -0,0 +1,117 @@
+
+<!-- checks_doxygen_header.html -->
+
+<!-- From Sample custom Doxygen header from my_doxygen_header.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<html> <!-- </html> is in footer. -->
+
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+
+ <!-- Add your title here ! -->
+ <title>Boost.Checks Thu Jun 16 2011 18:14:52 Checks </title>
+
+ <!-- Add your custom stylesheet here ! -->
+ <link href="../checks_doxygen.css" rel="stylesheet" type="text/css"/>
+ <!-- Note that this overrides any stylesheet specified in doxyfile setting HTML_STYLESHEET="mystylesheet.css" ! -->
+ <link href="tabs.css" rel="stylesheet" type="text/css"/>
+</head>
+
+<!-- Add draft background here if, for example, not yet accepted or otherwise not finalised. -->
+<body style="background-image: url(../../images/draft.png);">
+</body>
+
+<!-- You could also flag status by using a color? -->
+<!--<body style="background-image: url(../../images/draft.png) ; color : darkblue"> -->
+
+<!-- </body> is in footer. -->
+
+<!-- Add your logo here or -->
+<!-- Boost logo here if accepted after review, else some "Proposed for Boost" logo, for example the one below, or "proposed for Boost" ! -->
+<table cellpadding="5" width="100%">
+ <tbody>
+ <tr>
+ <td valign="top"><img alt="Proposed for Boost." src="../../images/proposed_for_boost.png" height="80" width="250"/></td>
+ </tr>
+ </tbody>
+</table>
+<p>
+ <br/> <!-- Some space below logo, if needed. -->
+</p>
+
+<!-- Generated by Doxygen 1.7.4 -->
+ <div id="navrow1" class="tabs">
+ <ul class="tablist">
+ <li>Main Page</li>
+ <li>Namespaces</li>
+ <li class="current">Files</li>
+ </ul>
+ </div>
+ <div id="navrow2" class="tabs2">
+ <ul class="tablist">
+ <li>File List</li>
+ <li>File Members</li>
+ </ul>
+ </div>
+<div class="header">
+ <div class="headertitle">
+<div class="title">I:/boost-sandbox/SOC/2011/checks/boost/checks/amex.hpp</div> </div>
+</div>
+<div class="contents">
+Go to the documentation of this file.<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// Boost checks/amex.hpp header file ------------------------------------//</span>
+<a name="l00002"></a>00002 <span class="comment">// (C) Copyright Pierre Talbot 2011</span>
+<a name="l00003"></a>00003 <span class="comment">// Distributed under the Boost Software License, Version 1.0. (See</span>
+<a name="l00004"></a>00004 <span class="comment">// accompanying file LICENSE_1_0.txt or copy at</span>
+<a name="l00005"></a>00005 <span class="comment">// http://www.boost.org/LICENSE_1_0.txt>
+<a name="l00006"></a>00006 <span class="comment">// See
http://www.boost.org for updates, documentation, and revision history.</span>
+<a name="l00007"></a>00007
+<a name="l00008"></a>00008 <span class="preprocessor">#ifndef BOOST_AMEX_INCLUDED</span>
+<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define BOOST_AMEX_INCLUDED</span>
+<a name="l00010"></a>00010 <span class="preprocessor"></span>
+<a name="l00011"></a>00011
+<a name="l00012"></a>00012 <span class="keyword">namespace </span>boost {
+<a name="l00013"></a>00013 <span class="keyword">namespace </span>checks{
+<a name="l00014"></a>00014
+<a name="l00015"></a>00015 <span class="comment">/* American express : use luhn algorithm */</span>
+<a name="l00016"></a>00016
+<a name="l00017"></a>00017 } <span class="comment">// namespace checks</span>
+<a name="l00018"></a>00018 } <span class="comment">// namespace boost</span>
+<a name="l00019"></a>00019
+<a name="l00020"></a>00020 <span class="preprocessor">#endif</span>
+</pre></div></div>
+</div>
+<!-- custom Doxygen footer checks_doxygen_footer.html -->-
+
+<!-- Copyright 2011 Pierre Talbot. -->
+<!-- Distributed under the Boost Software License, Version 1.0. -->
+<!-- (See accompanying file LICENSE_1_0.txt or copy at -->
+<!-- http://www.boost.org/LICENSE_1_0.txt) -->
+
+<hr size="1"/>
+<table width="100%">
+<tbody>
+ <tr>
+ <address style="text-align: left;">
+ <p>Use, modification and distribution are subject to the Boost Software License, Version 1.0.<br/>
+ (See accompanying file LICENSE_1_0.txt or copy at&nbsp;
+ http://www.boost.org/LICENSE_1_0.txt )</p>
+ <!-- Change copyright to YOUR name (and affiliation, if any) below: -->
+ <p>Copyright © 2011 Pierre Talbot</p>
+ <!-- 2011 becomes the current year, for example 2010, so claims copyright for a range of years, 2009 - 2010. -->
+ <p>Doxygen Documentation generated by&nbsp; doxygen logo 1.7.4, Revised at Thu Jun 16 2011 18:14:52</p>
+ </address>
+ </tr>
+</tbody>
+</table>
+ <!-- You can also add a footer logo, taking care that the location of the footer.png is correct. -->
+ <!-- <img src="../images/my_footer.png" alt="Boost Doxygen documentation footer.png" -->
+ </body> <!-- <body> is in doxygen_header.html -->
+</html><!-- <html> is in doxygen_header.html -->
+
+


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk