Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r73882 - sandbox/SOC/2011/checks/boost/checks
From: pierre.talbot.6114_at_[hidden]
Date: 2011-08-18 08:25:22


Author: trademark
Date: 2011-08-18 08:25:21 EDT (Thu, 18 Aug 2011)
New Revision: 73882
URL: http://svn.boost.org/trac/boost/changeset/73882

Log:
Add forward declaration of ean - upc - amex - visa - mastercard hpp include.
Text files modified:
   sandbox/SOC/2011/checks/boost/checks/checks_fwd.hpp | 53 ++++++++++++++++++++++++++++++++++++++++
   1 files changed, 53 insertions(+), 0 deletions(-)

Modified: sandbox/SOC/2011/checks/boost/checks/checks_fwd.hpp
==============================================================================
--- sandbox/SOC/2011/checks/boost/checks/checks_fwd.hpp (original)
+++ sandbox/SOC/2011/checks/boost/checks/checks_fwd.hpp 2011-08-18 08:25:21 EDT (Thu, 18 Aug 2011)
@@ -62,6 +62,11 @@
 #include <boost/checks/verhoeff.hpp>
 #include <boost/checks/modulus11.hpp>
 #include <boost/checks/modulus97.hpp>
+#include <boost/checks/ean.hpp>
+#include <boost/checks/upc.hpp>
+#include <boost/checks/amex.hpp>
+#include <boost/checks/visa.hpp>
+#include <boost/checks/mastercard.hpp>
 
 namespace boost{
   namespace checks{
@@ -122,5 +127,53 @@
 template <typename check_range, typename checkdigits_iter>
 typename checkdigits_iter compute_mod97_10 (const check_range& check_seq, checkdigits_iter mod97_checkdigits) ;
 
+// EAN-13 and EAN-8
+
+template <typename check_range>
+bool check_ean13 (const check_range& check_seq) ;
+
+template <typename check_range>
+typename boost::checks::ean_compute_algorithm::checkdigit<check_range>::type compute_ean13 (const check_range& check_seq) ;
+
+template <typename check_range>
+bool check_ean8 (const check_range& check_seq) ;
+
+template <typename check_range>
+typename boost::checks::ean_compute_algorithm::checkdigit<check_range>::type compute_ean8 (const check_range& check_seq);
+
+// UPC-A
+
+template <typename check_range>
+bool check_upca (const check_range& check_seq) ;
+
+template <typename check_range>
+typename boost::checks::upc_compute_algorithm::checkdigit<check_range>::type compute_upca (const check_range& check_seq) ;
+
+
+// American Express
+
+template <typename check_range>
+bool check_amex (const check_range& check_seq) ;
+
+template <typename check_range>
+typename boost::checks::amex_compute_algorithm::checkdigit<check_range>::type compute_amex (const check_range& check_seq) ;
+
+// VISA
+
+template <typename check_range>
+bool check_visa (const check_range& check_seq) ;
+
+template <typename check_range>
+typename boost::checks::visa_compute_algorithm::checkdigit<check_range>::type compute_visa (const check_range& check_seq) ;
+
+// Mastercard
+
+template <typename check_range>
+bool check_mastercard (const check_range& check_seq) ;
+
+template <typename check_range>
+typename boost::checks::mastercard_compute_algorithm::checkdigit<check_range>::type compute_mastercard (const check_range& check_seq) ;
+
+
 }}
 #endif \\ BOOST_CHECK_CHECKS_FWD_HPP
\ No newline at end of file


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