tnt::Component Class Reference

#include <tnt/component.h>

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

Public Member Functions

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.

Constructor & Destructor Documentation

virtual tnt::Component::~Component ( )
inlinevirtual

Member Function Documentation

unsigned tnt::Component::call ( HttpRequest request,
HttpReply reply,
tnt::QueryParams qparam 
)
inline

Component call - sometimes more readable than operator()

unsigned tnt::Component::call ( HttpRequest ,
HttpReply  
)

Call component without parameters.

virtual void tnt::Component::configure ( const tnt::TntConfig )
virtual
virtual unsigned tnt::Component::endTag ( HttpRequest ,
HttpReply ,
tnt::QueryParams  
)
virtual
virtual std::string tnt::Component::getAttribute ( const std::string &  name,
const std::string &  def = std::string() 
) const
virtual

Get the value of the given attribute, or def if the attribute is unset.

Attributes are set using the ECPP tag <attr>.

virtual unsigned tnt::Component::operator() ( HttpRequest ,
HttpReply ,
tnt::QueryParams  
)
virtual

Reimplemented in tnt::MbComponent.

std::string tnt::Component::scall ( HttpRequest ,
tnt::QueryParams  
)

Get output as a string rather than outputting to stream.

std::string tnt::Component::scall ( HttpRequest )

Get output as a string rather than outputting to stream without query-parameters.

virtual unsigned tnt::Component::topCall ( HttpRequest ,
HttpReply ,
tnt::QueryParams  
)
virtual

Reimplemented in tnt::MbComponent.


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