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 
74  virtual const char* readerWriterType() const override;
75 
77  static const char* theXmlType();
78 
79  virtual const char* xmlType() const override
80  {
81  return theXmlType();
82  }
83 
84  bool operator==(const DtSupplyEntry&) const;
85  bool operator!=(const DtSupplyEntry& rhs) const { return !(*this == rhs); };
86 
87 protected:
91 
96 
101 };
102 
103 
104 class DT_DLL_vrfutil DtSupplyEntryList : public DtRwTemplatedListPtr<DtSupplyEntry, true>
105 {
106 public:
109 
111  DtSupplyEntryList(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL)
112  : DtRwTemplatedListPtr<DtSupplyEntry, true>(name, parentRegistry) {};
113 
114  DtSupplyEntryList(const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL)
115  : DtRwTemplatedListPtr<DtSupplyEntry, true>(name, parentRegistry) {};
116 
117  DtSupplyEntryList(const DtString& name, const DtSupplyEntryList& orig,
118  DtReaderWriterRegistry* parentRegistry = NULL)
119  : DtRwTemplatedListPtr<DtSupplyEntry, true>(name, orig, parentRegistry) {};
120 
122  DtReaderWriterRegistry* parentRegistry = NULL)
123  : DtRwTemplatedListPtr<DtSupplyEntry, true>(name, orig, parentRegistry) {};
124 
126  DtReaderWriterRegistry* parentRegistry = NULL)
127  : DtRwTemplatedListPtr<DtSupplyEntry, true>(orig, parentRegistry) {};
128 
129  virtual const char* readerWriterType() const override
130  {
131  return DtSupplyEntryListType;
132  }
133 };
DtSupplyEntryList(const DtString &name, const DtSupplyEntryList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: supplyEntry.h:117
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:129
DtSupplyEntryList(const DtSymbolString &name, const DtSupplyEntryList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: supplyEntry.h:121
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:176
DtRwEntityType mySupplyType
Parameter Name: supply-type Parameter Description: DIS/RPR entity type enumeration representing the k...
Definition: supplyEntry.h:95
DtSupplyEntry.
Definition: supplyEntry.h:26
Definition: readerWriter.h:85
Definition: readerWriterRegistry.h:39
Definition: supplyEntry.h:104
bool operator!=(const DtSupplyEntry &rhs) const
Definition: supplyEntry.h:85
DtSupplyEntryList()
default constructor
Definition: supplyEntry.h:108
DtSupplyEntryList(const DtSupplyEntryList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: supplyEntry.h:125
virtual const char * xmlType() const override
Definition: supplyEntry.h:79
DtRwReal myMaxRate
Parameter Name: max-rate Parameter Description: The maximum rate at which the supply can be transferr...
Definition: supplyEntry.h:99
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:111
Definition: rwTemplatedList.h:34
DtSupplyEntryList(const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: supplyEntry.h:114
#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.

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)