#include <tnt/mbcomponent.h>

Inheritance diagram for tnt::MbComponent:
tnt::EcppComponent tnt::Component

Public Member Functions

 MbComponent (const Compident &ci, const Urlmapper &um, Comploader &cl)
 MbComponent (const Compident &ci, const Urlmapper &um, Comploader &cl, const char *rawData_, const char **urls_, const char **mimetypes_, const char **ctimes_)
 MbComponent (const Compident &ci, const Urlmapper &um, Comploader &cl, const char *rawData_, const char *&mimetype_, const char *&ctime_)
unsigned operator() (HttpRequest &request, HttpReply &reply, tnt::QueryParams &qparam)
unsigned topCall (tnt::HttpRequest &request, tnt::HttpReply &reply, tnt::QueryParams &qparam)
- Public Member Functions inherited from tnt::EcppComponent
 EcppComponent (const Compident &ci, const Urlmapper &um, Comploader &cl)
const CompidentgetCompident () const
EcppSubComponentfetchSubComp (const std::string &sub) const
template<typename parameter1_type , typename parameter2_type >
unsigned callSubComp (const std::string &sub, HttpRequest &request, parameter1_type &p1, parameter2_type &p2) const
 helper-methods for calling subcomponents
template<typename parameter1_type >
unsigned callSubComp (const std::string &sub, HttpRequest &request, parameter1_type &p1) const
template<typename parameter1_type >
std::string scallSubComp (const std::string &sub, HttpRequest &request, parameter1_type &p1) const
 helper-methods for fetching contents of subcomponents
- Public Member Functions inherited from tnt::Component
virtual ~Component ()
virtual unsigned endTag (HttpRequest &request, HttpReply &reply, tnt::QueryParams &qparam)
virtual std::string getAttribute (const std::string &name, const std::string &def=std::string()) const
unsigned call (HttpRequest &request, HttpReply &reply, tnt::QueryParams &qparam)
 explicitly call operator() - sometimes more readable
unsigned call (HttpRequest &request, HttpReply &reply)
 call component without parameters
std::string scall (HttpRequest &request, tnt::QueryParams &qparam)
 return output as a string rather than outputting to stream
std::string scall (HttpRequest &request)
 return output as a string rather than outputting to stream without query-parameters

Protected Member Functions

void init (const char *rawData_, const char **urls_, const char **mimetypes_, const char **ctimes_)
void init (const char *rawData_, const char *&mimetype_, const char *&ctime_)
- Protected Member Functions inherited from tnt::EcppComponent
virtual ~EcppComponent ()
void registerSubComp (const std::string &name, EcppSubComponent *comp)
ComponentfetchComp (const std::string &url) const
ComponentfetchComp (const Compident &ci) const
ComponentfetchComp (const Subcompident &ci) const
ComponentcreateComp (const Compident &ci) const
ComponentcreateComp (const std::string &url) const
template<typename compident_type , typename parameter1_type , typename parameter2_type >
unsigned callComp (const compident_type &ci, HttpRequest &request, parameter1_type &p1, parameter2_type &p2)
 helper-methods for calling components
template<typename compident_type , typename parameter_type >
unsigned callComp (const compident_type &ci, HttpRequest &request, parameter_type &p1)
template<typename compident_type >
unsigned callComp (const compident_type &ci, HttpRequest &request)
template<typename compident_type , typename parameter1_type >
std::string scallComp (const compident_type &ci, HttpRequest &request, parameter1_type &p1)
 helper-methods for fetching contents of components
template<typename compident_type >
std::string scallComp (const compident_type &ci, HttpRequest &request)
const char * getData (const HttpRequest &request, const char *def) const

Constructor & Destructor Documentation

tnt::MbComponent::MbComponent ( const Compident ci,
const Urlmapper um,
Comploader cl 
)
inline
tnt::MbComponent::MbComponent ( const Compident ci,
const Urlmapper um,
Comploader cl,
const char *  rawData_,
const char **  urls_,
const char **  mimetypes_,
const char **  ctimes_ 
)
inline
tnt::MbComponent::MbComponent ( const Compident ci,
const Urlmapper um,
Comploader cl,
const char *  rawData_,
const char *&  mimetype_,
const char *&  ctime_ 
)
inline

Member Function Documentation

void tnt::MbComponent::init ( const char *  rawData_,
const char **  urls_,
const char **  mimetypes_,
const char **  ctimes_ 
)
protected
void tnt::MbComponent::init ( const char *  rawData_,
const char *&  mimetype_,
const char *&  ctime_ 
)
inlineprotected
unsigned tnt::MbComponent::operator() ( HttpRequest request,
HttpReply reply,
tnt::QueryParams qparam 
)
virtual

Reimplemented from tnt::Component.

unsigned tnt::MbComponent::topCall ( tnt::HttpRequest request,
tnt::HttpReply reply,
tnt::QueryParams qparam 
)
virtual

Reimplemented from tnt::Component.


The documentation for this class was generated from the following file: