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

A generic node representing a block in the configuration file. More...

#include <ConfigNode.hpp>

Public Member Functions

 ConfigNode ()
 ConfigNode (std::string const &conf_name)

Public Attributes

std::string name
DirectiveArgs args
DirectiveMap directives
ConfigNodeVec children

Detailed Description

A generic node representing a block in the configuration file.

This class serves as the Intermediate Representation (IR) of the config file. Each ConfigNode can represent a block like 'server' or 'location', holding its own directives and any nested child blocks.

Constructor & Destructor Documentation

◆ ConfigNode() [1/2]

config::ConfigNode::ConfigNode ( )
inline

◆ ConfigNode() [2/2]

config::ConfigNode::ConfigNode ( std::string const & conf_name)
inline

Member Data Documentation

◆ args

DirectiveArgs config::ConfigNode::args

◆ children

ConfigNodeVec config::ConfigNode::children

◆ directives

DirectiveMap config::ConfigNode::directives

◆ name

std::string config::ConfigNode::name

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