#include <tnt/ecpp.h>

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

Public Member Functions

 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 void configure (const tnt::TntConfig &)
virtual unsigned topCall (HttpRequest &, HttpReply &, tnt::QueryParams &)
virtual unsigned operator() (HttpRequest &, HttpReply &, tnt::QueryParams &)
virtual unsigned endTag (HttpRequest &, HttpReply &, tnt::QueryParams &)
virtual std::string getAttribute (const std::string &name, const std::string &def=std::string()) const
 Get the value of the given attribute, or def if the attribute is unset.
unsigned call (HttpRequest &request, HttpReply &reply, tnt::QueryParams &qparam)
 Component call - sometimes more readable than operator()
unsigned call (HttpRequest &, HttpReply &)
 Call component without parameters.
std::string scall (HttpRequest &, tnt::QueryParams &)
 Get output as a string rather than outputting to stream.
std::string scall (HttpRequest &)
 Get output as a string rather than outputting to stream without query-parameters.

Protected Member Functions

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

Friends

class EcppSubComponent

Constructor & Destructor Documentation

virtual tnt::EcppComponent::~EcppComponent ( )
protectedvirtual
tnt::EcppComponent::EcppComponent ( const Compident ci,
const Urlmapper um,
Comploader &  cl 
)

Member Function Documentation

template<typename compident_type , typename parameter1_type , typename parameter2_type >
unsigned tnt::EcppComponent::callComp ( const compident_type &  ci,
HttpRequest request,
parameter1_type &  p1,
parameter2_type &  p2 
)
inlineprotected

helper-methods for calling components

template<typename compident_type , typename parameter_type >
unsigned tnt::EcppComponent::callComp ( const compident_type &  ci,
HttpRequest request,
parameter_type &  p1 
)
inlineprotected
template<typename compident_type >
unsigned tnt::EcppComponent::callComp ( const compident_type &  ci,
HttpRequest request 
)
inlineprotected
template<typename parameter1_type , typename parameter2_type >
unsigned tnt::EcppComponent::callSubComp ( const std::string &  sub,
HttpRequest request,
parameter1_type &  p1,
parameter2_type &  p2 
) const

helper-methods for calling subcomponents

template<typename parameter1_type >
unsigned tnt::EcppComponent::callSubComp ( const std::string &  sub,
HttpRequest request,
parameter1_type &  p1 
) const
Component* tnt::EcppComponent::createComp ( const Compident ci) const
protected
Component* tnt::EcppComponent::createComp ( const std::string &  url) const
inlineprotected
Component& tnt::EcppComponent::fetchComp ( const std::string &  url) const
protected
Component& tnt::EcppComponent::fetchComp ( const Compident ci) const
protected
Component & tnt::EcppComponent::fetchComp ( const Subcompident ci) const
inlineprotected
EcppSubComponent& tnt::EcppComponent::fetchSubComp ( const std::string &  sub) const
const Compident& tnt::EcppComponent::getCompident ( ) const
inline

Reimplemented in tnt::EcppSubComponent.

const char* tnt::EcppComponent::getData ( const HttpRequest request,
const char *  def 
) const
protected
void tnt::EcppComponent::registerSubComp ( const std::string &  name,
EcppSubComponent comp 
)
protected
template<typename compident_type , typename parameter1_type >
std::string tnt::EcppComponent::scallComp ( const compident_type &  ci,
HttpRequest request,
parameter1_type &  p1 
)
inlineprotected

helper-methods for fetching contents of components

template<typename compident_type >
std::string tnt::EcppComponent::scallComp ( const compident_type &  ci,
HttpRequest request 
)
inlineprotected
template<typename parameter1_type >
std::string tnt::EcppComponent::scallSubComp ( const std::string &  sub,
HttpRequest request,
parameter1_type &  p1 
) const

helper-methods for fetching contents of subcomponents

Friends And Related Function Documentation

friend class EcppSubComponent
friend

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