VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ballisticMunitionOverrideList.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2024 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
11 
12 #pragma once
13 
16 #include <readerWriter/rwList.h>
17 #include "vrfutil/rwEntityType.h"
18 #include <map>
19 
23 {
24 public:
26  DtReaderWriterRegistry* parentRegistry = nullptr);
28  DtReaderWriterRegistry* parentRegistry = nullptr);
29 
32  DtReaderWriterRegistry* parentRegistry = nullptr);
35  DtReaderWriterRegistry* parentRegistry = nullptr);
36 
37  virtual ~DtBallisticMunitionOverrideList() override;
38 
40 
41  bool operator==(const DtBallisticMunitionOverrideList& rhs) const;
42 
46  virtual const DtBallisticMunitionOverrideEntry* entry(const DtEntityType& munitionType) const;
47  virtual DtBallisticMunitionOverrideEntry* entry(const DtEntityType& munitionType);
49 
50  virtual void emptyList();
51 
52  virtual const char* readerWriterType() const override;
53  static const char* theXmlType();
54 
55 protected:
57  virtual DtlObjPtr getData(DtlObjPtr args,
58  const DtReaderWriter::SearchPaths& searchPaths,
59  const DtVariableBindingsList& variableBindings) override;
60 
61 private:
62  void copyList(const DtBallisticMunitionOverrideList& orig);
63 
64  typedef std::map<DtSymbolString, DtBallisticMunitionOverrideEntry*> OverrideTable;
66 };
virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) override=0
This method must be overridden by a subclass. Within this method, new instances of the DtReaderWriter...
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
A Readable, Writable version of DtList. This class cannot be used directly, but must be inherited to ...
Definition: rwList.h:26
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
OverrideTable myOverrideTable
Definition: ballisticMunitionOverrideList.h:65
static const char * theXmlType()
The type that is used when archiving to an XML stream.
Definition: readerWriterRegistry.h:39
DtBallisticMunitionOverrideEntry; per-munition overrides for the ballistic gun actuator descriptor...
Definition: ballisticMunitionOverrideEntry.h:27
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
bool operator==(const DtRwList &rhs) const
Iterates over all items and calls the factory to compare.
DtBallisticMunitionOverrideList; a keyed list of per-munition overrides for use on DtBallisticGunDesc...
Definition: ballisticMunitionOverrideList.h:22
virtual const char * readerWriterType() const override
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
std::map< DtSymbolString, DtBallisticMunitionOverrideEntry * > OverrideTable
Definition: ballisticMunitionOverrideList.h:64
const DtRwList & operator=(const DtRwList &orig)
Calls down to DtReaderWriter::operator=(). List elements are not copied.

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)