Boost logo

Boost-Commit :

From: lists.drrngrvy_at_[hidden]
Date: 2008-03-21 14:29:22


Author: drrngrvy
Date: 2008-03-21 14:29:21 EDT (Fri, 21 Mar 2008)
New Revision: 43763
URL: http://svn.boost.org/trac/boost/changeset/43763

Log:
Add common/form_parser.hpp (which isn't used for anything real yet, but is referenced in detail/.cgi_service_impl_base.hpp)
Added:
   sandbox/SOC/2007/cgi/branches/acceptor_work/boost/cgi/common/form_parser.hpp (contents, props changed)
Text files modified:
   sandbox/SOC/2007/cgi/branches/acceptor_work/boost/cgi/detail/cgi_service_impl_base.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Added: sandbox/SOC/2007/cgi/branches/acceptor_work/boost/cgi/common/form_parser.hpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2007/cgi/branches/acceptor_work/boost/cgi/common/form_parser.hpp 2008-03-21 14:29:21 EDT (Fri, 21 Mar 2008)
@@ -0,0 +1,48 @@
+#ifndef CGI_DETAIL_FORM_PARSER_HPP_INCLUDED__
+#define CGI_DETAIL_FORM_PARSER_HPP_INCLUDED__
+
+#include "boost/cgi/detail/push_options.hpp"
+
+#include <set>
+#include <vector>
+#include <string>
+#include <boost/asio/buffer.hpp>
+#include <boost/function.hpp>
+#include "boost/cgi/common/form_part.hpp"
+
+namespace cgi {
+ namespace detail {
+
+ /// Destined for greater things than an implementation detail.
+ class form_parser
+ {
+ public:
+ typedef
+ boost::function<
+ std::size_t (
+ const boost::asio::mutable_buffer&
+ , boost::system::error_code& )
+ >
+ callback_type;
+
+ typedef std::vector<char> buffer_type;
+
+ form_parser()
+ {
+
+ }
+
+ private:
+ std::set<std::string> boundary_markers_;
+ std::vector<common::form_part> form_parts_;
+
+ //buffer_type& buffer_;
+
+ callback_type callback_;
+ };
+
+ } // namespace detail
+} // namespace cgi
+
+#endif // CGI_DETAIL_FORM_PARSER_HPP_INCLUDED__
+

Modified: sandbox/SOC/2007/cgi/branches/acceptor_work/boost/cgi/detail/cgi_service_impl_base.hpp
==============================================================================
--- sandbox/SOC/2007/cgi/branches/acceptor_work/boost/cgi/detail/cgi_service_impl_base.hpp (original)
+++ sandbox/SOC/2007/cgi/branches/acceptor_work/boost/cgi/detail/cgi_service_impl_base.hpp 2008-03-21 14:29:21 EDT (Fri, 21 Mar 2008)
@@ -31,8 +31,8 @@
 
  } // namespace detail
 
- using std::cerr;
- using std::endl;
+ using std::cerr; // **FIXME**
+ using std::endl; // **FIXME**
 
 
   template<typename RequestImplType>


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