ulxr::hidden::SubResource< T > Class Template Reference

Helper class to forward a call to a resource handler. More...

#include <ulxr_htmlform_handler.h>

Inheritance diagram for ulxr::hidden::SubResource< T >:

Inheritance graph
[legend]
Collaboration diagram for ulxr::hidden::SubResource< T >:

Collaboration graph
[legend]
List of all members.

Public Types

typedef CppString(T::*) PMF (const HtmlFormData &formdata, CppString &mimetype)
 A handler for a html request.

Public Member Functions

 SubResource (const CppString &in_name, T *in_obj, PMF in_pmf, const CppString &in_descr)
 Creates a handler for a subresource.
CppString call (const HtmlFormData &formdata, CppString &mimetype)
 Call the handler indirectly.

Private Attributes

T * obj
PMF pmf

Detailed Description

template<class T>
class ulxr::hidden::SubResource< T >

Helper class to forward a call to a resource handler.

Definition at line 144 of file ulxr_htmlform_handler.h.


Member Typedef Documentation

template<class T>
typedef CppString(T::*) ulxr::hidden::SubResource< T >::PMF(const HtmlFormData &formdata, CppString &mimetype)

A handler for a html request.

Parameters:
formdata optional data from a form
mimetype [OUT] returns the mimetype of the data
Returns:
the html data

Definition at line 153 of file ulxr_htmlform_handler.h.


Constructor & Destructor Documentation

template<class T>
ulxr::hidden::SubResource< T >::SubResource ( const CppString in_name,
T *  in_obj,
PMF  in_pmf,
const CppString in_descr 
) [inline]

Creates a handler for a subresource.

Parameters:
in_name of the subresource
in_obj pointer of the object which handles it
in_pmf pointer of a member function in the object
in_descr human readable description for this resource

Definition at line 161 of file ulxr_htmlform_handler.h.


Member Function Documentation

template<class T>
CppString ulxr::hidden::SubResource< T >::call ( const HtmlFormData formdata,
CppString mimetype 
) [inline, virtual]

Call the handler indirectly.

Parameters:
formdata optional data from a form
mimetype returns the mimetype of the data
Returns:
the html data

Implements ulxr::hidden::SubResourceBase.

Definition at line 172 of file ulxr_htmlform_handler.h.

References ulxr::hidden::SubResource< T >::obj, and ulxr::hidden::SubResource< T >::pmf.


Member Data Documentation

template<class T>
T* ulxr::hidden::SubResource< T >::obj [private]

Definition at line 178 of file ulxr_htmlform_handler.h.

Referenced by ulxr::hidden::SubResource< T >::call().

template<class T>
PMF ulxr::hidden::SubResource< T >::pmf [private]

Definition at line 179 of file ulxr_htmlform_handler.h.

Referenced by ulxr::hidden::SubResource< T >::call().


The documentation for this class was generated from the following file:
Generated on Sun Aug 19 20:09:15 2007 for ulxmlrpcpp by  doxygen 1.5.1