Webserv
Loading...
Searching...
No Matches
config::DirectiveHandler Class Reference

#include <DirectiveHandler.hpp>

Public Member Functions

void process (ServerBlock &block, const std::string &key, const StringVector &args)
void process (ServerBlock &block, DirectiveMap const &map)
void process (LocationBlock &block, const std::string &key, const StringVector &args)
void process (LocationBlock &block, DirectiveMap const &map)

Static Public Member Functions

static DirectiveHandlergetInstance ()

Private Types

typedef void(DirectiveHandler::* GenericHandler) (Block &, const StringVector &)
typedef void(DirectiveHandler::* ServerHandler) (ServerBlock &, const StringVector &)
typedef void(DirectiveHandler::* LocationHandler) (LocationBlock &, const StringVector &)
typedef std::map< std::string, GenericHandlerGenericHandlerMap
typedef std::map< std::string, ServerHandlerServerHandlerMap
typedef std::map< std::string, LocationHandlerLocationHandlerMap

Private Member Functions

void handleListen (ServerBlock &server, const StringVector &args)
void handleRoot (Block &block, const StringVector &args)
 DirectiveHandler ()
 ~DirectiveHandler ()
 DirectiveHandler (const DirectiveHandler &)
DirectiveHandleroperator= (const DirectiveHandler &)

Private Attributes

GenericHandlerMap genericHandlers_
ServerHandlerMap serverHandlers_
LocationHandlerMap locationHandlers_

Member Typedef Documentation

◆ GenericHandler

typedef void(DirectiveHandler::* config::DirectiveHandler::GenericHandler) (Block &, const StringVector &)
private

◆ GenericHandlerMap

typedef std::map<std::string, GenericHandler> config::DirectiveHandler::GenericHandlerMap
private

◆ LocationHandler

typedef void(DirectiveHandler::* config::DirectiveHandler::LocationHandler) (LocationBlock &, const StringVector &)
private

◆ LocationHandlerMap

typedef std::map<std::string, LocationHandler> config::DirectiveHandler::LocationHandlerMap
private

◆ ServerHandler

typedef void(DirectiveHandler::* config::DirectiveHandler::ServerHandler) (ServerBlock &, const StringVector &)
private

◆ ServerHandlerMap

typedef std::map<std::string, ServerHandler> config::DirectiveHandler::ServerHandlerMap
private

Constructor & Destructor Documentation

◆ DirectiveHandler() [1/2]

config::DirectiveHandler::DirectiveHandler ( )
private

◆ ~DirectiveHandler()

config::DirectiveHandler::~DirectiveHandler ( )
private

◆ DirectiveHandler() [2/2]

config::DirectiveHandler::DirectiveHandler ( const DirectiveHandler & )
private

Member Function Documentation

◆ getInstance()

DirectiveHandler & config::DirectiveHandler::getInstance ( )
static

◆ handleListen()

void config::DirectiveHandler::handleListen ( ServerBlock & server,
const StringVector & args )
private

◆ handleRoot()

void config::DirectiveHandler::handleRoot ( Block & block,
const StringVector & args )
private

◆ operator=()

DirectiveHandler & config::DirectiveHandler::operator= ( const DirectiveHandler & )
private

◆ process() [1/4]

void config::DirectiveHandler::process ( LocationBlock & block,
const std::string & key,
const StringVector & args )

◆ process() [2/4]

void config::DirectiveHandler::process ( LocationBlock & block,
DirectiveMap const & map )

◆ process() [3/4]

void config::DirectiveHandler::process ( ServerBlock & block,
const std::string & key,
const StringVector & args )

◆ process() [4/4]

void config::DirectiveHandler::process ( ServerBlock & block,
DirectiveMap const & map )

Member Data Documentation

◆ genericHandlers_

GenericHandlerMap config::DirectiveHandler::genericHandlers_
private

◆ locationHandlers_

LocationHandlerMap config::DirectiveHandler::locationHandlers_
private

◆ serverHandlers_

ServerHandlerMap config::DirectiveHandler::serverHandlers_
private

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