VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfutil
modelSet.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2007 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: modelSet.h,v $ $Revision: 1.4 $ $State: Exp $
7
*******************************************************************************/
8
11
12
#ifndef DtModelSet_H_
13
#define DtModelSet_H_
14
17
18
#include "
vrfutil/rwList.h
"
19
#include "
vrfutil/rwInt.h
"
20
#include <vlutil/vlString.h>
21
#include "
vrfutil/vrfutilDefines.h
"
22
23
class
DtModelSetEntry
;
24
class
DtFilename;
25
class
DtObjectType
;
26
27
#define LATEST_MODEL_SET_VERSION 1
28
29
class
DT_DLL_vrfutil
DtModelSet
:
public
DtRwList
30
{
31
public
:
32
34
DtModelSet
();
35
36
DtModelSet
(
const
DtString
& name,
DtReaderWriterRegistry
*
37
parentRegistry = NULL);
38
40
virtual
~
DtModelSet
();
41
43
DtModelSet
(
const
DtModelSet
& orig,
44
DtReaderWriterRegistry
* parentRegistry = NULL);
45
47
DtModelSet
&
operator=
(
const
DtModelSet
& orig);
48
49
virtual
bool
load(
const
DtFilename&);
50
virtual
bool
save(
const
DtFilename&);
51
52
virtual
DtModelSetEntry
* find(
const
DtObjectType
&)
const
;
53
virtual
DtModelSetEntry
* findMatchingPattern(
const
DtObjectType
&)
const
;
54
virtual
DtModelSetEntry
* findByUniqueID(
const
DtString
&)
const
;
55
virtual
DtModelSetEntry
* findByLabel(
const
DtString
&)
const
;
56
57
virtual
void
setComment(
const
DtString
&);
58
virtual
const
DtString
comment()
const
;
59
60
static
DtModelSet
* create(
const
DtString
&,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
61
63
DtObjectType
objectTypeFor(
const
DtString
& label)
const
;
64
66
virtual
DtModelSetEntry
* addModel(
DtModelSetEntry
*);
67
68
virtual
void
emptyList();
69
72
virtual
void
entitiesForObjectType(
const
DtObjectType
& o, std::list<DtString>& list)
const
;
73
75
76
int
version()
const
;
77
79
virtual
DtString
createUniqueID(
const
DtModelSetEntry
*)
const
;
80
81
protected
:
84
virtual
DtlObjPtr
getData
(DtlObjPtr args,
const
DtFilename& searchPath,
85
const
DtVariableBindingsList
& variableBindings);
86
88
void
copyList(
const
DtModelSet
& orig);
90
void
clear();
91
virtual
void
writeSelf
(FILE* fp,
int
i,
bool
writeUnspecified,
92
const
DtFilename& path);
93
94
protected
:
95
DtString
myFilename
;
96
DtString
myComment
;
97
DtRwInt
myVersion
;
98
};
99
100
101
inline
int
DtModelSet::version
()
const
102
{
103
return
myVersion
;
104
}
105
106
#endif
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
)