VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
DtObjectResourceManager Class Reference

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 (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.
virtual int allResouceNames (std::list< DtString > &nameList) const
 Fills in nameList with the list of fully-qualified resource names currently on the entity.
virtual int allResources (DtResourceAndFullNameList &resourceList) const
 Fills in resourceList with pointers to all resources on the entity.
virtual void restoreAllResourcesToDefault ()
 Changes all the resource values to the values specified in the parameter files.
virtual const DtSimResourcelookupResource (const DtString &fullName) const
 Returns a pointer to a resource when the fully qualified name is supplied.
virtual DtSimResourcelookupResource (const DtString &fullName)
 Returns a pointer to a resource when the fully qualified name is supplied.

Protected Member Functions

virtual int allResourcesInSystem (const DtComponentSystem *system, const DtString &parentSystem, DtResourceAndFullNameList &resourceList) const

Protected Attributes

DtVrfObjectmyVrfObject

Private Member Functions

 DtObjectResourceManager ()
 Not implemented.
 DtObjectResourceManager (const DtObjectResourceManager &orig)
 Not implemented.
DtObjectResourceManageroperator= (const DtObjectResourceManager &orig)
 Not implemented.

Detailed Description

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.

Member Typedef Documentation

Constructor & Destructor Documentation

DtObjectResourceManager::DtObjectResourceManager ( )
private

Not implemented.

DtObjectResourceManager::DtObjectResourceManager ( const DtObjectResourceManager orig)
private

Not implemented.

DtObjectResourceManager::DtObjectResourceManager ( DtVrfObject owner)
virtual DtObjectResourceManager::~DtObjectResourceManager ( )
virtual

Member Function Documentation

DtObjectResourceManager& DtObjectResourceManager::operator= ( const DtObjectResourceManager orig)
private

Not implemented.

virtual int DtObjectResourceManager::findResourcesByName ( const DtString name,
DtResourceAndFullNameList resourceList 
) const
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 const DtSimResource* DtObjectResourceManager::lookupResource ( const DtString fullName) const
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 DtSimResource* DtObjectResourceManager::lookupResource ( const DtString fullName)
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 int DtObjectResourceManager::allResouceNames ( std::list< DtString > &  nameList) const
virtual

Fills in nameList with the list of fully-qualified resource names currently on the entity.

virtual int DtObjectResourceManager::allResources ( DtResourceAndFullNameList resourceList) const
virtual

Fills in resourceList with pointers to all resources on the entity.

Also supplied the name of each resource.

virtual void DtObjectResourceManager::restoreAllResourcesToDefault ( )
virtual

Changes all the resource values to the values specified in the parameter files.

This affects all resources in all systems of this entity.

virtual int DtObjectResourceManager::allResourcesInSystem ( const DtComponentSystem system,
const DtString parentSystem,
DtResourceAndFullNameList resourceList 
) const
protectedvirtual

Member Data Documentation

DtVrfObject* DtObjectResourceManager::myVrfObject
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)