34 if (!
p.simulation_name.empty())
36 root.setAttribute(
"name",
p.simulation_name);
40 root.setAttribute(
"name",
"FERS Scenario");
46 for (
const auto& waveform : world.
getWaveforms() | std::views::values)
67 return doc.dumpToString();
Class for managing XML documents.
Class representing a node in an XML document.
static XmlElement create(const std::string_view name)
Create a new XML element by name.
The World class manages the simulator environment.
const std::unordered_map< SimId, std::unique_ptr< antenna::Antenna > > & getAntennas() const noexcept
Retrieves the map of antennas.
const std::unordered_map< SimId, std::unique_ptr< fers_signal::RadarSignal > > & getWaveforms() const noexcept
Retrieves the map of radar signals (waveforms).
const std::unordered_map< SimId, std::unique_ptr< timing::PrototypeTiming > > & getTimings() const noexcept
Retrieves the map of timing prototypes.
const std::vector< std::unique_ptr< radar::Platform > > & getPlatforms() const noexcept
Retrieves the list of platforms.
Wrapper for managing XML documents and elements using libxml2.
Parameters params
Global simulation parameter state.
void serializeAntenna(const antenna::Antenna &antenna, const XmlElement &parent)
Serializes an antenna into a parent XML element.
void serializePlatform(const radar::Platform &platform, const core::World &world, const XmlElement &parent)
Serializes a platform and its attached components into a parent XML element.
void serializeTiming(const timing::PrototypeTiming &timing, const XmlElement &parent)
Serializes a timing object into a parent XML element.
void serializeWaveform(const fers_signal::RadarSignal &waveform, const XmlElement &parent)
Serializes a waveform into a parent XML element.
void serializeParameters(const XmlElement &parent, const params::Parameters &p)
Serializes a Parameters object into a parent XML element.
std::string world_to_xml_string(const core::World &world)
Serializes the entire simulation world into an XML formatted string.
Defines the Parameters struct and provides methods for managing simulation parameters.
Header file for the World class in the simulator.
Provides functions to serialize the simulation world back into the FERS XML format.
Core utility layer for serializing FERS XML scenario files.