FERS 1.0.0
The Flexible Extensible Radar Simulator
Loading...
Searching...
No Matches
serial::xml_parser_utils::ParserContext Struct Reference

Encapsulates the state required during the XML parsing process. More...

#include "xml_parser_utils.h"

+ Collaboration diagram for serial::xml_parser_utils::ParserContext:

Public Attributes

params::Parameters parameters
 An isolated copy of the simulation parameters being built.
 
core::Worldworld = nullptr
 Pointer to the World where parsed objects are inserted.
 
std::filesystem::path base_dir
 The directory of the main XML file (used to resolve relative asset paths).
 
std::mt19937 * master_seeder = nullptr
 RNG used to generate independent seeds for simulated objects.
 
AssetLoaders loaders
 The injected asset loaders for external files.
 

Detailed Description

Encapsulates the state required during the XML parsing process.

This context object holds the intermediate simulation parameters, a pointer to the simulation world, the base directory for resolving relative paths, the master random number generator, and the asset loading hooks. It is passed through the parsing functions to aggregate the scenario definition.

Definition at line 110 of file xml_parser_utils.h.

Member Data Documentation

◆ base_dir

std::filesystem::path serial::xml_parser_utils::ParserContext::base_dir

The directory of the main XML file (used to resolve relative asset paths).

Definition at line 114 of file xml_parser_utils.h.

Referenced by serial::parseSimulation(), serial::parseSimulationFromString(), and serial::xml_parser_utils::parseWaveform().

◆ loaders

AssetLoaders serial::xml_parser_utils::ParserContext::loaders

◆ master_seeder

std::mt19937* serial::xml_parser_utils::ParserContext::master_seeder = nullptr

◆ parameters

params::Parameters serial::xml_parser_utils::ParserContext::parameters

◆ world


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