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

Container for functions that load external file-backed assets. More...

#include "xml_parser_utils.h"

Public Attributes

std::function< std::unique_ptr< fers_signal::RadarSignal >(const std::string &name, const std::filesystem::path &pulse_path, RealType power, RealType carrierFreq, SimId id)> loadWaveform
 Hook to load a pulsed waveform from an external file.
 
std::function< std::unique_ptr< antenna::Antenna >(const std::string &name, const std::string &filename, SimId id)> loadXmlAntenna
 Hook to load an antenna pattern defined in a legacy XML format.
 
std::function< std::unique_ptr< antenna::Antenna >(const std::string &name, const std::string &filename, SimId id)> loadH5Antenna
 Hook to load an antenna pattern from an HDF5 file.
 
std::function< std::unique_ptr< radar::Target >(radar::Platform *platform, const std::string &name, const std::string &filename, unsigned seed, SimId id)> loadFileTarget
 Hook to load a target's Radar Cross Section (RCS) from a file.
 

Detailed Description

Container for functions that load external file-backed assets.

Asset loading operations (such as reading waveforms, antenna patterns, and target RCS data from disk) are delegated to these std::function hooks. This allows the parser to flexibly resolve external file references during the XML parsing phase.

Definition at line 79 of file xml_parser_utils.h.

Member Data Documentation

◆ loadFileTarget

std::function<std::unique_ptr<radar::Target>(radar::Platform* platform, const std::string& name, const std::string& filename, unsigned seed, SimId id)> serial::xml_parser_utils::AssetLoaders::loadFileTarget

Hook to load a target's Radar Cross Section (RCS) from a file.

Definition at line 98 of file xml_parser_utils.h.

Referenced by serial::xml_parser_utils::parseTarget().

◆ loadH5Antenna

std::function<std::unique_ptr<antenna::Antenna>(const std::string& name, const std::string& filename, SimId id)> serial::xml_parser_utils::AssetLoaders::loadH5Antenna

Hook to load an antenna pattern from an HDF5 file.

Definition at line 93 of file xml_parser_utils.h.

Referenced by serial::xml_parser_utils::parseAntenna().

◆ loadWaveform

std::function<std::unique_ptr<fers_signal::RadarSignal>(const std::string& name, const std::filesystem::path& pulse_path, RealType power, RealType carrierFreq, SimId id)> serial::xml_parser_utils::AssetLoaders::loadWaveform

Hook to load a pulsed waveform from an external file.

Definition at line 85 of file xml_parser_utils.h.

Referenced by serial::xml_parser_utils::createDefaultAssetLoaders(), and serial::xml_parser_utils::parseWaveform().

◆ loadXmlAntenna

std::function<std::unique_ptr<antenna::Antenna>(const std::string& name, const std::string& filename, SimId id)> serial::xml_parser_utils::AssetLoaders::loadXmlAntenna

Hook to load an antenna pattern defined in a legacy XML format.

Definition at line 89 of file xml_parser_utils.h.

Referenced by serial::xml_parser_utils::parseAntenna().


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