VR-Forces 5.0.2 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();
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 DtString& internalName() const;
68  virtual void setInternalName(const DtString& internalName);
70 
73  virtual const double maxRate() const;
74  virtual void setMaxRate(const double rate);
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  bool operator==(const DtSupplyEntry&) const;
91  bool operator!=(const DtSupplyEntry& rhs) const { return !(*this == rhs); };
92 
93 protected:
97 
102 
106 
111 };
112 
113 
114 class DT_DLL_vrfutil DtSupplyEntryList : public DtRwTemplatedListPtr<DtSupplyEntry, true>
115 {
116 public:
119 
121  DtSupplyEntryList(const DtString& name, DtReaderWriterRegistry* parentRegistry = NULL)
122  : DtRwTemplatedListPtr<DtSupplyEntry, true>(name, parentRegistry) {};
123 
124  DtSupplyEntryList(const DtSymbolString& name, DtReaderWriterRegistry* parentRegistry = NULL)
125  : DtRwTemplatedListPtr<DtSupplyEntry, true>(name, parentRegistry) {};
126 
127  DtSupplyEntryList(const DtString& name, const DtSupplyEntryList& orig,
128  DtReaderWriterRegistry* parentRegistry = NULL)
129  : DtRwTemplatedListPtr<DtSupplyEntry, true>(name, orig, parentRegistry) {};
130 
132  DtReaderWriterRegistry* parentRegistry = NULL)
133  : DtRwTemplatedListPtr<DtSupplyEntry, true>(name, orig, parentRegistry) {};
134 
136  DtReaderWriterRegistry* parentRegistry = NULL)
137  : DtRwTemplatedListPtr<DtSupplyEntry, true>(orig, parentRegistry) {};
138 
139  virtual const char* readerWriterType() const
140  {
141  return DtSupplyEntryListType;
142  }
143 };
DtSupplyEntryList(const DtString &name, const DtSupplyEntryList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: supplyEntry.h:127
bool operator==(const DtReaderWriter &) const
Equivalence operator.
DtSupplyEntryList(const DtSymbolString &name, const DtSupplyEntryList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: supplyEntry.h:131
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...
Definition: symbolString.h:20
const char DtSupplyEntryListType[]
Definition: vrfRwTypes.h:168
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
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
Definition: supplyEntry.h:114
bool operator!=(const DtSupplyEntry &rhs) const
Definition: supplyEntry.h:91
DtSupplyEntryList()
default constructor
Definition: supplyEntry.h:118
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...
Definition: supplyEntry.h:139
DtSupplyEntryList(const DtSupplyEntryList &orig, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: supplyEntry.h:135
DtRwReal myMaxRate
Parameter Name: max-rate Parameter Description: The maximum rate at which the supply can be transferr...
Definition: supplyEntry.h:109
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
File: rwEntType.h.
Definition: rwEntityType.h:23
DtSupplyEntryList(const DtString &name, DtReaderWriterRegistry *parentRegistry=NULL)
real constructor
Definition: supplyEntry.h:121
virtual const char * xmlType() const
Definition: supplyEntry.h:85
A version of DtRwList that contains a homogeneous list of a templated RW type. The templated type spe...
Definition: rwTemplatedList.h:26
DtSupplyEntryList(const DtSymbolString &name, DtReaderWriterRegistry *parentRegistry=NULL)
Definition: supplyEntry.h:124
#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.
DtRwString myInternalName
Parameter Name: internal-name Parameter Description: The resource name of the supply. .
Definition: supplyEntry.h:105

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)