VR-Forces 4.3 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrfobjparam
modelSet.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
8
9
#pragma once
10
13
14
#include "
vrfutil/rwList.h
"
15
#include "
vrfutil/rwInt.h
"
16
#include <vlutil/vlString.h>
17
#include "
vrfobjparam/vrfobjparamDefines.h
"
18
19
class
DtModelSetEntry
;
20
class
DtFilename;
21
class
DtObjectType;
22
23
#define LATEST_MODEL_SET_VERSION 1
24
25
class
DT_DLL_vrfobjparam
DtModelSet
:
public
DtRwList
26
{
27
public
:
28
30
DtModelSet
();
31
32
DtModelSet
(
const
DtString
& name,
DtReaderWriterRegistry
*
33
parentRegistry = NULL);
34
36
virtual
~
DtModelSet
();
37
39
DtModelSet
(
const
DtModelSet
& orig,
40
DtReaderWriterRegistry
* parentRegistry = NULL);
41
43
DtModelSet
&
operator=
(
const
DtModelSet
& orig);
44
45
virtual
bool
load(
const
DtFilename&);
46
virtual
bool
save(
const
DtFilename&);
47
48
virtual
DtModelSetEntry
* find(
const
DtObjectType&)
const
;
49
virtual
DtModelSetEntry
* findMatchingPattern(
const
DtObjectType&)
const
;
50
virtual
DtModelSetEntry
* findByUniqueID(
const
DtString
&)
const
;
51
virtual
DtModelSetEntry
* findByLabel(
const
DtString
&)
const
;
52
53
virtual
void
setComment(
const
DtString
&);
54
virtual
const
DtString
comment()
const
;
55
56
static
DtModelSet
* create(
const
DtString
&,
DtReaderWriterRegistry
*
const
parentRegistry = NULL);
57
59
DtObjectType objectTypeFor(
const
DtString
& label)
const
;
60
63
virtual
DtModelSetEntry
* addModel(
DtModelSetEntry
*,
bool
clone =
true
);
64
65
virtual
void
emptyList();
66
69
virtual
void
entitiesForObjectType(
const
DtObjectType& o, std::list<DtString>& list)
const
;
70
72
73
int
version()
const
;
74
76
virtual
DtString
createUniqueID(
const
DtModelSetEntry
*)
const
;
77
virtual
DtString
createUniqueID(
const
DtString
&)
const
;
78
80
virtual
DtModelSetEntry
* removeModel(
const
DtObjectType&);
81
virtual
DtModelSetEntry
* removeModel(
const
DtModelSetEntry
* e);
82
85
virtual
void
loadFromDataFiles(
const
std::string& directory);
86
87
protected
:
90
virtual
DtlObjPtr
getData
(DtlObjPtr args,
const
DtReaderWriter::SearchPaths
& searchPaths,
91
const
DtVariableBindingsList
& variableBindings);
92
94
void
copyList(
const
DtModelSet
& orig);
96
void
clear();
97
virtual
void
writeSelf
(FILE* fp,
int
i,
bool
writeUnspecified,
98
const
DtFilename& path);
99
100
protected
:
101
DtString
myFilename
;
102
DtString
myComment
;
103
DtRwInt
myVersion
;
104
};
105
106
107
inline
int
DtModelSet::version
()
const
108
{
109
return
myVersion
;
110
}
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)