Webserv
Loading...
Searching...
No Matches
ListenDirective.hpp
Go to the documentation of this file.
1#pragma once
2
3#include "IDirective.hpp"
4
5namespace config {
6
7class ListenDirective : public IDirective {
8public:
9 void process(Block &b, ParsedDirectiveArgs const &args) const;
10 std::string const &getName() const { return name_; }
11
12private:
13 static const std::string name_;
14};
15
16} // namespace config
Base class for configuration blocks like 'server' and 'location'.
Definition Block.hpp:15
Defines the contract for a configuration directive handler.
Definition IDirective.hpp:18
Definition ListenDirective.hpp:7
std::string const & getName() const
Gets the name of the directive.
Definition ListenDirective.hpp:10
void process(Block &b, ParsedDirectiveArgs const &args) const
The primary logic for processing the directive's arguments.
Definition ListenDirective.cpp:15
static const std::string name_
Definition ListenDirective.hpp:13
Definition ArgumentFactory.hpp:5
std::vector< Token > ParsedDirectiveArgs
Definition types.hpp:13