Webserv
Loading...
Searching...
No Matches
types.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <map>
4#include <string>
5#include <vector>
6
7namespace config {
8
9struct Token;
10class ConfigNode;
11class IArgument;
12
13typedef std::vector<Token> ParsedDirectiveArgs;
14typedef std::map<std::string, ParsedDirectiveArgs> ParsedDirectiveMap;
15typedef std::pair<std::string, ParsedDirectiveArgs> ParsedDirectivePair;
16typedef std::vector<ConfigNode> ConfigNodeVec;
17
19typedef std::vector<ArgumentPtr> ArgumentVector;
20typedef std::map<std::string, ArgumentVector> DirectiveMap;
21
22} // namespace config
A generic node representing a block in the configuration file.
Definition ConfigNode.hpp:15
Definition IArgument.hpp:13
Definition ArgumentFactory.hpp:5
std::vector< Token > ParsedDirectiveArgs
Definition types.hpp:13
std::vector< ConfigNode > ConfigNodeVec
Definition types.hpp:16
std::vector< ArgumentPtr > ArgumentVector
Definition types.hpp:19
IArgument * ArgumentPtr
Definition types.hpp:18
std::map< std::string, ParsedDirectiveArgs > ParsedDirectiveMap
Definition types.hpp:14
std::pair< std::string, ParsedDirectiveArgs > ParsedDirectivePair
Definition types.hpp:15
std::map< std::string, ArgumentVector > DirectiveMap
Definition types.hpp:20
Represents a single lexical token with a type and a literal value.
Definition Token.hpp:28