VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtVreSimulationModelSetLoader Class Reference

Detailed Description

This class extends the base simulation model set loader with the ability to load and save VREngage-specific extensions to the ammunition table in a Simulation Model Set (SMS). It handles the creation of VREngage-specific ammunition parameters and ensures proper serialization of extended data.

#include <vreSimulationModelSetLoader.h>

Inheritance diagram for makVre::DtVreSimulationModelSetLoader:
[legend]

Public Member Functions

 DtVreSimulationModelSetLoader (makVrv::DtDe &de)
 
virtual ~DtVreSimulationModelSetLoader () override
 
virtual bool saveAmmunitionTable () override
 

Protected Member Functions

virtual DtAmmunitionParams * createAmmunitionParameters () const override
 

Private Member Functions

 DtVreSimulationModelSetLoader (const DtVreSimulationModelSetLoader &other)
 
DtVreSimulationModelSetLoaderoperator= (const DtVreSimulationModelSetLoader &other)
 

Constructor & Destructor Documentation

◆ DtVreSimulationModelSetLoader() [1/2]

makVre::DtVreSimulationModelSetLoader::DtVreSimulationModelSetLoader ( makVrv::DtDe & de)

Constructor.

Parameters
deThe document environment providing access to application resources

Creates a new simulation model set loader for VREngage with the specified document environment.

References de().

Referenced by DtVreSimulationModelSetLoader(), and operator=().

◆ ~DtVreSimulationModelSetLoader()

virtual makVre::DtVreSimulationModelSetLoader::~DtVreSimulationModelSetLoader ( )
overridevirtual

Destructor.

Cleans up resources used by the simulation model set loader.

◆ DtVreSimulationModelSetLoader() [2/2]

makVre::DtVreSimulationModelSetLoader::DtVreSimulationModelSetLoader ( const DtVreSimulationModelSetLoader & other)
private

Copy constructor (not implemented)

Parameters
otherThe source object

Copy constructor is private and not implemented to prevent copying.

References DtVreSimulationModelSetLoader().

Member Function Documentation

◆ saveAmmunitionTable()

virtual bool makVre::DtVreSimulationModelSetLoader::saveAmmunitionTable ( )
overridevirtual

Saves the ammunition table with VREngage-specific extensions.

Returns
True if the save operation was successful, false otherwise

Overrides the base implementation to use VREngage-specific ammunition parameters. This corrects the issue with the standard VR-Forces implementation using DtAmmunitionParams on the stack instead of the derived DtVreAmmunitionParams, which has VREngage-specific extensions. This override replaces the stack variable with a call to createAmmunitionParameters(), which creates the correct derived type.

Note
This function should be removed once VREngage builds against a version of VR-Forces that has resolved defect Jira VRF-2152.

◆ createAmmunitionParameters()

virtual DtAmmunitionParams * makVre::DtVreSimulationModelSetLoader::createAmmunitionParameters ( ) const
overrideprotectedvirtual

Creates VREngage-specific ammunition parameters.

Returns
Pointer to the created ammunition parameters object

Overrides the base implementation to create the derived DtVreAmmunitionParameters, which is the extended type used by VREngage. This enables support for VREngage-specific extensions to ammunition parameters.

◆ operator=()

DtVreSimulationModelSetLoader & makVre::DtVreSimulationModelSetLoader::operator= ( const DtVreSimulationModelSetLoader & other)
private

Assignment operator (not implemented)

Parameters
otherThe source object
Returns
Reference to this object

Assignment operator is private and not implemented to prevent assignment.

References DtVreSimulationModelSetLoader().


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