VR-Engage
2.3
Loading...
Searching...
No Matches
vreAmmunitionParams.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2025 MAK Technologies
3
** All rights reserved.
4
*******************************************************************************/
5
6
//! \file vreAmmunitionParams.h
7
//! \ingroup vreVrfobjparam
8
//! \brief Ammunition parameters for VREngage
9
//!
10
//! This file defines the DtVreAmmunitionParams class, which manages ammunition
11
//! parameter entries for VREngage simulations. It specializes the base ammunition
12
//! parameters to handle VREngage-specific ammunition properties.
13
14
#pragma once
15
16
#include <
vreVrfobjparam/export.h
>
17
#include <vrfobjparam/ammunitionParams.h>
18
19
20
namespace
makVre
21
{
22
class
DtVreAmmunitionParamsEntry
;
23
24
//! \brief Ammunition parameters for VREngage weapon systems
25
//!
26
//! This class manages a collection of ammunition parameter entries that
27
//! configure the DtVreAmmunitionManager. It extends the base ammunition parameters
28
//! class to support VREngage-specific ammunition properties and behaviors.
29
class
VREVRFOBJPARAM_DLL
DtVreAmmunitionParams
:
public
DtAmmunitionParams
30
{
31
public
:
32
//! \brief Constructor with reader/writer name
33
//! \param rwName The name of this parameters object
34
//! \param parentRegistry Parent registry for reader/writer functionality (optional)
35
//!
36
//! Creates a new ammunition parameters object with the specified name.
37
DtVreAmmunitionParams
(
const
DtString& rwName, DtReaderWriterRegistry* parentRegistry = NULL);
38
39
//! \brief Constructor with reader/writer name as symbol string
40
//! \param rwName The name of this parameters object as a symbol string
41
//! \param parentRegistry Parent registry for reader/writer functionality (optional)
42
//!
43
//! Creates a new ammunition parameters object with the specified name.
44
DtVreAmmunitionParams
(
const
DtSymbolString& rwName, DtReaderWriterRegistry* parentRegistry = NULL);
45
46
//! \brief Copy constructor
47
//! \param orig The source parameters object to copy from
48
//! \param parentRegistry Parent registry for reader/writer functionality (optional)
49
//!
50
//! Creates a new ammunition parameters object as a copy of the provided original.
51
DtVreAmmunitionParams
(
const
DtVreAmmunitionParams
& orig, DtReaderWriterRegistry* parentRegistry = NULL);
52
53
//! \brief Assignment operator
54
//! \param orig The source parameters object to copy from
55
//! \return Reference to this parameters object after assignment
56
//!
57
//! Assigns the contents of the provided parameters object to this one.
58
DtVreAmmunitionParams
&
operator=
(
const
DtVreAmmunitionParams
& orig);
59
60
//! \brief Virtual destructor
61
//!
62
//! Cleans up resources used by the parameters object.
63
virtual
~DtVreAmmunitionParams
()
override
;
64
65
//! \brief Empties the ammunition parameter entries list
66
//! \param clearMemory Whether to also clear allocated memory
67
//!
68
//! Removes all ammunition parameter entries from the list, optionally
69
//! freeing the associated memory.
70
virtual
void
emptyList
(
bool
clearMemory)
override
;
71
72
//! \brief Copies ammunition parameter entries from another list
73
//! \param source The source ammunition parameters to copy from
74
//!
75
//! Copies all ammunition parameter entries from the provided source parameters.
76
virtual
void
copyList
(
const
DtAmmunitionParams& source)
override
;
77
78
//! \brief Creates a new ammunition parameter entry
79
//! \return Pointer to a newly created ammunition parameter entry
80
//!
81
//! Factory method that creates a new VREngage-specific ammunition parameter entry.
82
//! This method enables creating the appropriate derived entry type for VREngage.
83
virtual
DtAmmunitionParamsEntry*
createAmmunitionTableEntry
()
const override
;
84
};
85
}
// namespace makVre
makVre::DtVreAmmunitionParamsEntry
Ammunition parameter entry for VREngage weapon systems.
Definition
vreAmmunitionParamsEntry.h:28
makVre::DtVreAmmunitionParams::emptyList
virtual void emptyList(bool clearMemory) override
Empties the ammunition parameter entries list.
makVre::DtVreAmmunitionParams::operator=
DtVreAmmunitionParams & operator=(const DtVreAmmunitionParams &orig)
Assignment operator.
makVre::DtVreAmmunitionParams::DtVreAmmunitionParams
DtVreAmmunitionParams(const DtSymbolString &rwName, DtReaderWriterRegistry *parentRegistry=NULL)
Constructor with reader/writer name as symbol string.
makVre::DtVreAmmunitionParams::~DtVreAmmunitionParams
virtual ~DtVreAmmunitionParams() override
Virtual destructor.
makVre::DtVreAmmunitionParams::createAmmunitionTableEntry
virtual DtAmmunitionParamsEntry * createAmmunitionTableEntry() const override
Creates a new ammunition parameter entry.
makVre::DtVreAmmunitionParams::DtVreAmmunitionParams
DtVreAmmunitionParams(const DtString &rwName, DtReaderWriterRegistry *parentRegistry=NULL)
Constructor with reader/writer name.
makVre::DtVreAmmunitionParams::DtVreAmmunitionParams
DtVreAmmunitionParams(const DtVreAmmunitionParams &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Copy constructor.
makVre::DtVreAmmunitionParams::copyList
virtual void copyList(const DtAmmunitionParams &source) override
Copies ammunition parameter entries from another list.
export.h
Export macros for the VREngage Object Parameter library.
VREVRFOBJPARAM_DLL
#define VREVRFOBJPARAM_DLL
Platform-specific DLL export/import declaration.
Definition
export.h:27
makVre
!
Definition
glsVreMessageUtil.h:50
Generated on 2026-10-22 from SVN revision 296863 - Copyright © 2005-2026 MAK Technologies. All Rights Reserved.