VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
supplyEntry.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include "vrfutil/rwEntityType.h"
14 #include <readerWriter/rwReal.h>
15 #include <readerWriter/rwString.h>
17 #include "vrfutil/vrfRwTypes.h"
18 
20 
27 {
28 public:
30  DtSupplyEntry();
31 
33  DtSupplyEntry(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL);
34  DtSupplyEntry(const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL);
35 
37  DtSupplyEntry(const DtSupplyEntry& orig);
38 
39  DtSupplyEntry(const DtString& name,
40  const DtSupplyEntry& orig,
41  DtReaderWriterRegistry* parentRegistry = NULL);
42 
43  DtSupplyEntry(const DtSymbolString& name,
44  const DtSupplyEntry& orig,
45  DtReaderWriterRegistry* parentRegistry = NULL);
46 
48  const DtSupplyEntry& operator=(const DtSupplyEntry & orig);
49 
50  virtual ~DtSupplyEntry() override;
51 
52  virtual DtSupplyEntry* clone(const DtString& name,
53  DtReaderWriterRegistry* parentRegistry = NULL) const;
54 
55  virtual DtSupplyEntry* clone(const DtSymbolString& name,
56  DtReaderWriterRegistry* parentRegistry = NULL) const;
57 
58 
61  virtual const DtEntityType& supplyType() const;
62  virtual void setSupplyType(const DtEntityType& type);
64 
67  virtual const double maxRate() const;
68  virtual void setMaxRate(const double rate);
70 
73  virtual const int bin() const;
74  virtual void setBin(const int b);
76 
80  virtual const char* readerWriterType() const override;
81 
83  static const char* theXmlType();
84 
85  virtual const char* xmlType() const override
86  {
87  return theXmlType();
88  }
89 
90  bool operator==(const DtSupplyEntry&) const;
91  bool operator!=(const DtSupplyEntry& rhs) const { return !(*this == rhs); };
92 
93 protected:
97 
102 
107 
112 };
113 
114 
115 class DT_DLL_vrfutil DtSupplyEntryList : public DtRwTemplatedListPtr<DtSupplyEntry, true>
116 {
117 public:
120 
122  DtSupplyEntryList(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL)
123  : DtRwTemplatedListPtr<DtSupplyEntry, true>(name, parentRegistry) {};
124 
125  DtSupplyEntryList(const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL)
126  : DtRwTemplatedListPtr<DtSupplyEntry, true>(name, parentRegistry) {};
127 
128  DtSupplyEntryList(const DtString& name, const DtSupplyEntryList& orig,
129  DtReaderWriterRegistry* parentRegistry = NULL)
130  : DtRwTemplatedListPtr<DtSupplyEntry, true>(name, orig, parentRegistry) {};
131 
133  DtReaderWriterRegistry* parentRegistry = NULL)
134  : DtRwTemplatedListPtr<DtSupplyEntry, true>(name, orig, parentRegistry) {};
135 
137  DtReaderWriterRegistry* parentRegistry = NULL)
138  : DtRwTemplatedListPtr<DtSupplyEntry, true>(orig, parentRegistry) {};
139 
140  virtual const char* readerWriterType() const override
141  {
142  return DtSupplyEntryListType;
143  }
144 };
DtSupplyEntryList(const DtString &name, const DtSupplyEntryList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: supplyEntry.h:128
bool operator==(const DtReaderWriter &) const
Equivalence operator.
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...
Definition: supplyEntry.h:140
DtSupplyEntryList(const DtSymbolString &name, const DtSupplyEntryList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: supplyEntry.h:132
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...
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
const char DtSupplyEntryListType[]
Definition: vrfRwTypes.h:179
DtRwEntityType mySupplyType
Parameter Name: supply-type Parameter Description: DIS/RPR entity type enumeration representing the k...
Definition: supplyEntry.h:101
DtSupplyEntry.
Definition: supplyEntry.h:26
Definition: readerWriter.h:85
Definition: readerWriterRegistry.h:39
Definition: supplyEntry.h:115
bool operator!=(const DtSupplyEntry &rhs) const
Definition: supplyEntry.h:91
DtSupplyEntryList()
default constructor
Definition: supplyEntry.h:119
DtSupplyEntryList(const DtSupplyEntryList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: supplyEntry.h:136
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual const char * xmlType() const override
Definition: supplyEntry.h:85
DtRwReal myMaxRate
Parameter Name: max-rate Parameter Description: The maximum rate at which the supply can be transferr...
Definition: supplyEntry.h:110
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
File: rwEntType.h.
Definition: rwEntityType.h:26
DtSupplyEntryList(const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL)
real constructor
Definition: supplyEntry.h:122
Definition: rwTemplatedList.h:34
DtSupplyEntryList(const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: supplyEntry.h:125
#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
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
static const char * theXmlType()
The type that is used when archiving to an XML stream.
DtRwInt myBin
Parameter Name: bin Parameter Description: The bin the resource will be drawn from. Parameter Default: 0 .
Definition: supplyEntry.h:106

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)