FERS 0.1.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.
 
std::unordered_map< SimId, std::shared_ptr< timing::Timing > > timing_instances
 Shared timing instances keyed by prototype ID.
 

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 114 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 118 of file xml_parser_utils.h.

◆ loaders

AssetLoaders serial::xml_parser_utils::ParserContext::loaders

The injected asset loaders for external files.

Definition at line 120 of file xml_parser_utils.h.

◆ master_seeder

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

RNG used to generate independent seeds for simulated objects.

Definition at line 119 of file xml_parser_utils.h.

◆ parameters

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

An isolated copy of the simulation parameters being built.

Definition at line 116 of file xml_parser_utils.h.

◆ timing_instances

std::unordered_map<SimId, std::shared_ptr<timing::Timing> > serial::xml_parser_utils::ParserContext::timing_instances

Shared timing instances keyed by prototype ID.

Definition at line 122 of file xml_parser_utils.h.

◆ world

core::World* serial::xml_parser_utils::ParserContext::world = nullptr

Pointer to the World where parsed objects are inserted.

Definition at line 117 of file xml_parser_utils.h.


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