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();
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;
81 
83  static const char* theXmlType();
84 
85  virtual const char* xmlType() const
86  {
87  return theXmlType();
88  }
89 
90 protected:
91  virtual void postGetSelf();
92 
93 protected:
94 
98 
106 
112 
114 
118  unsigned myFuzeType;
119 };
120 
122 class DT_DLL_vrfobjparam DtRwDetonationTableResultsList : public DtRwTemplatedListPtr<DtRwDetonationTableResult, true>
123 {
124 public:
125  DtRwDetonationTableResultsList(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL);
126  DtRwDetonationTableResultsList(const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL);
127 
128  virtual int detonationResult(int fuze) const;
129 
131  virtual void setDetonationResult(int fuze, int r);
132 
134  virtual void removeDetonationResult(int fuze);
135 
136 protected:
138  virtual void postGetSelf();
139 
140 protected:
142 };
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...
DtRwString myDetonationResultString
Parameter Name: result Parameter Description: The detonation result to use. Parameter Default Value: ...
Definition: detonationTableResults.h:111
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:118
#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:141
DtRwString myFuzeTypeString
Parameter Name: fuze-type Parameter Description: The type of fuze that this result represents...
Definition: detonationTableResults.h:105
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:122
unsigned myDetonationResult
Integer value converted from the string. Should match one of the SISO detonation result enumerated va...
Definition: detonationTableResults.h:117
virtual const char * xmlType() const
Definition: detonationTableResults.h:85

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)