![]() |
VR-Forces 4.8 Class Documentation
|
This is the top-level resource manager for a DtVrfObject. More...
Public Types | |
| typedef std::list < DtSimResource * > | DtSimResourceList |
| typedef std::pair< const DtSimResource *, DtString > | DtResourceAndFullName |
| typedef std::list < DtResourceAndFullName > | DtResourceAndFullNameList |
Public Member Functions | |
| DtObjectResourceManager (const DtVrfObject *owner) | |
| virtual | ~DtObjectResourceManager () |
| virtual int | findResourcesByName (const DtString &name, DtResourceAndFullNameList &resourceList) const |
| Returns a list with pointers to all the resources that have the specified base name. More... | |
| virtual int | allResouceNames (std::list< DtString > &nameList) const |
| Fills in nameList with the list of fully-qualified resource names currently on the entity. More... | |
| virtual int | allResources (DtResourceAndFullNameList &resourceList) const |
| Fills in resourceList with pointers to all resources on the entity. More... | |
| virtual void | restoreAllResourcesToDefault () |
| Changes all the resource values to the values specified in the parameter files. More... | |
| virtual const DtSimResource * | lookupResource (const DtString &fullName) const |
| Returns a pointer to a resource when the fully qualified name is supplied. More... | |
| virtual DtSimResource * | lookupResource (const DtString &fullName) |
Protected Member Functions | |
| virtual int | allResourcesInSystem (const DtComponentSystem *system, const DtString &parentSystem, DtResourceAndFullNameList &resourceList) const |
Protected Attributes | |
| const DtVrfObject * | myVrfObject |
Private Member Functions | |
| DtObjectResourceManager () | |
| Not implemented. More... | |
| DtObjectResourceManager (const DtObjectResourceManager &orig) | |
| DtObjectResourceManager & | operator= (const DtObjectResourceManager &orig) |
This is the top-level resource manager for a DtVrfObject.
The actual resources are stored in DtSimResourceManager instances owned by the systems on the entity, but this manager has access to all these sub-managers, and is able to look up resource from any of them.
| typedef std::list<DtSimResource*> DtObjectResourceManager::DtSimResourceList |
| typedef std::pair<const DtSimResource*, DtString> DtObjectResourceManager::DtResourceAndFullName |
| typedef std::list<DtResourceAndFullName> DtObjectResourceManager::DtResourceAndFullNameList |
|
private |
Not implemented.
|
private |
| DtObjectResourceManager::DtObjectResourceManager | ( | const DtVrfObject * | owner | ) |
|
virtual |
|
private |
|
virtual |
Returns a list with pointers to all the resources that have the specified base name.
The list also includes the full name of the resource, This is mostly intended for backwards compatibility before resources has qualified names.
|
virtual |
Returns a pointer to a resource when the fully qualified name is supplied.
A full name will look something like "base-system|system1|resource-name"
|
virtual |
|
virtual |
Fills in nameList with the list of fully-qualified resource names currently on the entity.
|
virtual |
Fills in resourceList with pointers to all resources on the entity.
Also supplied the name of each resource.
|
virtual |
Changes all the resource values to the values specified in the parameter files.
This affects all resources in all systems of this entity.
|
protectedvirtual |
|
protected |