VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rwVisualMetaDataEntry.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2018 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
11 #include <readerWriter/rwInt.h>
12 #include <readerWriter/rwReal.h>
13 
19 {
20 public:
22  {
23  Default = 0,
24  Specific = 1,
25  Weighted = 2,
26  Random = 3,
27  WeightedExponential = 4,
28  Variant = 5,
29  Subvariant = 6,
30  Unused = 7,
31  User_Start = 100
32  };
33 
35  parentRegistry = 0);
37  parentRegistry = 0);
38 
40  DtReaderWriterRegistry* parentRegistry = 0);
41 
43  DtReaderWriterRegistry* parentRegistry = 0);
44 
46  DtReaderWriterRegistry* parentRegistry = 0);
47 
49 
51  bool operator==(const DtRwVisualMetaDataEntry& orig) const;
52  bool operator!=(const DtRwVisualMetaDataEntry& orig) const
53  {
54  return !(*this == orig);
55  }
56 
57  virtual ~DtRwVisualMetaDataEntry();
58 
62  virtual const char* readerWriterType() const;
63 
65  static const char* theXmlType();
66 
67  virtual const char* xmlType() const
68  {
69  return theXmlType();
70  }
71 
73 
74  virtual void clear();
75 
77  virtual void setSelectionMethodology(SelectionMethodology);
79  {
80  return (SelectionMethodology)mySelectionMethodology.value();
81  }
82 
85  {
86  return mySelections;
87  }
88 
89  virtual void setSelections(const DtRwNLengthStringVector&);
90 
92  {
93  return mySelections;
94  }
95 
97  virtual void setTopWeightedPercent(double);
98  virtual double topWeightedPercent() const;
99 
101  virtual void setTopWeightedRandomChance(double);
102  virtual double topWeightedRandomChance() const;
103 
104 protected:
112 
116 
122 
127 };
bool operator==(const DtReaderWriter &) const
Equivalence operator.
virtual const char * xmlType() const
Definition: rwVisualMetaDataEntry.h:67
virtual const char * readerWriterType() const
Used to supply a string type that this reader writer type is.
Definition: symbolString.h:20
DtRwNLengthStringVector is a named, readable/writable vector of strings of arbitrary length...
Definition: rwNLengthStringVector.h:28
DtRwInt mySelectionMethodology
The methodology used for the section: 0 - Model default 1 - Specific entry 2 - Weighted average...
Definition: rwVisualMetaDataEntry.h:111
DtRwReal myTopWeightedRandomChance
The percentage chance that a top weighted item is selected.
Definition: rwVisualMetaDataEntry.h:126
Definition: readerWriter.h:85
const DtRwNLengthStringVector & selections() const
Accessor for mySelections.
Definition: rwVisualMetaDataEntry.h:84
Definition: readerWriterRegistry.h:39
SelectionMethodology selectionMethodology() const
Definition: rwVisualMetaDataEntry.h:78
DtRwNLengthStringVector mySelections
The list of values that can be selected from.
Definition: rwVisualMetaDataEntry.h:115
DtRwNLengthStringVector & selections()
Definition: rwVisualMetaDataEntry.h:91
SelectionMethodology
Definition: rwVisualMetaDataEntry.h:21
Description: Readable, Writable int.
Definition: rwInt.h:25
DtRwReal myTopWeightedPercent
The percentage of the total items selected for weighted random selected that are the highest rated to...
Definition: rwVisualMetaDataEntry.h:121
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwVisualMetaDataEntry is a container for a visual meta data file, and, with the meta data within th...
Definition: rwVisualMetaDataEntry.h:18
#define DT_DLL_vrfutil
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfutilDefines.h:34
bool operator!=(const DtRwVisualMetaDataEntry &orig) const
Definition: rwVisualMetaDataEntry.h:52
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
static const char * theXmlType()
The type that is used when archiving to an XML stream.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)