VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
objectResourceManager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2019 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 #include <list>
10 
11 class DtString;
12 class DtSimResource;
13 class DtComponentSystem;
14 class DtLocalObject;
15 
22 {
23 private:
25 
28  DtObjectResourceManager& operator=(const DtObjectResourceManager& orig);
30 
31 public:
33  virtual ~DtObjectResourceManager();
34 
35  typedef std::list<DtSimResource*> DtSimResourceList;
36 
37  typedef std::pair<const DtSimResource*, DtString> DtResourceAndFullName;
38  typedef std::list<DtResourceAndFullName> DtResourceAndFullNameList;
39 
44  virtual int findResourcesByName(const DtString& name, DtResourceAndFullNameList& resourceList) const;
45 
48 
49  virtual const DtSimResource* lookupResource(const DtString& fullName) const;
50  virtual DtSimResource* lookupResource(const DtString& fullName);
52 
55  virtual int allResouceNames(std::list<DtString>& nameList) const;
56 
59  virtual int allResources(DtResourceAndFullNameList& resourceList) const;
60 
64  virtual void restoreAllResourcesToDefault();
65 
66 protected:
67  virtual int allResourcesInSystem(const DtComponentSystem* system,
68  const DtString& parentSystem, DtResourceAndFullNameList& resourceList) const;
69 
70 protected:
72 };
73 
75 DT_DLL_vrfobjcore DtString DtBaseResourceName(const DtString& fullResourceName);
std::pair< const DtSimResource *, DtString > DtResourceAndFullName
Definition: objectResourceManager.h:37
DtLocalObject * myVrfObject
Definition: objectResourceManager.h:71
A DtComponentSystem is a collection of DtSimComponents that are associated with each other...
Definition: componentSystem.h:35
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
std::list< DtResourceAndFullName > DtResourceAndFullNameList
Definition: objectResourceManager.h:38
This is the top-level resource manager for a DtLocalObject. The actual resources are stored in DtSimR...
Definition: objectResourceManager.h:21
DtSimResource is an abstract base class that can be used to create a hierarchical resource list of a ...
Definition: simResource.h:41
std::list< DtSimResource * > DtSimResourceList
Definition: objectResourceManager.h:35
DT_DLL_vrfobjcore DtString DtBaseResourceName(const DtString &fullResourceName)
A locally simulated VRF object. Holds all internal and external data for the object, and provides access to both the current frame and next frame state data for the object. All current frame data is read-only, and next-frame data can be written to. No thread safety guarantees are made on this object during the simulation frame and it should only be accessed by the thread that is simulating the object.
Definition: localObject.h:86

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)