rikitiki  v0.1.67
Build C++ web server modules that allow easy routing and deployment.
rikitiki::Route_< P, T > Struct Template Reference

#include <routing.h>

Inheritance diagram for rikitiki::Route_< P, T >:
rikitiki::Route rikitiki::Handler

Public Types

typedef void(P::* F )(ConnContext &ctx, typename sane_ref_type< T >::type...)
 

Public Member Functions

virtual bool visible () const
 
 Route_ (P *p, const std::string &_route, F _f, ConnContext::Method method)
 
int Scan (ConnContext &ctx, T &...t)
 
virtual bool Handle (ConnContext &ctx)
 
- Public Member Functions inherited from rikitiki::Route
 Route (const std::string &_route, ConnContext::Method _method)
 
 Route (const std::string &_route)
 
virtual std::string name () const
 
- Public Member Functions inherited from rikitiki::Handler
virtual std::string desc () const
 

Public Attributes

P * parent
 
f
 
- Public Attributes inherited from rikitiki::Route
std::string route
 
ConnContext::Method method
 

Detailed Description

template<typename P, typename... T>
struct rikitiki::Route_< P, T >

A route incorporates the variadic logic needed to map the Handle(ConnContext&) call to the function type.

See Also
Route, Handler
Parameters
PUsually the module type that the route is for.
T...The argument types for the function to call

The documentation for this struct was generated from the following files: