41 virtual DtSimResource* addResource(
const DtEntityType&,
double amount,
int bin = 0);
45 virtual bool removeResource(
const DtEntityType&,
int bin = 0);
47 virtual DtSimResource* lookupResource(
const DtEntityType& resourceName,
int bin = 0);
48 virtual const DtSimResource* lookupResource(
const DtEntityType& resourceName,
int bin = 0)
const;
51 virtual std::vector<DtSimResource*> lookupResources(
const std::vector<DtEntityType>& types,
int bin = 0);
52 virtual std::vector<const DtSimResource*> lookupResources(
const std::vector<DtEntityType>& types,
int bin = 0)
const;
70 virtual const char*
xmlType()
const override
76 virtual void restoreResources(
int bin = 0);
79 virtual std::list<DtEntityType> getResourceTypes(
const std::vector<DtEntityType>& types,
double greaterThanAmount = 0,
int bin = 0)
const;
87 virtual std::shared_ptr<DtSimResourceList> resources(
int bin = 0);
88 virtual std::shared_ptr<const DtSimResourceList> resources(
int bin = 0)
const;
90 virtual std::vector<DtSimResource*> allResources();
91 virtual std::vector<const DtSimResource*> allResources()
const;
94 virtual void setKeepOriginalRWNames(
bool);
97 return myKeepOriginalRWNames;
101 virtual std::vector<int> bins()
const;
112 bool myKeepOriginalRWNames =
true;
virtual DtRwTemplatedListPtr & operator=(const DtRwTemplatedListPtr &orig)
virtual void prePutSelf()
Called before either version of put self (file or environment). Default is no-op. ...
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
virtual void postGetSelf()
Called after either version of getSelf (mtl or environment). Default is no-op.
class DtSimResourceManager:
Definition: simResourceManager.h:19
static const char * theXmlType()
Definition: rwTemplatedList.h:109
Definition: readerWriterRegistry.h:39
ResourceByBinMap myResourceByBinMap
Definition: simResourceManager.h:111
virtual void preGetSelf()
Called before either version of get self (file or environment). Default is no-op. ...
class DtSimResourceList:
Definition: simResourceList.h:18
std::map< int, std::shared_ptr< DtSimResourceList > > ResourceByBinMap
Definition: simResourceManager.h:110
DtSimResource is a class which will define a SISO Enumeration to use as a resource and the quantity o...
Definition: simResource.h:32
Definition: rwTemplatedList.h:34
virtual bool operator==(const DtRwTemplatedListPtr &) const
Equivalence operators.
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...
#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 keepOriginalRWNames() const
Definition: simResourceManager.h:95
virtual const char * xmlType() const override
Routines to archive/dearchive from an XML Environment.
Definition: simResourceManager.h:70
virtual void postPutSelf()
Called after either version of put self (file or environment). Default is no-op.