VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
munitionDetonationPowerTable.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2016 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include <readerWriter/rwList.h>
14 #include <readerWriter/rwReal.h>
15 #include <readerWriter/rwInt.h>
16 
18 class DtSimMunition;
21 
26 {
27 
28 public:
31 
34  parentRegistry = 0);
35 
38  orig, DtReaderWriterRegistry * parentRegistry = 0);
39 
42 
44 
45  virtual DtMunitionDetonationPowerTable* clone(const DtString & writeName,
46  DtReaderWriterRegistry* parentRegistry = 0) const;
47 
49  virtual DtMunitionDetonationPowerEntry* addMunitionEntry(const DtMunitionDetonationPowerEntry& munEntry);
50 
52  const DtPowerRangeDeterminantList* getDetonationPowers(const DtSimMunition& munition) const;
53 
56  const DtMunitionDispersal* getDispersal(const DtSimMunition& munition) const;
57  DtMunitionDispersal* getDispersal(const DtSimMunition& munition);
58 
60  bool operator==(const DtMunitionDetonationPowerTable& rhs) const;
62  {
63  return !(*this == rhs);
64  }
65 
68  virtual void merge(const DtMunitionDetonationPowerTable* other);
69 
71  virtual DtMunitionDetonationPowerEntry* getDetonationPowerEntry(const DtSimMunition& munition);
72  virtual const DtMunitionDetonationPowerEntry* getDetonationPowerEntry(const DtSimMunition& munition) const;
73 
74 protected:
75 
77  virtual DtListItem* lookupMunitionEntry(const DtSimMunition& munition) const;
78 
81  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
82  const DtVariableBindingsList& variableBindings);
83 
84  virtual void emptyList();
85  virtual void copyList(const DtMunitionDetonationPowerTable & orig);
86 
87  virtual DtMunitionDetonationPowerEntry* addMunitionEntry(DtMunitionDetonationPowerEntry * munEntry);
88 
92  virtual const char* readerWriterType() const;
93 };
94 
A Readable, Writable version of DtList.
Definition: rwList.h:26
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)=0
This method must be overridden by a subclass.
DtMunitionDetonationPowerTable specifies the power of the detonations caused by various munitions...
Definition: munitionDetonationPowerTable.h:25
Definition: readerWriterRegistry.h:39
DtMunitionDispersal specifies how a cluster munition or burst of fire is dispersed around the target...
Definition: munitionDispersal.h:23
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
A readable/writable list of detonation powers listed by type.
Definition: powerRangeDeterminantList.h:18
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
bool operator==(const DtRwList &rhs) const
Iterates over all items and calls the factory to compare.
DtMunitionDetonationPowerEntry.
Definition: munitionDetonationPowerEntry.h:19
const DtRwList & operator=(const DtRwList &orig)
Calls down to DtReaderWriter::operator=(). List elements are not copied.
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is.
bool operator!=(const DtMunitionDetonationPowerTable &rhs) const
Definition: munitionDetonationPowerTable.h:61
DtSimMunition class.
Definition: simMunition.h:34

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)