VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
detonationTableResults.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 #include <readerWriter/rwString.h>
12 
15 {
16 public:
19 
22  parentRegistry = NULL);
23 
25  parentRegistry = NULL);
26 
29  DtReaderWriterRegistry* parentRegistry = NULL);
30 
32  DtReaderWriterRegistry* parentRegistry = NULL);
33 
35 
38 
40  virtual ~DtRwDetonationTableResult() override;
41 
42  virtual DtRwDetonationTableResult* clone(const DtString& name,
43  DtReaderWriterRegistry* parentRegistry = NULL) const;
44 
45  virtual DtRwDetonationTableResult* clone(const DtSymbolString& name,
46  DtReaderWriterRegistry* parentRegistry = NULL) const;
47 
50  virtual int detonationResult() const;
51  virtual void setDetonationResult(int r);
53 
56  virtual int fuzeType() const;
57  virtual void setFuzeType(int r);
59 
61  bool operator==(const DtRwDetonationTableResult& rhs) const;
62  bool operator!=(const DtRwDetonationTableResult& rhs) const
63  {
64  return !(*this == rhs);
65  }
66 
68  static std::map<DtString, unsigned>& detonationResultMapping();
69  static int detonationResult(const DtString&);
70  static DtString detonationResultString(int);
71 
73  static std::map<DtString, unsigned>& fuzeTypeMapping();
74  static int fuzeType(const DtString&);
75  static DtString fuzeTypeString(int);
76 
80  virtual const char* readerWriterType() const override;
81 
83  static const char* theXmlType();
84 
85  virtual const char* xmlType() const override {
86  return theXmlType();
87  }
88 
89 protected:
90  virtual void postGetSelf() override;
91 
92 protected:
93 
97 
105 
111 
113 
117  unsigned myFuzeType;
118 };
119 
121 class DT_DLL_vrfobjparam DtRwDetonationTableResultsList : public DtRwTemplatedListPtr<DtRwDetonationTableResult, true>
122 {
123 public:
124  DtRwDetonationTableResultsList(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL);
125  DtRwDetonationTableResultsList(const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL);
126 
127  virtual int detonationResult(int fuze) const;
128 
130  virtual void setDetonationResult(int fuze, int r);
131 
133  virtual void removeDetonationResult(int fuze);
134 
135 protected:
137  virtual void postGetSelf() override;
138 
139 protected:
141 };
bool operator==(const DtReaderWriter &) const
Equivalence operator.
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is. This can be used in place of dynamic-ca...
virtual const char * xmlType() const override
Definition: detonationTableResults.h:85
DtRwString myDetonationResultString
Parameter Name: result Parameter Description: The detonation result to use. Parameter Default Value: ...
Definition: detonationTableResults.h:110
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
unsigned myFuzeType
Definition: detonationTableResults.h:117
#define DT_DLL_vrfobjparam
This file is used to determine how to build.
Definition: vrfobjparamDefines.h:28
virtual void postGetSelf()
Called after either version of getSelf (mtl or environment). Default is no-op.
Definition: readerWriter.h:85
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
bool operator!=(const DtRwDetonationTableResult &rhs) const
Definition: detonationTableResults.h:62
unsigned myDefaultDetonationResult
Definition: detonationTableResults.h:140
DtRwString myFuzeTypeString
Parameter Name: fuze-type Parameter Description: The type of fuze that this result represents...
Definition: detonationTableResults.h:104
Definition: rwTemplatedList.h:34
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
DtRwDetonationTableResultParam specifies a detonation result.
Definition: detonationTableResults.h:14
static const char * theXmlType()
The type that is used when archiving to an XML stream.
!!!!!!!!!!!!
Definition: detonationTableResults.h:121
unsigned myDetonationResult
Integer value converted from the string. Should match one of the SISO detonation result enumerated va...
Definition: detonationTableResults.h:116

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)