Boost logo

Boost-Commit :

From: drrngrvy_at_[hidden]
Date: 2007-07-20 13:34:42


Author: drrngrvy
Date: 2007-07-20 13:34:41 EDT (Fri, 20 Jul 2007)
New Revision: 7493
URL: http://svn.boost.org/trac/boost/changeset/7493

Log:
Added cgi/cgi.hpp convenience header

Added:
   sandbox/SOC/2007/cgi/boost/cgi/acgi.hpp
   sandbox/SOC/2007/cgi/boost/cgi/basic_connection_fwd.hpp
   sandbox/SOC/2007/cgi/boost/cgi/basic_protocol_service_fwd.hpp
   sandbox/SOC/2007/cgi/boost/cgi/detail/common_headers.hpp
Text files modified:
   sandbox/SOC/2007/cgi/boost/cgi/cgi.hpp | 13 +++++++++++--
   sandbox/SOC/2007/cgi/boost/cgi/http/status_code.hpp | 7 ++++++-
   sandbox/SOC/2007/cgi/boost/cgi/service_impl/acgi_service_impl.hpp | 8 --------
   sandbox/SOC/2007/cgi/libs/cgi/test/Jamfile.v2 | 7 +++++--
   4 files changed, 22 insertions(+), 13 deletions(-)

Added: sandbox/SOC/2007/cgi/boost/cgi/acgi.hpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2007/cgi/boost/cgi/acgi.hpp 2007-07-20 13:34:41 EDT (Fri, 20 Jul 2007)
@@ -0,0 +1,23 @@
+// -- acgi.hpp --
+//
+// Copyright (c) Darren Garvey 2007.
+// 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)
+//
+////////////////////////////////////////////////////////////////
+#ifndef CGI_ACGI_HPP_INCLUDED__
+#define CGI_ACGI_HPP_INCLUDED__
+
+// #include all acgi-related headers only
+#include "cgi/acgi_request.hpp"
+#include "cgi/cgi_service.hpp"
+#include "service_impl/acgi_service_impl.hpp"
+#include "request_impl/acgi_request_impl.hpp"
+#include "gateway_impl/acgi_gateway_impl.hpp"
+#include "gateway_service/acgi_gateway_service.hpp"
+
+// Include headers common to all protocols
+#include "detail/common_headers.hpp"
+
+#endif // CGI_ACGI_HPP_INCLUDED__

Added: sandbox/SOC/2007/cgi/boost/cgi/basic_connection_fwd.hpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2007/cgi/boost/cgi/basic_connection_fwd.hpp 2007-07-20 13:34:41 EDT (Fri, 20 Jul 2007)
@@ -0,0 +1,19 @@
+// -- basic_connection_fwd.hpp --
+//
+// Copyright (c) Darren Garvey 2007.
+// 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)
+//
+////////////////////////////////////////////////////////////////
+#ifndef CGI_BASIC_CONNECTION_FWD_HPP_INCLUDED__
+#define CGI_BASIC_CONNECTION_FWD_HPP_INCLUDED__
+
+namespace cgi {
+
+ template<typename ConnectionType>
+ class basic_connection;
+
+} // namespace cgi
+
+#endif // CGI_BASIC_CONNECTION_FWD_HPP_INCLUDED__

Added: sandbox/SOC/2007/cgi/boost/cgi/basic_protocol_service_fwd.hpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2007/cgi/boost/cgi/basic_protocol_service_fwd.hpp 2007-07-20 13:34:41 EDT (Fri, 20 Jul 2007)
@@ -0,0 +1,23 @@
+// -- basic_protocol_service_fwd.hpp --
+//
+// Copyright (c) Darren Garvey 2007.
+// 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)
+//
+////////////////////////////////////////////////////////////////
+#ifndef CGI_BASIC_PROTOCOL_SERVICE_FWD_HPP_INCLUDED__
+#define CGI_BASIC_PROTOCOL_SERVICE_FWD_HPP_INCLUDED__
+
+#include "tags.hpp"
+#include "io_service_provider_fwd.hpp"
+
+namespace cgi {
+
+ template<typename Protocol, int IoServiceCount = 1
+ , typename PoolingPolicy = tags::round_robin>
+ class basic_protocol_service;
+
+} // namespace cgi
+
+#endif // CGI_BASIC_PROTOCOL_SERVICE_FWD_HPP_INCLUDED__

Modified: sandbox/SOC/2007/cgi/boost/cgi/cgi.hpp
==============================================================================
--- sandbox/SOC/2007/cgi/boost/cgi/cgi.hpp (original)
+++ sandbox/SOC/2007/cgi/boost/cgi/cgi.hpp 2007-07-20 13:34:41 EDT (Fri, 20 Jul 2007)
@@ -1,4 +1,4 @@
-// -- cgi.hpp --
+// -- cgi.hpp --
 //
 // Copyright (c) Darren Garvey 2007.
 // Distributed under the Boost Software License, Version 1.0.
@@ -9,6 +9,15 @@
 #ifndef CGI_CGI_HPP_INCLUDED__
 #define CGI_CGI_HPP_INCLUDED__
 
-// #include all cgi-related headers only
+// Include all cgi-related headers only.
+#include "cgi/cgi_request.hpp"
+#include "cgi/cgi_service.hpp"
+#include "service_impl/cgi_service_impl.hpp"
+#include "request_impl/cgi_request_impl.hpp"
+#include "gateway_impl/cgi_gateway_impl.hpp"
+#include "gateway_service/cgi_gateway_service.hpp"
+
+// Include headers common to all protocols
+#include "detail/common_headers.hpp"
 
 #endif // CGI_CGI_HPP_INCLUDED__

Added: sandbox/SOC/2007/cgi/boost/cgi/detail/common_headers.hpp
==============================================================================
--- (empty file)
+++ sandbox/SOC/2007/cgi/boost/cgi/detail/common_headers.hpp 2007-07-20 13:34:41 EDT (Fri, 20 Jul 2007)
@@ -0,0 +1,26 @@
+// -- cgi.hpp --
+//
+// Copyright (c) Darren Garvey 2007.
+// 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)
+//
+////////////////////////////////////////////////////////////////
+#ifndef CGI_CGI_HPP_INCLUDED__
+#define CGI_CGI_HPP_INCLUDED__
+
+// #include all protocol-independent headers only. Protocol-specific
+// headers can just include this after other headers.
+
+#include "../buffer.hpp"
+#include "../map.hpp"
+#include "../io_service.hpp"
+#include "../streambuf.hpp"
+#include "../basic_request.hpp"
+#include "../basic_request_acceptor.hpp"
+#include "../reply.hpp"
+#include "../logger.hpp"
+#include "../read.hpp"
+#include "../write.hpp"
+
+#endif // CGI_CGI_HPP_INCLUDED__

Modified: sandbox/SOC/2007/cgi/boost/cgi/http/status_code.hpp
==============================================================================
--- sandbox/SOC/2007/cgi/boost/cgi/http/status_code.hpp (original)
+++ sandbox/SOC/2007/cgi/boost/cgi/http/status_code.hpp 2007-07-20 13:34:41 EDT (Fri, 20 Jul 2007)
@@ -18,6 +18,11 @@
     */
    enum status_code
    {
+ /// Informational codes
+ continue_ = 100, // note the trailing underscore
+ switching_protocols,
+ processing,
+
      /// Success codes
      ok = 200,
      created,
@@ -78,5 +83,5 @@
  } // namespace http
 } // namespace cgi
 
-#endif // CGI_HTTP_STATUS_CODE_INCLUDED_HPP__
+#endif // CGI_HTTP_STATUS_CODE_HPP_INCLUDED__
 

Modified: sandbox/SOC/2007/cgi/boost/cgi/service_impl/acgi_service_impl.hpp
==============================================================================
--- sandbox/SOC/2007/cgi/boost/cgi/service_impl/acgi_service_impl.hpp (original)
+++ sandbox/SOC/2007/cgi/boost/cgi/service_impl/acgi_service_impl.hpp 2007-07-20 13:34:41 EDT (Fri, 20 Jul 2007)
@@ -52,14 +52,6 @@
     void shutdown_service()
     {
     }
-
- void construct(implementation_type& impl)
- {
- }
-
- void destroy(implementation_type& impl)
- {
- }
   };
 
 } // namespace cgi

Modified: sandbox/SOC/2007/cgi/libs/cgi/test/Jamfile.v2
==============================================================================
--- sandbox/SOC/2007/cgi/libs/cgi/test/Jamfile.v2 (original)
+++ sandbox/SOC/2007/cgi/libs/cgi/test/Jamfile.v2 2007-07-20 13:34:41 EDT (Fri, 20 Jul 2007)
@@ -1,18 +1,21 @@
 
 import testing ;
 
-test-suite cgi
+test-suite cgi_test_suite
   :
     [ compile compile/stdio_connection.cpp ]
     [ compile compile/async_stdio_connection.cpp ]
     [ compile compile/tcp_connection.cpp ]
     [ compile compile/cgi_service.cpp ]
 # [ compile compile/fcgi_service.cpp ]
- [ compile compile/is_async_test.cpp ]
+ [ compile compile/is_async_test.cpp ]
     [ compile compile/cgi_request.cpp ]
     [ compile compile/acgi_request.cpp ]
+
     [ compile compile/reply.cpp ]
 
+ [ compile compile/cgi_header_check.cpp ]
+
 # [ run run/stdio_connection.cpp ]
   :
     <include>$(BOOST_ROOT)


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