VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfutil
rsrcMgr.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1999 MaK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
14
#pragma once
15
16
#include <vlutil/vlHashlist.h>
17
#include "
vrfutil/rwList.h
"
18
19
class
DtReaderWriterRegistry
;
20
class
DtString
;
21
class
DtSimResource
;
22
class
DtListItem;
23
36
37
#include "
vrfutil/vrfutilDefines.h
"
38
class
DT_DLL_vrfutil
DtSimResourceManager
:
public
DtRwList
39
{
40
41
protected
:
42
44
DtSimResourceManager
();
45
46
public
:
47
49
DtSimResourceManager
(
const
DtString
& name,
DtReaderWriterRegistry
*
50
parentRegistry = NULL);
51
DtSimResourceManager
(
const
DtSymbolString
& name,
DtReaderWriterRegistry
*
52
parentRegistry = NULL);
53
55
DtSimResourceManager
(
const
DtString
& name,
const
DtSimResourceManager
& orig,
56
DtReaderWriterRegistry
* parentRegistry = NULL);
57
DtSimResourceManager
(
const
DtSymbolString
& name,
const
DtSimResourceManager
& orig,
58
DtReaderWriterRegistry
* parentRegistry = NULL);
59
61
DtSimResourceManager
&
operator=
(
const
DtSimResourceManager
& orig);
62
63
bool
operator!=
(
const
DtSimResourceManager
& orig)
const
;
64
bool
operator==
(
const
DtSimResourceManager
& orig)
const
;
65
67
virtual
~
DtSimResourceManager
();
68
69
virtual
DtSimResource
* lookupResource(
const
DtString
& resourceName);
70
virtual
DtSimResource
* lookupResource(
const
DtBaseHashKey
& resourceName);
71
72
virtual
const
DtSimResource
* lookupResource(
const
DtString
& resourceName)
const
;
73
virtual
const
DtSimResource
* lookupResource(
const
DtBaseHashKey
& resourceName)
const
;
74
77
virtual
DtSimResource
* addResource(
DtSimResource
* resource);
78
82
virtual
bool
removeResource(
DtSimResource
* resource);
83
84
virtual
DtSimResourceManager
* clone(
const
DtString
& name,
85
DtReaderWriterRegistry
* parentRegistry = NULL)
const
;
86
virtual
DtSimResourceManager
* clone(
const
DtSymbolString
& name,
87
DtReaderWriterRegistry
* parentRegistry = NULL)
const
;
88
92
94
virtual
void
addToHashIndex(
DtSimResource
* resource);
95
97
virtual
void
removeFromHashIndex(
DtSimResource
* resource);
98
101
const
DtList*
resources
()
const
{
return
myHashIndex.keys(); };
102
103
protected
:
105
virtual
void
removeResource(
DtSimResource
* resource, DtListItem* item);
106
virtual
DtlObjPtr
getData
(DtlObjPtr args,
const
DtFilename& searchPath,
107
const
DtVariableBindingsList
& variableBindings);
108
109
protected
:
110
111
DtHashlist
myHashIndex
;
112
113
};
114
115
inline
bool
DtSimResourceManager::operator!=
(
const
DtSimResourceManager
& orig)
const
116
{
117
return
!(*
this
== orig);
118
}
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)