tnt::EcppSubComponent Class Reference

#include <tnt/ecpp.h>

Inheritance diagram for tnt::EcppSubComponent:
tnt::EcppComponent tnt::Component

Public Member Functions

 EcppSubComponent (EcppComponent &p, const std::string &name)
virtual void drop ()
Subcompident getCompident () const
EcppComponentgetMainComponent () const
- Public Member Functions inherited from tnt::EcppComponent
 EcppComponent (const Compident &ci, const Urlmapper &um, Comploader &cl)
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 topCall (HttpRequest &request, HttpReply &reply, tnt::QueryParams &qparam)
virtual unsigned operator() (HttpRequest &request, HttpReply &reply, tnt::QueryParams &qparam)
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

Additional Inherited Members

- 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::EcppSubComponent::EcppSubComponent ( EcppComponent p,
const std::string &  name 
)
inline

Member Function Documentation

virtual void tnt::EcppSubComponent::drop ( )
virtual
Subcompident tnt::EcppSubComponent::getCompident ( ) const
inline

Reimplemented from tnt::EcppComponent.

EcppComponent& tnt::EcppSubComponent::getMainComponent ( ) const
inline

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