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

Translates a generic ConfigNode tree into strongly-typed config blocks. More...

#include <Mapper.hpp>

Static Public Member Functions

static ServerBlockVec map (ConfigNodeVec const &nodes)

Static Private Member Functions

static void mapServerBlock (ServerBlock &, ConfigNode const &)
static void mapLocationBlock (LocationBlock &, ConfigNode const &)
static void handleLocationBlock (ServerBlock &, ConfigNode const &)

Detailed Description

Translates a generic ConfigNode tree into strongly-typed config blocks.

This class handles the structural mapping from the parser's output (IR) to the final configuration objects. It does not perform semantic validation.

Member Function Documentation

◆ handleLocationBlock()

void config::Mapper::handleLocationBlock ( ServerBlock & b,
ConfigNode const & node )
staticprivate

◆ map()

ServerBlockVec config::Mapper::map ( ConfigNodeVec const & nodes)
static

◆ mapLocationBlock()

void config::Mapper::mapLocationBlock ( LocationBlock & b,
ConfigNode const & node )
staticprivate

◆ mapServerBlock()

void config::Mapper::mapServerBlock ( ServerBlock & b,
ConfigNode const & node )
staticprivate

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