SaltAPI  1.1
An API for the HTTPd / Zia by Salty Studio.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
HelloWorld Class Reference

#include <HelloWorld.hpp>

Inheritance diagram for HelloWorld:
Collaboration diagram for HelloWorld:

Public Member Functions

 HelloWorld (Module::ICore &core)
 
virtual ~HelloWorld ()
 
bool Handle (HTTP::Request *req, HTTP::Response *res, HTTP::ProcessingList *pl)
 
Module::IModuleGetModule (Module::ICore &core) const override
 The function return an instance of the module. More...
 
- Public Member Functions inherited from Module::AModule
 AModule (ICore &core, Type type, std::string const &name)
 
virtual ~AModule ()
 
std::string const & GetName () const override
 
Type GetType () const override
 
bool Load () override
 Method for futur use. More...
 
bool Unload () override
 Method for futur use. More...
 

Additional Inherited Members

- Public Types inherited from Module::IModule
enum  Type {
  Core, Logger, ConfigLoader, Network,
  FileServe, HTTP, Default
}
 
- Protected Attributes inherited from Module::AModule
ICorem_core
 
std::string m_name
 
Type m_type
 

Detailed Description

Definition at line 14 of file HelloWorld.hpp.

Constructor & Destructor Documentation

HelloWorld::HelloWorld ( Module::ICore core)

Definition at line 10 of file HelloWorld.cpp.

Here is the caller graph for this function:

HelloWorld::~HelloWorld ( )
virtual

Definition at line 14 of file HelloWorld.cpp.

Member Function Documentation

Module::IModule * HelloWorld::GetModule ( Module::ICore core) const
overridevirtual

The function return an instance of the module.

Parameters
core
Returns
pointer on module instance

Reimplemented from Module::AModule.

Definition at line 25 of file HelloWorld.cpp.

Here is the call graph for this function:

bool HelloWorld::Handle ( HTTP::Request req,
HTTP::Response res,
HTTP::ProcessingList pl 
)
virtual
Parameters
reqthe request from the previous module
resthe response from the previous module
plthe processsingList from the previous module
Returns

Implements Module::IHTTPHandle.

Definition at line 18 of file HelloWorld.cpp.

Here is the call graph for this function:


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