drogon
C++14/17-based HTTP application framework
Loading...
Searching...
No Matches
drogon::NotFound Class Referencefinal

This class is used by the drogon to generate the 404 page. Users don't use this class directly. More...

#include <drogon/NotFound.h>

Inheritance diagram for drogon::NotFound:
Collaboration diagram for drogon::NotFound:

Public Member Functions

std::string genText (const drogon::HttpViewData &) override
 Generate the text string.
Public Member Functions inherited from drogon::DrObject< NotFound >
const std::string & className () const override
 Get the class name.
bool isClass (const std::string &class_name) const override
 Return true if the class name is 'class_name'.

Additional Inherited Members

Static Public Member Functions inherited from drogon::DrObject< NotFound >
static const std::string & classTypeName ()
Static Public Member Functions inherited from drogon::DrTemplateBase
static std::shared_ptr< DrTemplateBase > newTemplate (const std::string &templateName)
 Create an object of the implementation class.

Detailed Description

This class is used by the drogon to generate the 404 page. Users don't use this class directly.

Member Function Documentation

◆ genText()

std::string drogon::NotFound::genText ( const drogon::HttpViewData & data)
overridevirtual

Generate the text string.

Parameters
datarepresents data rendered in the string in a format according to the template file.

Implements drogon::DrTemplateBase.


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